mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-17 23:10:22 +00:00
GtkWidgetPath: Make gtk_widget_path_prepend_type() return nothing.
It's senseless to always return 0
This commit is contained in:
parent
198bb314c7
commit
5f88997297
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user