summaryrefslogtreecommitdiffstats
path: root/src/ui/toolbar/star-toolbar.cpp
diff options
context:
space:
mode:
authorNathan Lee <2431820-nathanal@users.noreply.gitlab.com>2019-03-02 03:40:58 +0000
committerMarc Jeanmougin <marcjeanmougin@free.fr>2019-05-13 22:43:53 +0000
commit4c82216535f138fb917b8258cebb799054e64cce (patch)
tree75fe1e35cf9a9c98b6ba3599190c75983249283b /src/ui/toolbar/star-toolbar.cpp
parentpackaging/macos: typos fixed (diff)
downloadinkscape-4c82216535f138fb917b8258cebb799054e64cce.tar.gz
inkscape-4c82216535f138fb917b8258cebb799054e64cce.zip
Regression fix: hide some toolbar icons on startup
Pencil toolbar also given some checks for gitlab.com/inkscape/inkscape/issues/92 Fixes gitlab.com/inkscape/inbox/issues/182
Diffstat (limited to 'src/ui/toolbar/star-toolbar.cpp')
-rw-r--r--src/ui/toolbar/star-toolbar.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/ui/toolbar/star-toolbar.cpp b/src/ui/toolbar/star-toolbar.cpp
index d269fe431..13a295e5d 100644
--- a/src/ui/toolbar/star-toolbar.cpp
+++ b/src/ui/toolbar/star-toolbar.cpp
@@ -129,12 +129,6 @@ StarToolbar::StarToolbar(SPDesktop *desktop) :
_spoke_item->set_focus_widget(Glib::wrap(GTK_WIDGET(desktop->canvas)));
_spoke_adj->signal_value_changed().connect(sigc::mem_fun(*this, &StarToolbar::proportion_value_changed));
- if ( !isFlatSided ) {
- _spoke_item->set_visible(true);
- } else {
- _spoke_item->set_visible(false);
- }
-
add(*_spoke_item);
}
@@ -184,6 +178,7 @@ StarToolbar::StarToolbar(SPDesktop *desktop) :
desktop->connectEventContextChanged(sigc::mem_fun(*this, &StarToolbar::watch_ec));
show_all();
+ _spoke_item->set_visible(!isFlatSided);
}
StarToolbar::~StarToolbar()