chiark / gitweb /
more menu options desensitized when disconnected
authorrjk@greenend.org.uk <>
Sun, 30 Sep 2007 14:22:29 +0000 (15:22 +0100)
committerrjk@greenend.org.uk <>
Sun, 30 Sep 2007 14:22:29 +0000 (15:22 +0100)
disobedience/choose.c

index f13362a..6db9422 100644 (file)
@@ -937,7 +937,7 @@ static void activate_properties(GtkMenuItem attribute((unused)) *menuitem,
 }
 
 static gboolean sensitive_play(struct choosenode attribute((unused)) *cn) {
-  return !!files_selected;
+  return !!files_selected && disorder_eclient_connected(client);
 }
 
 #if 0
@@ -947,13 +947,13 @@ static gboolean sensitive_remove(struct choosenode attribute((unused)) *cn) {
 #endif
 
 static gboolean sensitive_properties(struct choosenode attribute((unused)) *cn) {
-  return !!files_selected;
+  return !!files_selected && disorder_eclient_connected(client);
 }
 
 /* Main menu plumbing ------------------------------------------------------ */
 
 static int choose_properties_sensitive(GtkWidget attribute((unused)) *w) {
-  return !!files_selected;
+  return !!files_selected && disorder_eclient_connected(client);
 }
 
 static int choose_selectall_sensitive(GtkWidget attribute((unused)) *w) {