summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar waker <wakeroid@gmail.com>2011-08-31 20:27:07 +0200
committerGravatar waker <wakeroid@gmail.com>2011-08-31 20:27:07 +0200
commita41c9b404580c204575b83884634e7e6ea7f98f9 (patch)
treebe911f173e336cf022f4b2a566f463f03e782481
parent9ae071efe4653a8b78aeca172b26af68a8ab4c6f (diff)
gray-out rename/remove playlist if clicked on empty tabstrip area
-rw-r--r--plugins/gtkui/ddbtabstrip.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/plugins/gtkui/ddbtabstrip.c b/plugins/gtkui/ddbtabstrip.c
index f8f3e6c4..b21e58ef 100644
--- a/plugins/gtkui/ddbtabstrip.c
+++ b/plugins/gtkui/ddbtabstrip.c
@@ -746,10 +746,16 @@ create_plmenu (void)
plmenu = gtk_menu_new ();
rename_playlist1 = gtk_menu_item_new_with_mnemonic (_("Rename Playlist"));
+ if (tab_clicked == -1) {
+ gtk_widget_set_sensitive (rename_playlist1, FALSE);
+ }
gtk_widget_show (rename_playlist1);
gtk_container_add (GTK_CONTAINER (plmenu), rename_playlist1);
remove_playlist1 = gtk_menu_item_new_with_mnemonic (_("Remove Playlist"));
+ if (tab_clicked == -1) {
+ gtk_widget_set_sensitive (remove_playlist1, FALSE);
+ }
gtk_widget_show (remove_playlist1);
gtk_container_add (GTK_CONTAINER (plmenu), remove_playlist1);