diff options
| author | Alexander Valavanis <valavanisalex@gmail.com> | 2017-07-09 22:28:38 +0000 |
|---|---|---|
| committer | Alexander Valavanis <valavanisalex@gmail.com> | 2017-07-09 22:28:38 +0000 |
| commit | 28d0874e77b657f504419ee5dca1bf1d5fa1675b (patch) | |
| tree | 26f73d70621d43a6021ec2804de6c693869bf1e3 /src/ui/dialog | |
| parent | Fix build for Gtk < 3.12 (diff) | |
| download | inkscape-28d0874e77b657f504419ee5dca1bf1d5fa1675b.tar.gz inkscape-28d0874e77b657f504419ee5dca1bf1d5fa1675b.zip | |
Update Gtk margin handling
Diffstat (limited to 'src/ui/dialog')
| -rw-r--r-- | src/ui/dialog/input.cpp | 12 |
1 files changed, 11 insertions, 1 deletions
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); |
