summaryrefslogtreecommitdiffstats
path: root/src/ui/widget
diff options
context:
space:
mode:
authorJon A. Cruz <jon@joncruz.org>2006-02-19 05:32:13 +0000
committerjoncruz <joncruz@users.sourceforge.net>2006-02-19 05:32:13 +0000
commitbd98ee2549cf40630a6da66bbd994f2cc39b11b3 (patch)
tree96ba2f14c0a94aa5031b009d5200bf3eb4ccc3b8 /src/ui/widget
parentupdated PO files (diff)
downloadinkscape-bd98ee2549cf40630a6da66bbd994f2cc39b11b3.tar.gz
inkscape-bd98ee2549cf40630a6da66bbd994f2cc39b11b3.zip
Fixing scrollbar size for embeded color swatches.
(bzr r158)
Diffstat (limited to 'src/ui/widget')
-rw-r--r--src/ui/widget/panel.cpp8
-rw-r--r--src/ui/widget/panel.h3
2 files changed, 11 insertions, 0 deletions
diff --git a/src/ui/widget/panel.cpp b/src/ui/widget/panel.cpp
index 67aca690a..b0a35614d 100644
--- a/src/ui/widget/panel.cpp
+++ b/src/ui/widget/panel.cpp
@@ -134,6 +134,14 @@ void Panel::setLabel(Glib::ustring const &label)
tabTitle.set_label(this->label);
}
+void Panel::setOrientation( Gtk::AnchorType how )
+{
+ if ( _anchor != how )
+ {
+ _anchor = how;
+ }
+}
+
void Panel::_regItem( Gtk::MenuItem* item, int group, int id )
{
menu.append( *item );
diff --git a/src/ui/widget/panel.h b/src/ui/widget/panel.h
index 07225b8ce..9c53be8bb 100644
--- a/src/ui/widget/panel.h
+++ b/src/ui/widget/panel.h
@@ -38,6 +38,8 @@ public:
void setLabel(Glib::ustring const &label);
Glib::ustring const &getLabel() const;
+ virtual void setOrientation( Gtk::AnchorType how );
+
const gchar *_prefs_path;
void restorePanelPrefs();
@@ -47,6 +49,7 @@ protected:
virtual void _handleAction( int setId, int itemId );
+ Gtk::AnchorType _anchor;
private:
void init();