summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAlex Valavanis <valavanisalex@gmail.com>2014-08-23 21:52:01 +0000
committerAlex Valavanis <valavanisalex@gmail.com>2014-08-23 21:52:01 +0000
commit81ae160f5d204d3841505a6c364c064f77f17f88 (patch)
tree73a3bffd868d77e2d4bb18be23437c1157d4ce24 /src
parentMigrate more widgets to Gtk::Grid (diff)
downloadinkscape-81ae160f5d204d3841505a6c364c064f77f17f88.tar.gz
inkscape-81ae160f5d204d3841505a6c364c064f77f17f88.zip
Finish Gtk::Grid migration
(bzr r13341.1.170)
Diffstat (limited to 'src')
-rw-r--r--src/ui/dialog/lpe-fillet-chamfer-properties.cpp13
-rw-r--r--src/ui/dialog/lpe-fillet-chamfer-properties.h21
2 files changed, 33 insertions, 1 deletions
diff --git a/src/ui/dialog/lpe-fillet-chamfer-properties.cpp b/src/ui/dialog/lpe-fillet-chamfer-properties.cpp
index c1e16495b..f5a554b36 100644
--- a/src/ui/dialog/lpe-fillet-chamfer-properties.cpp
+++ b/src/ui/dialog/lpe-fillet-chamfer-properties.cpp
@@ -46,18 +46,31 @@ FilletChamferPropertiesDialog::FilletChamferPropertiesDialog()
{
Gtk::Box *mainVBox = get_content_area();
mainVBox->set_homogeneous(false);
+
+#if WITH_GTKMM_3_0
+ _layout_table.set_row_spacing(4);
+ _layout_table.set_column_spacing(4);
+#else
_layout_table.set_spacings(4);
_layout_table.resize(2, 2);
+#endif
// Layer name widgets
_fillet_chamfer_position_entry.set_activates_default(true);
_fillet_chamfer_position_label.set_label(_("Radius (pixels):"));
_fillet_chamfer_position_label.set_alignment(1.0, 0.5);
+#if WITH_GTKMM_3_0
+ _layout_table.attach(_fillet_chamfer_position_label, 0, 0, 1, 1);
+ _layout_table.attach(_fillet_chamfer_position_entry, 1, 0, 1, 1);
+ _fillet_chamfer_position_entry.set_hexpand();
+#else
_layout_table.attach(_fillet_chamfer_position_label, 0, 1, 0, 1, Gtk::FILL,
Gtk::FILL);
_layout_table.attach(_fillet_chamfer_position_entry, 1, 2, 0, 1,
Gtk::FILL | Gtk::EXPAND, Gtk::FILL);
+#endif
+
_fillet_chamfer_type_fillet.set_label(_("Fillet"));
_fillet_chamfer_type_fillet.set_group(_fillet_chamfer_type_group);
_fillet_chamfer_type_inverse_fillet.set_label(_("Inverse fillet"));
diff --git a/src/ui/dialog/lpe-fillet-chamfer-properties.h b/src/ui/dialog/lpe-fillet-chamfer-properties.h
index d3e859bff..6667e5785 100644
--- a/src/ui/dialog/lpe-fillet-chamfer-properties.h
+++ b/src/ui/dialog/lpe-fillet-chamfer-properties.h
@@ -8,10 +8,24 @@
#ifndef INKSCAPE_DIALOG_FILLET_CHAMFER_PROPERTIES_H
#define INKSCAPE_DIALOG_FILLET_CHAMFER_PROPERTIES_H
+#if HAVE_CONFIG_H
+ #include "config.h"
+#endif
+
#include <2geom/point.h>
-#include <gtkmm.h>
#include "live_effects/parameter/filletchamferpointarray.h"
+#include <gtkmm/dialog.h>
+#include <gtkmm/entry.h>
+#include <gtkmm/label.h>
+#include <gtkmm/radiobutton.h>
+
+#if WITH_GTKMM_3_0
+ #include <gtkmm/grid.h>
+#else
+ #include <gtkmm/table.h>
+#endif
+
class SPDesktop;
namespace Inkscape {
@@ -46,7 +60,12 @@ protected:
Gtk::RadioButton _fillet_chamfer_type_chamfer;
Gtk::RadioButton _fillet_chamfer_type_double_chamfer;
+#if WITH_GTKMM_3_0
+ Gtk::Grid _layout_table;
+#else
Gtk::Table _layout_table;
+#endif
+
bool _position_visible;
double _index;