summaryrefslogtreecommitdiff
path: root/gtk/gtkfilechooserdialog.c
diff options
context:
space:
mode:
authorTimm Bäder <mail@baedert.org>2016-10-29 10:07:15 +0200
committerTimm Bäder <mail@baedert.org>2016-10-31 12:20:41 +0100
commit01723fa02faf37d729cee059bcd3e1d39230dd24 (patch)
treefcd535d10f76ef6d71138f5671cf2cac0756586c /gtk/gtkfilechooserdialog.c
parent5147ea96e0a382081029089162811b84b3cd8ab9 (diff)
downloadgtk+-01723fa02faf37d729cee059bcd3e1d39230dd24.tar.gz
filechooser: Use GtkButton's icon-name property
Diffstat (limited to 'gtk/gtkfilechooserdialog.c')
-rw-r--r--gtk/gtkfilechooserdialog.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/gtk/gtkfilechooserdialog.c b/gtk/gtkfilechooserdialog.c
index db1d8f6de7..59026b5c67 100644
--- a/gtk/gtkfilechooserdialog.c
+++ b/gtk/gtkfilechooserdialog.c
@@ -484,17 +484,12 @@ setup_search (GtkFileChooserDialog *dialog)
if (use_header)
{
GtkWidget *button;
- GtkWidget *image;
GtkWidget *header;
button = gtk_toggle_button_new ();
gtk_widget_set_focus_on_click (button, FALSE);
gtk_widget_set_valign (button, GTK_ALIGN_CENTER);
- image = gtk_image_new_from_icon_name ("edit-find-symbolic", GTK_ICON_SIZE_MENU);
- gtk_container_add (GTK_CONTAINER (button), image);
- gtk_style_context_add_class (gtk_widget_get_style_context (button), "image-button");
- gtk_style_context_remove_class (gtk_widget_get_style_context (button), "text-button");
- gtk_widget_show (image);
+ gtk_button_set_icon_name (GTK_BUTTON (button), "edit-find-symbolic");
gtk_widget_show (button);
header = gtk_dialog_get_header_bar (GTK_DIALOG (dialog));