diff options
| author | Stefano Facchini <stefano.facchini@gmail.com> | 2017-10-21 14:40:14 +0000 |
|---|---|---|
| committer | Tavmjong Bah <tavmjong@free.fr> | 2018-01-16 21:08:40 +0000 |
| commit | 78625f7d59d5e54e2adbc3372e454c5e74fcbec9 (patch) | |
| tree | fc8505ec0b93878004e8751ebde101d7f189e65f /src/ui/widget/panel.cpp | |
| parent | Remove the dialog "showclose" option (diff) | |
| download | inkscape-78625f7d59d5e54e2adbc3372e454c5e74fcbec9.tar.gz inkscape-78625f7d59d5e54e2adbc3372e454c5e74fcbec9.zip | |
panel: Remove the unused "title" label
Diffstat (limited to 'src/ui/widget/panel.cpp')
| -rw-r--r-- | src/ui/widget/panel.cpp | 31 |
1 files changed, 1 insertions, 30 deletions
diff --git a/src/ui/widget/panel.cpp b/src/ui/widget/panel.cpp index 2d0a75d2b..c97543371 100644 --- a/src/ui/widget/panel.cpp +++ b/src/ui/widget/panel.cpp @@ -55,13 +55,12 @@ void Panel::prep() { eek_preview_set_size_mappings( G_N_ELEMENTS(sizes), sizes ); } -Panel::Panel(Glib::ustring const &label, gchar const *prefs_path, +Panel::Panel(gchar const *prefs_path, int verb_num, bool menu_desired) : _prefs_path(prefs_path), _menu_desired(menu_desired), _desktop(SP_ACTIVE_DESKTOP), - _label(label), _verb_num(verb_num), _temp_arrow(), _menu(0), @@ -256,16 +255,6 @@ void Panel::_init() (*iter)->hide(); } - // _close_button.set_label("X"); - - if (!_label.empty()) { - _tab_title.set_label(_label); - _top_bar.pack_start(_tab_title); - } - - // _top_bar.pack_end(_close_button, false, false); - - if ( _menu_desired ) { _top_bar.pack_end(_menu_popper, false, false); gint width = 0; @@ -302,17 +291,6 @@ void Panel::_init() _bounceCall(PANEL_SETTING_BORDER, panel_border); } -void Panel::setLabel(Glib::ustring const &label) -{ - if (_label.empty() && !label.empty()) - _top_bar.pack_start(_tab_title); - else if (!_label.empty() && label.empty()) - _top_bar.remove(_tab_title); - - _label = label; - _tab_title.set_label(_label); -} - void Panel::setOrientation(SPAnchorType how) { if (_anchor != how) { @@ -336,8 +314,6 @@ void Panel::setOrientation(SPAnchorType how) } // Ensure we are not in "list" mode _bounceCall(PANEL_SETTING_MODE, 1); - if (!_label.empty()) - _top_bar.remove(_tab_title); } break; @@ -532,11 +508,6 @@ gchar const *Panel::getPrefsPath() const return _prefs_path.data(); } -Glib::ustring const &Panel::getLabel() const -{ - return _label; -} - int const &Panel::getVerb() const { return _verb_num; |
