diff options
| author | Alex Valavanis <valavanisalex@gmail.com> | 2012-04-10 10:38:21 +0000 |
|---|---|---|
| committer | Alex Valavanis <valavanisalex@gmail.com> | 2012-04-10 10:38:21 +0000 |
| commit | b15a1b0f69711ff3a82a25b3aacfffbbb94df0ff (patch) | |
| tree | 3d8ad778809ef1723e6b7067cd80e215724f197a /src/ui/widget | |
| parent | Additional cleanup. (diff) | |
| download | inkscape-b15a1b0f69711ff3a82a25b3aacfffbbb94df0ff.tar.gz inkscape-b15a1b0f69711ff3a82a25b3aacfffbbb94df0ff.zip | |
Adopt obsolete GtkAnchorType enum as SPAnchorType
(bzr r11207)
Diffstat (limited to 'src/ui/widget')
| -rw-r--r-- | src/ui/widget/panel.cpp | 8 | ||||
| -rw-r--r-- | src/ui/widget/panel.h | 6 |
2 files changed, 7 insertions, 7 deletions
diff --git a/src/ui/widget/panel.cpp b/src/ui/widget/panel.cpp index 0989c7d0d..45c4e5f07 100644 --- a/src/ui/widget/panel.cpp +++ b/src/ui/widget/panel.cpp @@ -88,7 +88,7 @@ void Panel::_popper(GdkEventButton* event) void Panel::_init() { Glib::ustring tmp("<"); - _anchor = Gtk::ANCHOR_CENTER; + _anchor = SP_ANCHOR_CENTER; guint panel_size = 0, panel_mode = 0, panel_ratio = 100; bool panel_wrap = 0; @@ -269,13 +269,13 @@ void Panel::setLabel(Glib::ustring const &label) _tab_title.set_label(_label); } -void Panel::setOrientation(Gtk::AnchorType how) +void Panel::setOrientation(SPAnchorType how) { if (_anchor != how) { _anchor = how; switch (_anchor) { - case Gtk::ANCHOR_NORTH: - case Gtk::ANCHOR_SOUTH: + case SP_ANCHOR_NORTH: + case SP_ANCHOR_SOUTH: { if (_menu_desired) { _menu_popper.reference(); diff --git a/src/ui/widget/panel.h b/src/ui/widget/panel.h index c1942ef05..7b471c2ce 100644 --- a/src/ui/widget/panel.h +++ b/src/ui/widget/panel.h @@ -18,7 +18,7 @@ #include <gtkmm/button.h> #include <gtkmm/eventbox.h> #include <gtkmm/label.h> - +#include "enums.h" #include <vector> class SPDesktop; @@ -80,7 +80,7 @@ public: int const &getVerb() const; Glib::ustring const &getApplyLabel() const; - virtual void setOrientation(Gtk::AnchorType how); + virtual void setOrientation(SPAnchorType how); virtual void present(); //< request to be present @@ -126,7 +126,7 @@ protected: */ Glib::ustring const _prefs_path; bool _menu_desired; - Gtk::AnchorType _anchor; + SPAnchorType _anchor; /* Signals */ sigc::signal<void, int> _signal_response; |
