From 44782965589f26ec8347388028b9305250717a35 Mon Sep 17 00:00:00 2001 From: Alexander Valavanis Date: Thu, 6 Jul 2017 22:12:01 +0200 Subject: Fix gtk margin API --- src/widgets/sp-attribute-widget.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/widgets/sp-attribute-widget.cpp') diff --git a/src/widgets/sp-attribute-widget.cpp b/src/widgets/sp-attribute-widget.cpp index cbff62b23..2eedc3834 100644 --- a/src/widgets/sp-attribute-widget.cpp +++ b/src/widgets/sp-attribute-widget.cpp @@ -159,8 +159,13 @@ void SPAttributeTable::set_object(SPObject *object, ll->show(); ll->set_alignment (1.0, 0.5); ll->set_vexpand(); +#if WITH_GTKMM_3_12 + ll->set_margin_start(XPAD); + ll->set_margin_end(XPAD); +#else ll->set_margin_left(XPAD); ll->set_margin_right(XPAD); +#endif ll->set_margin_top(XPAD); ll->set_margin_bottom(XPAD); table->attach(*ll, 0, i, 1, 1); @@ -171,8 +176,13 @@ void SPAttributeTable::set_object(SPObject *object, ee->set_text (val ? val : (const gchar *) ""); ee->set_hexpand(); ee->set_vexpand(); +#if WITH_GTKMM_3_12 + ee->set_margin_start(XPAD); + ee->set_margin_end(XPAD); +#else ee->set_margin_left(XPAD); ee->set_margin_right(XPAD); +#endif ee->set_margin_top(XPAD); ee->set_margin_bottom(XPAD); table->attach(*ee, 1, i, 1, 1); -- cgit v1.2.3