From: Andrea Zagli Date: Sun, 1 May 2011 07:30:55 +0000 (+0200) Subject: Bugfix and Glade catalog for GtkFormDecoder. X-Git-Tag: 0.3.1~8 X-Git-Url: https://saetta.ns0.it/gitweb?a=commitdiff_plain;h=5860bf589ebbefa69fee1466698c9b7a2ed9d33b;p=libgtkform Bugfix and Glade catalog for GtkFormDecoder. --- diff --git a/ui/glade/gtkformui.xml b/ui/glade/gtkformui.xml index 48be43e..9ef0829 100644 --- a/ui/glade/gtkformui.xml +++ b/ui/glade/gtkformui.xml @@ -4,6 +4,9 @@ + + + diff --git a/ui/glade/icons/hicolor/16x16/actions/widget-gtkformui-gtkformdecoder.png b/ui/glade/icons/hicolor/16x16/actions/widget-gtkformui-gtkformdecoder.png index ec4e622..9796233 100644 Binary files a/ui/glade/icons/hicolor/16x16/actions/widget-gtkformui-gtkformdecoder.png and b/ui/glade/icons/hicolor/16x16/actions/widget-gtkformui-gtkformdecoder.png differ diff --git a/ui/glade/icons/hicolor/22x22/actions/widget-gtkformui-gtkformdecoder.png b/ui/glade/icons/hicolor/22x22/actions/widget-gtkformui-gtkformdecoder.png index 7945a48..d26591a 100644 Binary files a/ui/glade/icons/hicolor/22x22/actions/widget-gtkformui-gtkformdecoder.png and b/ui/glade/icons/hicolor/22x22/actions/widget-gtkformui-gtkformdecoder.png differ diff --git a/ui/gtkformdecoder.c b/ui/gtkformdecoder.c index b279bda..cc6f028 100644 --- a/ui/gtkformdecoder.c +++ b/ui/gtkformdecoder.c @@ -314,9 +314,9 @@ gtk_form_decoder_show_btn_clean (GtkFormDecoder *decoder, gboolean visible) { GtkFormDecoderPrivate *priv = GTK_FORM_DECODER_GET_PRIVATE (decoder); - gtk_entry_set_icon_from_stock (GTK_ENTRY (priv->txt_decoded), GTK_ENTRY_ICON_SECONDARY, "gtk-clear"); - gtk_entry_set_icon_activatable (GTK_ENTRY (priv->txt_decoded), GTK_ENTRY_ICON_SECONDARY, TRUE); - gtk_entry_set_icon_sensitive (GTK_ENTRY (priv->txt_decoded), GTK_ENTRY_ICON_SECONDARY, TRUE); + gtk_entry_set_icon_from_stock (GTK_ENTRY (priv->txt_decoded), GTK_ENTRY_ICON_SECONDARY, visible ? "gtk-clear" : NULL); + gtk_entry_set_icon_activatable (GTK_ENTRY (priv->txt_decoded), GTK_ENTRY_ICON_SECONDARY, visible); + gtk_entry_set_icon_sensitive (GTK_ENTRY (priv->txt_decoded), GTK_ENTRY_ICON_SECONDARY, visible); } /* CALLBACKS */