Update of /cvsroot/gtkpod/gtkpod/src
In directory sc8-pr-cvs2.sourceforge.net:/tmp/cvs-serv14300/src

Modified Files:
        context_menus.c 
Log Message:
        * src/context_menus.c: Make context menu more consistent
          ('Edit Playlist Properties', 'Edit iPod Properties' and
          'Edit Repository Properties').



Index: context_menus.c
===================================================================
RCS file: /cvsroot/gtkpod/gtkpod/src/context_menus.c,v
retrieving revision 1.66
retrieving revision 1.67
diff -u -d -r1.66 -r1.67
--- context_menus.c     29 Jun 2006 11:46:16 -0000      1.66
+++ context_menus.c     24 Nov 2006 11:18:21 -0000      1.67
@@ -1,4 +1,4 @@
-/* Time-stamp: <2006-06-29 20:41:31 jcs>
+/* Time-stamp: <2006-11-24 20:14:54 jcs>
 |
 |  Copyright (C) 2003 Corey Donohoe <atmos at atmos dot org>
 |  Copyright (C) 2003-2005 Jorg Schuler <jcsjcs at users sourceforge net>
@@ -475,6 +475,20 @@
                      G_CALLBACK (edit_properties), NULL);
 }
 
+static GtkWidget *add_edit_repository_properties (GtkWidget *menu)
+{
+    return hookup_mi (menu,  _("Edit Repository Properties"),
+                     GTK_STOCK_PREFERENCES,
+                     G_CALLBACK (edit_properties), NULL);
+}
+
+static GtkWidget *add_edit_playlist_properties (GtkWidget *menu)
+{
+    return hookup_mi (menu,  _("Edit Playlist Properties"),
+                     GTK_STOCK_PREFERENCES,
+                     G_CALLBACK (edit_properties), NULL);
+}
+
 static GtkWidget *add_edit_track_details (GtkWidget *menu)
 {
     return hookup_mi (menu,  _("Edit Track Details"),
@@ -591,13 +605,6 @@
 }
 #endif
 
-static GtkWidget *add_edit_playlist_properties (GtkWidget *menu)
-{
-    return hookup_mi (menu,  _("Edit Playlist Properties"),
-                     GTK_STOCK_PREFERENCES,
-                     G_CALLBACK (edit_properties), NULL);
-}
-
 
 void create_context_menu (CM_type type)
 {
@@ -657,7 +664,7 @@
                    {
                        add_edit_smart_playlist (menu);
                    }
-                   if (itdb_playlist_is_mpl (pl) || pl->is_spl)
+                   if (itdb_playlist_is_mpl (pl))
                    {
                        add_edit_ipod_properties (menu);
                    }
@@ -704,7 +711,14 @@
                {
                    add_edit_smart_playlist (menu);
                }
-               add_edit_playlist_properties (menu);
+               if (itdb_playlist_is_mpl (pl))
+               {
+                   add_edit_repository_properties (menu);
+               }
+               else
+               {
+                   add_edit_playlist_properties (menu);
+               }
                add_save_changes (menu);
            }
            break;


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
gtkpod-cvs2 mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gtkpod-cvs2

Reply via email to