changeset 1360:7e312e0c33e8 trunk

[svn] - now filepopup menu shows its state through checkbox.
author yaz
date Thu, 29 Jun 2006 05:58:34 -0700
parents c60990f0bf2a
children 62a33367a6cb
files ChangeLog audacious/ui_playlist.c
diffstat 2 files changed, 16 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Thu Jun 29 03:42:13 2006 -0700
+++ b/ChangeLog	Thu Jun 29 05:58:34 2006 -0700
@@ -1,3 +1,12 @@
+2006-06-29 10:42:13 +0000  Yoshiki Yazawa <yaz@cc.rim.or.jp>
+  revision [1630]
+  - add a menu item that toggles filepopup to the playlist popup menu.
+  
+
+  Changes:        Modified:
+  +9 -1           trunk/audacious/ui_playlist.c  
+
+
 2006-06-29 09:57:27 +0000  Yoshiki Yazawa <yaz@cc.rim.or.jp>
   revision [1628]
   - add toggle option for filepopup window
--- a/audacious/ui_playlist.c	Thu Jun 29 03:42:13 2006 -0700
+++ b/audacious/ui_playlist.c	Thu Jun 29 05:58:34 2006 -0700
@@ -127,9 +127,9 @@
      playlistwin_popup_menu_callback,
      MISC_FILEINFO, "<ImageItem>", my_pixbuf},
 
-    {N_("/Popup Info Toggle"), NULL,
+    {N_("/Show Popup Info"), NULL,
      playlistwin_popup_menu_callback,
-     MISC_FILEPOPUP, NULL, NULL},
+     MISC_FILEPOPUP, "<ToggleItem>", NULL},
 
     ITEM_SEPARATOR,
 
@@ -1171,6 +1171,10 @@
              widget_contains(WIDGET(playlistwin_list), event->x, event->y)) {
         /* popup menu */
         playlistwin_set_sensitive_sortmenu();
+        {
+            GtkWidget *item = gtk_item_factory_get_widget(playlistwin_popup_menu, "/Show Popup Info");
+            gtk_check_menu_item_set_active(GTK_CHECK_MENU_ITEM(item), cfg.show_filepopup_for_tuple);
+        }
         gtk_item_factory_popup(playlistwin_popup_menu,
                                event->x_root, event->y_root + 5,
                                3, event->time);
@@ -1991,7 +1995,7 @@
         mainwin_jump_to_file();
         break;
     case MISC_FILEPOPUP:
-        cfg.show_filepopup_for_tuple ^= 1;
+        cfg.show_filepopup_for_tuple = gtk_check_menu_item_get_active(GTK_CHECK_MENU_ITEM(widget));
         break;
 
     }