From c8b7aff26550054dd4e82dab24704d59902121e2 Mon Sep 17 00:00:00 2001 From: Andrea Zagli Date: Thu, 20 Oct 2011 17:13:58 +0200 Subject: [PATCH] On GtkFormDecoder changed icon for browse button. Updated glade catalog. --- libgtkformui/glade/gtkformui.xml | 1 + libgtkformui/gtkformdecoder.c | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/libgtkformui/glade/gtkformui.xml b/libgtkformui/glade/gtkformui.xml index 7dc1f93..3849f84 100644 --- a/libgtkformui/glade/gtkformui.xml +++ b/libgtkformui/glade/gtkformui.xml @@ -7,6 +7,7 @@ + diff --git a/libgtkformui/gtkformdecoder.c b/libgtkformui/gtkformdecoder.c index fa8f9c7..d856f4c 100644 --- a/libgtkformui/gtkformdecoder.c +++ b/libgtkformui/gtkformdecoder.c @@ -277,10 +277,13 @@ gtk_form_decoder_init (GtkFormDecoder *decoder) g_signal_connect (G_OBJECT (priv->btn_open), "clicked", G_CALLBACK (gtk_form_decoder_on_btn_open_clicked), (gpointer)decoder); - priv->btn_browse = gtk_button_new_with_label ("..."); + priv->btn_browse = gtk_button_new (); gtk_widget_set_tooltip_text (priv->btn_browse, _("Find")); gtk_box_pack_start (GTK_BOX (priv->hbox), priv->btn_browse, FALSE, FALSE, 0); gtk_widget_set_no_show_all (priv->btn_browse, TRUE); + icon = gtk_image_new_from_stock ("gtk-find", GTK_ICON_SIZE_MENU); + gtk_container_add (GTK_CONTAINER (priv->btn_browse), icon); + gtk_widget_show (icon); gtk_widget_show (priv->btn_browse); g_signal_connect (G_OBJECT (priv->btn_browse), "clicked", -- 2.49.0