summaryrefslogtreecommitdiffstats
path: root/src/ui
diff options
context:
space:
mode:
authorAlex Valavanis <valavanisalex@gmail.com>2016-12-26 12:07:14 +0000
committerAlexander Valavanis <valavanisalex@gmail.com>2016-12-26 12:07:14 +0000
commit3182218af4961cfc0a92b2f1eae4cfab74e64eff (patch)
treed4916ea67d0cea6dc28ddf9f3b0c415abbcf5534 /src/ui
parentFixes bug #1652465 on mirror and copy rotate LPE. (diff)
downloadinkscape-3182218af4961cfc0a92b2f1eae4cfab74e64eff.tar.gz
inkscape-3182218af4961cfc0a92b2f1eae4cfab74e64eff.zip
Fix a few Gtkmm deprecations
(bzr r15357)
Diffstat (limited to 'src/ui')
-rw-r--r--src/ui/widget/panel.cpp10
-rw-r--r--src/ui/widget/panel.h4
2 files changed, 6 insertions, 8 deletions
diff --git a/src/ui/widget/panel.cpp b/src/ui/widget/panel.cpp
index 6e6e6c527..d2ec340c8 100644
--- a/src/ui/widget/panel.cpp
+++ b/src/ui/widget/panel.cpp
@@ -66,7 +66,7 @@ Panel::Panel(Glib::ustring const &label, gchar const *prefs_path,
_label(label),
_apply_label(apply_label),
_verb_num(verb_num),
- _temp_arrow(Gtk::ARROW_LEFT, Gtk::SHADOW_ETCHED_OUT),
+ _temp_arrow(),
_menu(0),
_action_area(0),
_fillable(0)
@@ -269,11 +269,9 @@ void Panel::_init()
_top_bar.pack_end(_menu_popper, false, false);
gint width = 0;
gint height = 0;
-
- if ( gtk_icon_size_lookup( Inkscape::getRegisteredIconSize(Inkscape::ICON_SIZE_DECORATION), &width, &height ) ) {
- _temp_arrow.set_size_request(width, height);
- }
-
+ gtk_image_set_from_icon_name(_temp_arrow.gobj(),
+ "pan-start-symbolic",
+ Inkscape::getRegisteredIconSize(Inkscape::ICON_SIZE_SMALL_TOOLBAR));
_menu_popper.add(_temp_arrow);
_menu_popper.signal_button_press_event().connect_notify(sigc::mem_fun(*this, &Panel::_popper));
}
diff --git a/src/ui/widget/panel.h b/src/ui/widget/panel.h
index 370779586..0ea609904 100644
--- a/src/ui/widget/panel.h
+++ b/src/ui/widget/panel.h
@@ -18,9 +18,9 @@
#endif
#include <gtkmm/box.h>
-#include <gtkmm/arrow.h>
#include <gtkmm/button.h>
#include <gtkmm/eventbox.h>
+#include <gtkmm/image.h>
#include <gtkmm/label.h>
#include "enums.h"
#include <vector>
@@ -157,7 +157,7 @@ private:
Gtk::VBox _right_bar;
Gtk::VBox _contents;
Gtk::Label _tab_title;
- Gtk::Arrow _temp_arrow;
+ Gtk::Image _temp_arrow;
Gtk::EventBox _menu_popper;
Gtk::Button _close_button;
Gtk::Menu *_menu;