From: joncruz Date: Fri, 22 Feb 2008 08:47:05 +0000 (+0000) Subject: Reducing size of pop-up menu trigger X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=0fcf513ca4d969d70c0035d2dc47396f49c4f973;p=inkscape.git Reducing size of pop-up menu trigger --- 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 // for Gtk::RESPONSE_* #include +#include + #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(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)); }