[librsvg] Fix for GtkVBox deprecation



commit 1edb51e343b461e16c1cbcf0a366b369be8dba8d
Author: Christian Persch <chpe gnome org>
Date:   Mon Nov 7 18:11:01 2011 +0100

    Fix for GtkVBox deprecation
    
    On gtk3, use a GtkBox.

 test-display.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/test-display.c b/test-display.c
index 06dcd18..b322626 100644
--- a/test-display.c
+++ b/test-display.c
@@ -611,7 +611,11 @@ populate_window (GtkWidget * win, ViewerCbInfo * info, int xid, gint win_width,
     GtkWidget *scroll;
     gint img_width, img_height;
 
+#if GTK_CHECK_VERSION (3, 2, 0)
+    vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
+#else
     vbox = gtk_vbox_new (FALSE, 0);
+#endif
     gtk_container_add (GTK_CONTAINER (win), vbox);
 
     /* create a new image */



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]