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

Modified Files:
        context_menus.c 
Log Message:
        * src/context_menus.c: fixed compile issue when compiling with
          GTK+ <V2.8 -- thanks to Daniele Forsi for pointing out.



Index: context_menus.c
===================================================================
RCS file: /cvsroot/gtkpod/gtkpod/src/context_menus.c,v
retrieving revision 1.69
retrieving revision 1.70
diff -u -d -r1.69 -r1.70
--- context_menus.c     15 Apr 2007 13:27:42 -0000      1.69
+++ context_menus.c     21 Apr 2007 03:28:23 -0000      1.70
@@ -750,8 +750,22 @@
 
 static GtkWidget *add_display_big_coverart (GtkWidget *menu)
 {
+    const gchar *icon;
+/* gets defined in gtk+ V2.8, but we only require V2.6 */
+#ifndef GTK_STOCK_FULLSCREEN
+#define GTK_STOCK_FULLSCREEN "gtk-fullscreen"
+#endif
+    if (gtk_check_version (2,8,0) == NULL)
+    {
+       icon = GTK_STOCK_FULLSCREEN;
+    }
+    else
+    {
+       icon = NULL;
+    }
+
     return hookup_mi (menu,  _("View Full Size Artwork"),
-                     GTK_STOCK_FULLSCREEN,
+                     icon,
                      G_CALLBACK (display_track_artwork), NULL);        
 }
 


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
gtkpod-cvs2 mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gtkpod-cvs2

Reply via email to