Commit 4eb5539f authored by Sebastien Granjoux's avatar Sebastien Granjoux

Do not display GdlSwitcher button when the corresponding page is hidden

When changing GdlSwitcher button style from tabs to buttons, all buttons were
displayed even when the corresponding page was hidden.
parent 85cf2892
......@@ -1159,7 +1159,7 @@ gdl_switcher_set_show_buttons (GdlSwitcher *switcher, gboolean show)
for (p = switcher->priv->buttons; p != NULL; p = p->next) {
Button *button = p->data;
if (show)
if (show && gtk_widget_get_visible (button->page))
gtk_widget_show (button->button_widget);
gtk_widget_hide (button->button_widget);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment