forked from AuroraMiddleware/gtk
widget: Simplify setting a default direction
No reason for the second paramter to be a pointer.
This commit is contained in:
parent
81a7f8e00c
commit
d4c9a35193
@ -8773,9 +8773,9 @@ gtk_widget_get_direction (GtkWidget *widget)
|
|||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
gtk_widget_set_default_direction_recurse (GtkWidget *widget, gpointer data)
|
gtk_widget_set_default_direction_recurse (GtkWidget *widget,
|
||||||
|
GtkTextDirection old_dir)
|
||||||
{
|
{
|
||||||
GtkTextDirection old_dir = GPOINTER_TO_UINT (data);
|
|
||||||
GtkWidget *child;
|
GtkWidget *child;
|
||||||
|
|
||||||
g_object_ref (widget);
|
g_object_ref (widget);
|
||||||
@ -8787,7 +8787,7 @@ gtk_widget_set_default_direction_recurse (GtkWidget *widget, gpointer data)
|
|||||||
child != NULL;
|
child != NULL;
|
||||||
child = _gtk_widget_get_next_sibling (child))
|
child = _gtk_widget_get_next_sibling (child))
|
||||||
{
|
{
|
||||||
gtk_widget_set_default_direction_recurse (child, data);
|
gtk_widget_set_default_direction_recurse (child, old_dir);
|
||||||
}
|
}
|
||||||
|
|
||||||
g_object_unref (widget);
|
g_object_unref (widget);
|
||||||
@ -8818,8 +8818,7 @@ gtk_widget_set_default_direction (GtkTextDirection dir)
|
|||||||
|
|
||||||
while (tmp_list)
|
while (tmp_list)
|
||||||
{
|
{
|
||||||
gtk_widget_set_default_direction_recurse (tmp_list->data,
|
gtk_widget_set_default_direction_recurse (tmp_list->data, old_dir);
|
||||||
GUINT_TO_POINTER (old_dir));
|
|
||||||
g_object_unref (tmp_list->data);
|
g_object_unref (tmp_list->data);
|
||||||
tmp_list = tmp_list->next;
|
tmp_list = tmp_list->next;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user