]> saetta.ns0.it Git - libgtkform/commitdiff
On GtkFormDecoder changed icon for browse button. v_0.4.0 0.4.0
authorAndrea Zagli <a.zagli@comune.scandicci.fi.it>
Thu, 20 Oct 2011 15:13:58 +0000 (17:13 +0200)
committerAndrea Zagli <a.zagli@comune.scandicci.fi.it>
Thu, 20 Oct 2011 15:13:58 +0000 (17:13 +0200)
Updated glade catalog.

libgtkformui/glade/gtkformui.xml
libgtkformui/gtkformdecoder.c

index 7dc1f93741c11468cb18edcb896f9c4d805ceda5..3849f842de3c142d887f683ffbf6fe58d5cb0437 100644 (file)
@@ -7,6 +7,7 @@
                                <property name="GdaEx object" id="gdaex" visible="False" />
                                <property name="Sql statement" id="sql" />
                                <property name="Show clean icon" id="show-btn-clean" />
+                               <property name="Show new button" id="show-btn-new" />
                                <property name="Show open button" id="show-btn-open" />
                                <property name="Show browse button" id="show-btn-browse" />
                        </properties>
index fa8f9c7ef50ac782345a9ce7d1610c02ef0fa325..d856f4c864da89ab7047c8c99b5e574bb6250fea 100644 (file)
@@ -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",