[Xfce4-commits] <xfce4-settings:jeromeg/settings-editor> No need to set the state of the buttons two times.

Jérôme Guelfucci noreply at xfce.org
Sat Dec 26 22:32:02 CET 2009


Updating branch refs/heads/jeromeg/settings-editor
         to 0213a9bc9184f1c9f66e8e8ea0bf45d649338b9f (commit)
       from 5292fe7fed0b09f800ff6172259421f7aea170df (commit)

commit 0213a9bc9184f1c9f66e8e8ea0bf45d649338b9f
Author: Jérôme Guelfucci <jeromeg at xfce.org>
Date:   Fri Dec 25 00:42:21 2009 +0100

    No need to set the state of the buttons two times.

 xfce4-settings-editor/main_window.c |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)

diff --git a/xfce4-settings-editor/main_window.c b/xfce4-settings-editor/main_window.c
index 1677c8b..fb6c403 100644
--- a/xfce4-settings-editor/main_window.c
+++ b/xfce4-settings-editor/main_window.c
@@ -492,9 +492,6 @@ cb_property_treeview_selection_changed (GtkTreeSelection *selection, GtkBuilder
         current_property = NULL;
     }
 
-    gtk_widget_set_sensitive (GTK_WIDGET (property_edit_button), FALSE);
-    gtk_widget_set_sensitive (GTK_WIDGET (property_revert_button), FALSE);
-
     /* return if no property is selected */
     if (!gtk_tree_selection_get_selected (selection, &model, &iter))
     {
@@ -535,7 +532,7 @@ cb_property_treeview_selection_changed (GtkTreeSelection *selection, GtkBuilder
     gtk_tree_selection_get_selected (selection, &model, &iter);
     gtk_tree_model_get_value (model, &iter, 1, &value);
 
-    if (g_strcmp0 (g_value_get_string (&value), "Empty") == 0 )
+    if (g_strcmp0 (g_value_get_string (&value), "Empty") == 0)
         gtk_widget_set_sensitive (GTK_WIDGET (property_edit_button), FALSE);
     g_value_unset (&value);
 }



More information about the Xfce4-commits mailing list