diff options
author | Florian Müllner <fmuellner@gnome.org> | 2015-10-23 22:13:30 +0200 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2015-11-03 07:44:17 -0500 |
commit | e364ae3ea8ac72e636bb1dd91d98814b655e844e (patch) | |
tree | cb26a4568fb7f9ba85d146a73e4978b9f2347d7e /gtk/gtktoolitemgroup.c | |
parent | 9a29a2768b81395eb21db5bd8762c419b0e30a8f (diff) | |
download | gtk+-e364ae3ea8ac72e636bb1dd91d98814b655e844e.tar.gz |
Use gtk_widget_set_focus_on_click() instead of deprecated setters
https://bugzilla.gnome.org/show_bug.cgi?id=757269
Diffstat (limited to 'gtk/gtktoolitemgroup.c')
-rw-r--r-- | gtk/gtktoolitemgroup.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/gtk/gtktoolitemgroup.c b/gtk/gtktoolitemgroup.c index 7d362b2b6a..7d7990eae3 100644 --- a/gtk/gtktoolitemgroup.c +++ b/gtk/gtktoolitemgroup.c @@ -406,7 +406,7 @@ G_GNUC_END_IGNORE_DEPRECATIONS priv->header = gtk_button_new (); g_object_ref_sink (priv->header); - gtk_button_set_focus_on_click (GTK_BUTTON (priv->header), FALSE); + gtk_widget_set_focus_on_click (priv->header, FALSE); gtk_container_add (GTK_CONTAINER (priv->header), alignment); gtk_widget_set_parent (priv->header, GTK_WIDGET (group)); @@ -2109,8 +2109,7 @@ gtk_tool_item_group_insert (GtkToolItemGroup *group, child_widget = gtk_bin_get_child (GTK_BIN (item)); - if (GTK_IS_BUTTON (child_widget)) - gtk_button_set_focus_on_click (GTK_BUTTON (child_widget), TRUE); + gtk_widget_set_focus_on_click (child_widget, TRUE); gtk_widget_set_parent (GTK_WIDGET (item), GTK_WIDGET (group)); } |