From 28d0874e77b657f504419ee5dca1bf1d5fa1675b Mon Sep 17 00:00:00 2001 From: Alexander Valavanis Date: Mon, 10 Jul 2017 00:28:38 +0200 Subject: Update Gtk margin handling --- src/ui/dialog/input.cpp | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'src/ui/dialog/input.cpp') diff --git a/src/ui/dialog/input.cpp b/src/ui/dialog/input.cpp index 9fd2288e7..91611f2f2 100644 --- a/src/ui/dialog/input.cpp +++ b/src/ui/dialog/input.cpp @@ -605,7 +605,17 @@ InputDialogImpl::InputDialogImpl() : testDetector.add(imageTable); testFrame.add(testDetector); testThumb.set(getPix(PIX_TABLET)); - testThumb.set_padding(24, 24); + testThumb.set_margin_top(24); + testThumb.set_margin_bottom(24); + +#if GTK_CHECK_VERSION(3,12,0) + testThumb.set_margin_start(24); + testThumb.set_margin_end(24); +#else + testThumb.set_margin_left(24); + testThumb.set_margin_right(24); +#endif + testThumb.set_hexpand(); testThumb.set_vexpand(); imageTable.attach(testThumb, 0, 0, 8, 1); -- cgit v1.2.3