summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 7d91f67)
raw | patch | inline | side by side (parent: 7d91f67)
author | joncruz <joncruz@users.sourceforge.net> | |
Mon, 22 May 2006 09:32:22 +0000 (09:32 +0000) | ||
committer | joncruz <joncruz@users.sourceforge.net> | |
Mon, 22 May 2006 09:32:22 +0000 (09:32 +0000) |
ChangeLog | patch | blob | history | |
src/dialogs/swatches.cpp | patch | blob | history | |
src/ui/widget/panel.cpp | patch | blob | history | |
src/ui/widget/panel.h | patch | blob | history |
diff --git a/ChangeLog b/ChangeLog
index e7ce13d050ab1a9d3b9c25844070186ac9931c6a..93b22d4c75a81d2add0b3bcff29f7ac89de59c3f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
+2006-05-22 Jon A. Cruz <jon@joncruz.org>
+
+ * src/dialogs/swatches.cpp, src/ui/widget/panel.cpp,
+ src/ui/widget/panel.h:
+ Removed panel menu unless requested. Fixes bug #1492597.
+
2006-05-22 MenTaLguY <mental@rydia.net>
* src/extension/internal/svg.cpp:
index 5af23f95eecd302a420ab460241665a6a5df6807..31e91562b2964824d70b20838ed5ce179805f15c 100644 (file)
--- a/src/dialogs/swatches.cpp
+++ b/src/dialogs/swatches.cpp
* Constructor
*/
SwatchesPanel::SwatchesPanel() :
- Inkscape::UI::Widget::Panel ("dialogs.swatches"),
+ Inkscape::UI::Widget::Panel( "dialogs.swatches", true ),
_holder(0)
{
_holder = new PreviewHolder();
index f00d736ae74884fdb9d4e035f9fdcb6409009440..2112ea7b2d90d28433e37da955a139e70a0b322c 100644 (file)
--- a/src/ui/widget/panel.cpp
+++ b/src/ui/widget/panel.cpp
* \param label Label.
*/
-Panel::Panel(const gchar *prefs_path) :
+Panel::Panel( const gchar *prefs_path, bool menuDesired ) :
_prefs_path(NULL),
+ _menuDesired(menuDesired),
_tempArrow( Gtk::ARROW_LEFT, Gtk::SHADOW_ETCHED_OUT ),
menu(0),
_fillable(0)
Panel::Panel() :
_prefs_path(NULL),
+ _menuDesired(false),
_tempArrow( Gtk::ARROW_LEFT, Gtk::SHADOW_ETCHED_OUT ),
menu(0),
_fillable(0)
init();
}
-Panel::Panel(Glib::ustring const &label) :
+Panel::Panel( Glib::ustring const &label, bool menuDesired ) :
_prefs_path(NULL),
+ _menuDesired(menuDesired),
_tempArrow( Gtk::ARROW_LEFT, Gtk::SHADOW_ETCHED_OUT ),
menu(0),
_fillable(0)
//topBar.pack_end(closeButton, false, false);
- topBar.pack_end(menuPopper, false, false);
- Gtk::Frame* outliner = manage(new Gtk::Frame());
- outliner->set_shadow_type( Gtk::SHADOW_ETCHED_IN );
- outliner->add( _tempArrow );
- menuPopper.add( *outliner );
- menuPopper.signal_button_press_event().connect_notify( sigc::mem_fun(*this, &Panel::_popper) );
+ if ( _menuDesired ) {
+ topBar.pack_end(menuPopper, false, false);
+ Gtk::Frame* outliner = manage(new Gtk::Frame());
+ outliner->set_shadow_type( Gtk::SHADOW_ETCHED_IN );
+ outliner->add( _tempArrow );
+ menuPopper.add( *outliner );
+ menuPopper.signal_button_press_event().connect_notify( sigc::mem_fun(*this, &Panel::_popper) );
+ }
pack_start( topBar, false, false );
case Gtk::ANCHOR_NORTH:
case Gtk::ANCHOR_SOUTH:
{
- menuPopper.reference();
- topBar.remove(menuPopper);
- rightBar.pack_start(menuPopper, false, false);
- menuPopper.unreference();
+ if ( _menuDesired ) {
+ menuPopper.reference();
+ topBar.remove(menuPopper);
+ rightBar.pack_start(menuPopper, false, false);
+ menuPopper.unreference();
+ }
topBar.remove(tabTitle);
}
diff --git a/src/ui/widget/panel.h b/src/ui/widget/panel.h
index 8fb4b517a79978f1d21cd8ada31c2505708926fd..cf201d6da7095980ba49c2a581a7d0f1cea34dd9 100644 (file)
--- a/src/ui/widget/panel.h
+++ b/src/ui/widget/panel.h
public:
Panel();
virtual ~Panel();
- Panel(Glib::ustring const &label);
- Panel(const gchar *prefs_path);
+ Panel(Glib::ustring const &label, bool menuDesired = false );
+ Panel(const gchar *prefs_path, bool menuDesired = false );
void setLabel(Glib::ustring const &label);
Glib::ustring const &getLabel() const;
void _regItem( Gtk::MenuItem* item, int group, int id );
virtual void _handleAction( int setId, int itemId );
+ bool _menuDesired;
Gtk::AnchorType _anchor;