fixed gtk entry icon problem being still not sensitive when entry changes from not...
authorGiuseppe Penone <giuspen@gmail.com>
Sun, 25 Nov 2012 18:34:06 +0000 (19:34 +0100)
committerAndriy Grytsenko <andrej@rep.kiev.ua>
Mon, 26 Nov 2012 21:17:41 +0000 (23:17 +0200)
src/plugins/xkb/xkb-plugin.c

index 0de20ed..d11bb58 100644 (file)
@@ -440,7 +440,15 @@ static void on_xkb_checkbutton_keep_system_layouts_toggled(GtkToggleButton *tb,
         gtk_widget_set_sensitive(p_xkb->p_entry_advanced_opt, !p_xkb->keep_system_layouts);
         gtk_widget_set_sensitive(p_xkb->p_checkbutton_no_reset_opt, !p_xkb->keep_system_layouts);
         
-        if(!p_xkb->keep_system_layouts) xkb_update_layouts_n_variants(p_xkb);
+        if(!p_xkb->keep_system_layouts)
+        {
+            gtk_entry_set_icon_from_stock(GTK_ENTRY(p_xkb->p_entry_advanced_opt), GTK_ENTRY_ICON_SECONDARY, "gtk-save");
+            xkb_update_layouts_n_variants(p_xkb);
+        }
+        else
+        {
+            
+        }
     }
 }