Use gtk_paned_new() instead gtk_[h|v]paned_new() 0.27.2
authorJavier Jardón <jjardon@gnome.org>
Tue, 9 Nov 2010 02:46:39 +0000 (03:46 +0100)
committerJavier Jardón <jjardon@gnome.org>
Tue, 9 Nov 2010 02:46:39 +0000 (03:46 +0100)
src/reflect.c

index 7faa492..6d43649 100644 (file)
@@ -284,7 +284,11 @@ main(int argc, char **argv)
        gtk_scrolled_window_add_with_viewport(GTK_SCROLLED_WINDOW(sw), label);
        gtk_widget_show(label);
 
+#if GTK_CHECK_VERSION (2, 91, 2)
+       pane = gtk_paned_new (GTK_ORIENTATION_VERTICAL);
+#else
        pane = gtk_vpaned_new();
+#endif
        gtk_paned_pack1(GTK_PANED(pane), tophalf, TRUE, FALSE);
        gtk_paned_pack2(GTK_PANED(pane), sw, TRUE, FALSE);
        gtk_widget_show(tophalf);