From: Andrea Zagli Date: Thu, 20 Oct 2011 15:13:58 +0000 (+0200) Subject: On GtkFormDecoder changed icon for browse button. X-Git-Tag: 0.4.0^0 X-Git-Url: https://saetta.ns0.it/gitweb?a=commitdiff_plain;h=c8b7aff26550054dd4e82dab24704d59902121e2;p=libgtkform On GtkFormDecoder changed icon for browse button. Updated glade catalog. --- 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",