Fix for bug 887. Use the right function to set the window position.
authorjake <jake@f5534014-38df-0310-8fa8-9805f1628bb7>
Mon, 1 May 2006 10:59:06 +0000 (10:59 +0000)
committerjake <jake@f5534014-38df-0310-8fa8-9805f1628bb7>
Mon, 1 May 2006 10:59:06 +0000 (10:59 +0000)
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@18059 f5534014-38df-0310-8fa8-9805f1628bb7

gtk/gui_utils.c

index 0f927c0cd39355c81ba4213f0faaa3741761f776..c3cd19d3771191e19884dc702f3c4aaf991127bc 100644 (file)
@@ -362,9 +362,15 @@ window_set_geometry(GtkWidget *widget, window_geometry_t *geom)
 {
     /* as we now have the geometry from the recent file, set it */
     if (geom->set_pos) {
+#if GTK_MAJOR_VERSION >= 2
+        gtk_window_move(GTK_WINDOW(widget),
+                        geom->x,
+                        geom->y);
+#else
         gtk_widget_set_uposition(widget,
                                  geom->x,
                                  geom->y);
+#endif
     }
 
     if (geom->set_size) {