diff options
| author | Alexander Valavanis <valavanisalex@gmail.com> | 2019-05-26 15:11:07 +0000 |
|---|---|---|
| committer | Alexander Valavanis <valavanisalex@gmail.com> | 2019-05-26 15:11:07 +0000 |
| commit | 630be8274013c5eef5f19e19a14bc6d759aada5a (patch) | |
| tree | 6774d8db433426ab8361e18638869ad2336bf705 /src/ui/widget/selected-style.cpp | |
| parent | Rename wrong named function (diff) | |
| download | inkscape-630be8274013c5eef5f19e19a14bc6d759aada5a.tar.gz inkscape-630be8274013c5eef5f19e19a14bc6d759aada5a.zip | |
Rm unused code now Gtk+ >= 3.22 dependency is set
Diffstat (limited to 'src/ui/widget/selected-style.cpp')
| -rw-r--r-- | src/ui/widget/selected-style.cpp | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/src/ui/widget/selected-style.cpp b/src/ui/widget/selected-style.cpp index b7437c031..ea053765b 100644 --- a/src/ui/widget/selected-style.cpp +++ b/src/ui/widget/selected-style.cpp @@ -158,22 +158,12 @@ SelectedStyle::SelectedStyle(bool /*layout*/) _stroke_width.set_name("monoStrokeWidth"); _fill_empty_space.set_name("fillEmptySpace"); - -#if GTK_CHECK_VERSION(3,12,0) _fill_label.set_margin_start(0); _fill_label.set_margin_end(0); _stroke_label.set_margin_start(0); _stroke_label.set_margin_end(0); _opacity_label.set_margin_start(0); _opacity_label.set_margin_end(0); -#else - _fill_label.set_margin_left(0); - _fill_label.set_margin_right(0); - _stroke_label.set_margin_left(0); - _stroke_label.set_margin_right(0); - _opacity_label.set_margin_left(0); - _opacity_label.set_margin_right(0); -#endif _table.set_column_spacing(2); _table.set_row_spacing(0); @@ -834,11 +824,7 @@ SelectedStyle::on_fill_click(GdkEventButton *event) fs->showPageFill(); } else if (event->button == 3) { // right-click, popup menu -#if GTKMM_CHECK_VERSION(3,22,0) _popup[SS_FILL].popup_at_pointer(reinterpret_cast<GdkEvent *>(event)); -#else - _popup[SS_FILL].popup(event->button, event->time); -#endif } else if (event->button == 2) { // middle click, toggle none/lastcolor if (_mode[SS_FILL] == SS_NONE) { on_fill_lastused(); @@ -856,11 +842,7 @@ SelectedStyle::on_stroke_click(GdkEventButton *event) if (Dialog::FillAndStroke *fs = get_fill_and_stroke_panel(_desktop)) fs->showPageStrokePaint(); } else if (event->button == 3) { // right-click, popup menu -#if GTKMM_CHECK_VERSION(3,22,0) _popup[SS_STROKE].popup_at_pointer(reinterpret_cast<GdkEvent *>(event)); -#else - _popup[SS_STROKE].popup(event->button, event->time); -#endif } else if (event->button == 2) { // middle click, toggle none/lastcolor if (_mode[SS_STROKE] == SS_NONE) { on_stroke_lastused(); @@ -878,11 +860,7 @@ SelectedStyle::on_sw_click(GdkEventButton *event) if (Dialog::FillAndStroke *fs = get_fill_and_stroke_panel(_desktop)) fs->showPageStrokeStyle(); } else if (event->button == 3) { // right-click, popup menu -#if GTKMM_CHECK_VERSION(3,22,0) _popup_sw.popup_at_pointer(reinterpret_cast<GdkEvent *>(event)); -#else - _popup_sw.popup(event->button, event->time); -#endif } else if (event->button == 2) { // middle click, toggle none/lastwidth? // } |
