[Xfce4-commits] <xfce4-settings:master> Don't allow the user to revert/remove locked channels.

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


Updating branch refs/heads/master
         to 20f86269a41f8d7ea7aa5649ed99ef87a8d64ed8 (commit)
       from 77f42415e743f2404d4c66609514f02ab49f5fcd (commit)

commit 20f86269a41f8d7ea7aa5649ed99ef87a8d64ed8
Author: Jérôme Guelfucci <jeromeg at xfce.org>
Date:   Sat Jan 9 15:06:08 2010 +0100

    Don't allow the user to revert/remove locked channels.

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

diff --git a/xfce4-settings-editor/main_window.c b/xfce4-settings-editor/main_window.c
index 19770c9..2e64ea0 100644
--- a/xfce4-settings-editor/main_window.c
+++ b/xfce4-settings-editor/main_window.c
@@ -1024,6 +1024,7 @@ channel_treeview_popup_menu (GtkWidget *widget, GdkEventButton *event, GtkBuilde
     gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menu_item), image);
     gtk_menu_shell_append (GTK_MENU_SHELL (menu), menu_item);
     g_signal_connect (G_OBJECT (menu_item), "activate", G_CALLBACK (cb_channel_popup_menu_remove_item_activate), builder);
+    gtk_widget_set_sensitive (menu_item, !xfconf_channel_is_property_locked (current_channel, "/"));
     gtk_widget_show_all (menu_item);
 
     if (event)



More information about the Xfce4-commits mailing list