Revision: 1277
          http://geeqie.svn.sourceforge.net/geeqie/?rev=1277&view=rev
Author:   zas_
Date:     2008-11-27 12:29:38 +0000 (Thu, 27 Nov 2008)

Log Message:
-----------
Fix up deprecated function and not a prototype warnings.

Modified Paths:
--------------
    trunk/src/image.c

Modified: trunk/src/image.c
===================================================================
--- trunk/src/image.c   2008-11-26 20:39:50 UTC (rev 1276)
+++ trunk/src/image.c   2008-11-27 12:29:38 UTC (rev 1277)
@@ -470,7 +470,7 @@
        fd->pixbuf = NULL;
 }
 
-static FileCacheData *image_get_cache()
+static FileCacheData *image_get_cache(void)
 {
        static FileCacheData *cache = NULL;
        if (!cache) cache = file_cache_new(image_cache_release_cb, 1);
@@ -1659,9 +1659,12 @@
                g_signal_connect_after(G_OBJECT(imd->frame), "expose_event",
                                       G_CALLBACK(image_focus_expose), imd);
 
-
-               gtk_box_pack_start_defaults(GTK_BOX(imd->widget), imd->frame);
-               gtk_widget_show(imd->frame);
+#if GTK_CHECK_VERSION(2,14,0)
+        gtk_box_pack_start(GTK_BOX(imd->widget), imd->frame, TRUE, TRUE, 0);
+#else
+        gtk_box_pack_start_defaults(GTK_BOX(imd->widget), imd->frame);
+#endif
+        gtk_widget_show(imd->frame);
                }
        else
                {
@@ -1676,7 +1679,11 @@
                        gtk_widget_destroy(imd->frame);
                        imd->frame = NULL;
                        }
+#if GTK_CHECK_VERSION(2,14,0)
+        gtk_box_pack_start(GTK_BOX(imd->widget), imd->pr, TRUE, TRUE, 0);
+#else
                gtk_box_pack_start_defaults(GTK_BOX(imd->widget), imd->pr);
+#endif
 
 #if GTK_CHECK_VERSION(2,12,0)
        g_object_unref(imd->pr);


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Geeqie-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geeqie-svn

Reply via email to