summaryrefslogtreecommitdiff
path: root/gtk/gtkwidgetpath.c
diff options
context:
space:
mode:
authorCarlos Garnacho <carlosg@gnome.org>2010-11-19 18:58:19 +0100
committerCarlos Garnacho <carlosg@gnome.org>2010-12-04 15:39:18 +0100
commit5f889972978ee625772d9a30194834e0f8b816c9 (patch)
tree8c88ea69d452bde94a37423fd4643ac2a782699e /gtk/gtkwidgetpath.c
parent198bb314c78cb2394d11f14026ad9e286c288f35 (diff)
downloadgtk+-5f889972978ee625772d9a30194834e0f8b816c9.tar.gz
GtkWidgetPath: Make gtk_widget_path_prepend_type() return nothing.
It's senseless to always return 0
Diffstat (limited to 'gtk/gtkwidgetpath.c')
-rw-r--r--gtk/gtkwidgetpath.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/gtk/gtkwidgetpath.c b/gtk/gtkwidgetpath.c
index 88d2b6dc19..633fe43c44 100644
--- a/gtk/gtkwidgetpath.c
+++ b/gtk/gtkwidgetpath.c
@@ -230,23 +230,19 @@ gtk_widget_path_length (const GtkWidgetPath *path)
*
* Prepends a widget type to the widget hierachy represented by @path.
*
- * Returns: the position where the element was inserted
- *
* Since: 3.0
**/
-guint
+void
gtk_widget_path_prepend_type (GtkWidgetPath *path,
GType type)
{
GtkPathElement new = { 0 };
- g_return_val_if_fail (path != NULL, 0);
- g_return_val_if_fail (g_type_is_a (type, GTK_TYPE_WIDGET), 0);
+ g_return_if_fail (path != NULL);
+ g_return_if_fail (g_type_is_a (type, GTK_TYPE_WIDGET));
new.type = type;
g_array_prepend_val (path->elems, new);
-
- return 0;
}
/**