[Xfce4-commits] r27054 - xfce-mcs-plugins/branches/xfce-plugins-stephan/dialogs/appearance-settings

Stephan Arts stephan at xfce.org
Sat Jun 14 09:20:10 CEST 2008


Author: stephan
Date: 2008-06-14 07:20:10 +0000 (Sat, 14 Jun 2008)
New Revision: 27054

Modified:
   xfce-mcs-plugins/branches/xfce-plugins-stephan/dialogs/appearance-settings/main.c
Log:
Fix the icon-theme-selection


Modified: xfce-mcs-plugins/branches/xfce-plugins-stephan/dialogs/appearance-settings/main.c
===================================================================
--- xfce-mcs-plugins/branches/xfce-plugins-stephan/dialogs/appearance-settings/main.c	2008-06-14 07:06:18 UTC (rev 27053)
+++ xfce-mcs-plugins/branches/xfce-plugins-stephan/dialogs/appearance-settings/main.c	2008-06-14 07:20:10 UTC (rev 27054)
@@ -495,7 +495,7 @@
     GtkTreeIter iter;
     GtkListStore *list_store;
     GtkCellRenderer *renderer;
-    GtkTreeSelection *selection;
+    GtkTreeSelection *icon_selection, *ui_selection;
 
     XfconfChannel *xsettings_channel = xfconf_channel_new("xsettings");
 
@@ -521,8 +521,8 @@
     gtk_tree_view_set_model (GTK_TREE_VIEW (icon_theme_treeview), GTK_TREE_MODEL (list_store));
     gtk_tree_view_insert_column_with_attributes (GTK_TREE_VIEW (icon_theme_treeview), 0, _("Icon theme name"), renderer, "text", 0, NULL);
 
-    selection = gtk_tree_view_get_selection (GTK_TREE_VIEW (icon_theme_treeview));
-    gtk_tree_selection_set_mode (selection, GTK_SELECTION_SINGLE);
+    icon_selection = gtk_tree_view_get_selection (GTK_TREE_VIEW (icon_theme_treeview));
+    gtk_tree_selection_set_mode (icon_selection, GTK_SELECTION_SINGLE);
 
     check_icon_themes (list_store, GTK_TREE_VIEW (icon_theme_treeview), xsettings_channel);
 
@@ -533,8 +533,8 @@
     gtk_tree_view_set_model (GTK_TREE_VIEW (ui_theme_treeview), GTK_TREE_MODEL (list_store));
     gtk_tree_view_insert_column_with_attributes (GTK_TREE_VIEW (ui_theme_treeview), 0, _("Theme name"), renderer, "text", 0, NULL);
     
-    selection = gtk_tree_view_get_selection (GTK_TREE_VIEW (ui_theme_treeview));
-    gtk_tree_selection_set_mode (selection, GTK_SELECTION_SINGLE);
+    ui_selection = gtk_tree_view_get_selection (GTK_TREE_VIEW (ui_theme_treeview));
+    gtk_tree_selection_set_mode (ui_selection, GTK_SELECTION_SINGLE);
 
     check_ui_themes (list_store, GTK_TREE_VIEW (ui_theme_treeview), xsettings_channel);
 
@@ -697,8 +697,8 @@
         }
     }
 
-    g_signal_connect (G_OBJECT(selection), "changed", G_CALLBACK (cb_ui_theme_treeselection_changed), xsettings_channel);
-    g_signal_connect (G_OBJECT(selection), "changed", G_CALLBACK (cb_icon_theme_treeselection_changed), xsettings_channel);
+    g_signal_connect (G_OBJECT(ui_selection), "changed", G_CALLBACK (cb_ui_theme_treeselection_changed), xsettings_channel);
+    g_signal_connect (G_OBJECT(icon_selection), "changed", G_CALLBACK (cb_icon_theme_treeselection_changed), xsettings_channel);
 
     g_signal_connect (G_OBJECT(toolbar_style_combo), "changed", G_CALLBACK(cb_toolbar_style_combo_changed), xsettings_channel);
     g_signal_connect (G_OBJECT(hinting_style_combo), "changed", G_CALLBACK(cb_hinting_style_combo_changed), xsettings_channel);



More information about the Xfce4-commits mailing list