]> git.tokkee.org Git - inkscape.git/commitdiff

Code

Reducing size of pop-up menu trigger
authorjoncruz <joncruz@users.sourceforge.net>
Fri, 22 Feb 2008 08:47:05 +0000 (08:47 +0000)
committerjoncruz <joncruz@users.sourceforge.net>
Fri, 22 Feb 2008 08:47:05 +0000 (08:47 +0000)
src/ui/widget/panel.cpp

index c01cb7768a6e4a58021403a5df2b3761b18e9258..45705b9916e19939399166f64800057eb01aea19 100644 (file)
@@ -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));
     }