summaryrefslogtreecommitdiff
path: root/gtk/gtkshortcutswindow.c
diff options
context:
space:
mode:
authorTimm Bäder <mail@baedert.org>2017-01-12 13:10:14 +0100
committerTimm Bäder <mail@baedert.org>2017-01-20 21:33:37 +0100
commit5dbf8458f50c1ba6f41e97f0cfcf25714c46ff51 (patch)
treed04a25ac4f675d27a659b73def1a618337771cc7 /gtk/gtkshortcutswindow.c
parent524bf22db796d70c07ac75a240aefef7c46e2b92 (diff)
downloadgtk+-5dbf8458f50c1ba6f41e97f0cfcf25714c46ff51.tar.gz
shortcutswindow: Use GtkButton:icon-name for search button
Diffstat (limited to 'gtk/gtkshortcutswindow.c')
-rw-r--r--gtk/gtkshortcutswindow.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/gtk/gtkshortcutswindow.c b/gtk/gtkshortcutswindow.c
index ca76ba5ec2..bcdc49ae3d 100644
--- a/gtk/gtkshortcutswindow.c
+++ b/gtk/gtkshortcutswindow.c
@@ -867,7 +867,6 @@ gtk_shortcuts_window_init (GtkShortcutsWindow *self)
GtkWidget *scroller;
GtkWidget *label;
GtkWidget *empty;
- GtkWidget *search_icon;
PangoAttrList *attributes;
gtk_window_set_resizable (GTK_WINDOW (self), FALSE);
@@ -887,13 +886,9 @@ gtk_shortcuts_window_init (GtkShortcutsWindow *self)
NULL);
gtk_window_set_titlebar (GTK_WINDOW (self), GTK_WIDGET (priv->header_bar));
- search_icon = gtk_image_new_from_icon_name ("edit-find-symbolic", GTK_ICON_SIZE_BUTTON);
- gtk_widget_show (search_icon);
-
- search_button = gtk_toggle_button_new ();
- gtk_container_add (GTK_CONTAINER (search_button), search_icon);
- gtk_style_context_add_class (gtk_widget_get_style_context (search_button), "image-button");
- gtk_widget_show (search_button);
+ search_button = g_object_new (GTK_TYPE_TOGGLE_BUTTON,
+ "icon-name", "edit-find-symbolic",
+ NULL);
gtk_container_add (GTK_CONTAINER (priv->header_bar), search_button);
priv->main_box = g_object_new (GTK_TYPE_BOX,