GtkWidgetPath: Make gtk_widget_path_prepend_type() return nothing.

It's senseless to always return 0
This commit is contained in:
Carlos Garnacho 2010-11-19 18:58:19 +01:00
parent 198bb314c7
commit 5f88997297
2 changed files with 4 additions and 8 deletions

View File

@ -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;
}
/**

View File

@ -37,7 +37,7 @@ guint gtk_widget_path_length (const GtkWidgetPath *path);
guint gtk_widget_path_append_type (GtkWidgetPath *path,
GType type);
guint gtk_widget_path_prepend_type (GtkWidgetPath *path,
void gtk_widget_path_prepend_type (GtkWidgetPath *path,
GType type);
GType gtk_widget_path_iter_get_widget_type (const GtkWidgetPath *path,