gnome-system-tools r4102 - trunk/src/shares



Author: carlosg
Date: Sun Jan 13 18:04:16 2008
New Revision: 4102
URL: http://svn.gnome.org/viewvc/gnome-system-tools?rev=4102&view=rev

Log:
2008-01-13  Carlos Garnacho  <carlosg gnome org>

        * main.c (policy_widgets)
        * callbacks.c (on_dialog_validate): Do not set sensitivity to TRUE in
        the "Share" button in the edit share dialog if the user is not
        allowed.


Modified:
   trunk/src/shares/ChangeLog
   trunk/src/shares/callbacks.c
   trunk/src/shares/main.c

Modified: trunk/src/shares/callbacks.c
==============================================================================
--- trunk/src/shares/callbacks.c	(original)
+++ trunk/src/shares/callbacks.c	Sun Jan 13 18:04:16 2008
@@ -344,7 +344,8 @@
 	GtkWidget *ok_button;
 
 	ok_button = gst_dialog_get_widget (tool->main_dialog, "share_properties_ok");
-	gtk_widget_set_sensitive (ok_button, share_settings_validate ());
+	gst_dialog_try_set_sensitive (tool->main_dialog, ok_button,
+				      share_settings_validate ());
 }
 
 void

Modified: trunk/src/shares/main.c
==============================================================================
--- trunk/src/shares/main.c	(original)
+++ trunk/src/shares/main.c	Sun Jan 13 18:04:16 2008
@@ -72,7 +72,7 @@
 	"share_nfs_acl",
 	"share_nfs_add",
 	"share_nfs_delete",
-	"share_properties_cancel",
+	"share_properties_ok",
 	"users_table",
 	NULL
 };



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]