summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJon A. Cruz <jon@joncruz.org>2008-02-22 08:47:05 +0000
committerjoncruz <joncruz@users.sourceforge.net>2008-02-22 08:47:05 +0000
commit78efddbc2d08124775cd5d526e97f44e0f13aff1 (patch)
tree608a7dcf44a7544e4c949c6b557741b53fc7029e
parentWarning cleanup (diff)
downloadinkscape-78efddbc2d08124775cd5d526e97f44e0f13aff1.tar.gz
inkscape-78efddbc2d08124775cd5d526e97f44e0f13aff1.zip
Reducing size of pop-up menu trigger
(bzr r4819)
-rw-r--r--src/ui/widget/panel.cpp14
1 files changed, 10 insertions, 4 deletions
diff --git a/src/ui/widget/panel.cpp b/src/ui/widget/panel.cpp
index c01cb7768..45705b991 100644
--- a/src/ui/widget/panel.cpp
+++ b/src/ui/widget/panel.cpp
@@ -22,6 +22,8 @@
#include <gtkmm/dialog.h> // for Gtk::RESPONSE_*
#include <gtkmm/stock.h>
+#include <gtk/gtkiconfactory.h>
+
#include "panel.h"
#include "icon-size.h"
#include "prefs-utils.h"
@@ -220,10 +222,14 @@ void Panel::_init()
if ( _menu_desired ) {
_top_bar.pack_end(_menu_popper, false, false);
- Gtk::Frame* outliner = manage(new Gtk::Frame());
- outliner->set_shadow_type(Gtk::SHADOW_ETCHED_IN);
- outliner->add(_temp_arrow);
- _menu_popper.add(*outliner);
+ gint width = 0;
+ gint height = 0;
+
+ if ( gtk_icon_size_lookup( static_cast<GtkIconSize>(Inkscape::ICON_SIZE_DECORATION), &width, &height ) ) {
+ _temp_arrow.set_size_request(width, height);
+ }
+
+ _menu_popper.add(_temp_arrow);
_menu_popper.signal_button_press_event().connect_notify(sigc::mem_fun(*this, &Panel::_popper));
}