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

Jérôme Guelfucci noreply at xfce.org
Tue Jan 19 19:34:15 CET 2010


Updating branch refs/heads/master
         to 35952f609fb4f84c621f11f8b21211885d9f92f1 (commit)
       from 3dbdefb86cc6538e5955eb22cedb25663dc1c517 (commit)

commit 35952f609fb4f84c621f11f8b21211885d9f92f1
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