summaryrefslogtreecommitdiffstats
path: root/src/ui/dialog/new-from-template.cpp
diff options
context:
space:
mode:
authorAlex Valavanis <valavanisalex@gmail.com>2014-08-24 10:37:18 +0000
committerAlex Valavanis <valavanisalex@gmail.com>2014-08-24 10:37:18 +0000
commita3e1d94ae50f769d2b1539307cf182ce5801e647 (patch)
tree4c23b083c4c6d2b53a2d1cec35ff7600a77de4dc /src/ui/dialog/new-from-template.cpp
parentFinish Gtk::Grid migration (diff)
downloadinkscape-a3e1d94ae50f769d2b1539307cf182ce5801e647.tar.gz
inkscape-a3e1d94ae50f769d2b1539307cf182ce5801e647.zip
Fix Gtk+ 2 build
(bzr r13341.1.171)
Diffstat (limited to 'src/ui/dialog/new-from-template.cpp')
-rw-r--r--src/ui/dialog/new-from-template.cpp15
1 files changed, 14 insertions, 1 deletions
diff --git a/src/ui/dialog/new-from-template.cpp b/src/ui/dialog/new-from-template.cpp
index 5ce96d10f..e30b148bb 100644
--- a/src/ui/dialog/new-from-template.cpp
+++ b/src/ui/dialog/new-from-template.cpp
@@ -8,6 +8,9 @@
* Released under GNU GPL, read the file 'COPYING' for more information
*/
+#if HAVE_CONFIG_H
+ #include "config.h"
+#endif
#include "new-from-template.h"
#include "file.h"
@@ -25,12 +28,22 @@ NewFromTemplate::NewFromTemplate()
{
set_title(_("New From Template"));
resize(400, 400);
-
+
+#if WITH_GTKMM_3_0
get_content_area()->pack_start(_main_widget);
+#else
+ get_vbox()->pack_start(_main_widget);
+#endif
Gtk::Alignment *align;
align = Gtk::manage(new Gtk::Alignment(Gtk::ALIGN_END, Gtk::ALIGN_CENTER, 0.0, 0.0));
+
+#if WITH_GTKMM_3_0
get_content_area()->pack_end(*align, Gtk::PACK_SHRINK);
+#else
+ get_vbox()->pack_end(*align, Gtk::PACK_SHRINK);
+#endif
+
align->set_padding(0, 0, 0, 15);
align->add(_create_template_button);