summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 6b030a0)
raw | patch | inline | side by side (parent: 6b030a0)
| author | joncruz <joncruz@users.sourceforge.net> | |
| Fri, 22 Feb 2008 08:47:05 +0000 (08:47 +0000) | ||
| committer | joncruz <joncruz@users.sourceforge.net> | |
| Fri, 22 Feb 2008 08:47:05 +0000 (08:47 +0000) |
| src/ui/widget/panel.cpp | patch | blob | history |
index c01cb7768a6e4a58021403a5df2b3761b18e9258..45705b9916e19939399166f64800057eb01aea19 100644 (file)
--- a/src/ui/widget/panel.cpp
+++ b/src/ui/widget/panel.cpp
#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"
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));
}