summaryrefslogtreecommitdiffstats
path: root/src/widgets/font-selector.cpp
diff options
context:
space:
mode:
authorAlex Valavanis <valavanisalex@gmail.com>2012-04-10 20:21:08 +0000
committerAlex Valavanis <valavanisalex@gmail.com>2012-04-10 20:21:08 +0000
commite30be1920be10cc0d9a79c244c890785c72f37bb (patch)
tree087727d0cd8ae9392797faeabbc2dd08a636648b /src/widgets/font-selector.cpp
parent2geom: sbasis multiplication never returns sbasis of at least order a+b (diff)
downloadinkscape-e30be1920be10cc0d9a79c244c890785c72f37bb.tar.gz
inkscape-e30be1920be10cc0d9a79c244c890785c72f37bb.zip
Replace deprecated gtk_vbox_new and gtk_widget_size_request
(bzr r11213)
Diffstat (limited to 'src/widgets/font-selector.cpp')
-rw-r--r--src/widgets/font-selector.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/widgets/font-selector.cpp b/src/widgets/font-selector.cpp
index ba6fca16a..ff361a6b8 100644
--- a/src/widgets/font-selector.cpp
+++ b/src/widgets/font-selector.cpp
@@ -176,7 +176,12 @@ static void sp_font_selector_init(SPFontSelector *fsel)
gtk_widget_show(f);
gtk_box_pack_start(GTK_BOX (fsel), f, TRUE, TRUE, 0);
+#if GTK_CHECK_VERSION(3,0,0)
+ GtkWidget *vb = gtk_box_new(GTK_ORIENTATION_VERTICAL, 4);
+ gtk_box_new(GTK_BOX(vb), FALSE);
+#else
GtkWidget *vb = gtk_vbox_new(FALSE, 4);
+#endif
gtk_widget_show(vb);
gtk_container_set_border_width(GTK_CONTAINER (vb), 4);
gtk_container_add(GTK_CONTAINER(f), vb);