Hide the tab label properly if it's minimized initially

This commit is contained in:
Christian Dywan 2010-05-09 00:30:24 +02:00
parent 3b9a4a5705
commit d522efa23c

View file

@ -4265,7 +4265,6 @@ midori_view_get_proxy_tab_label (MidoriView* view)
midori_view_get_icon (view)); midori_view_get_icon (view));
view->tab_title = gtk_label_new (midori_view_get_display_title (view)); view->tab_title = gtk_label_new (midori_view_get_display_title (view));
sokoke_widget_set_visible (view->tab_title, !view->minimized);
gtk_misc_set_alignment (GTK_MISC (view->tab_title), 0.0, 0.5); gtk_misc_set_alignment (GTK_MISC (view->tab_title), 0.0, 0.5);
event_box = gtk_event_box_new (); event_box = gtk_event_box_new ();
@ -4297,6 +4296,8 @@ midori_view_get_proxy_tab_label (MidoriView* view)
#endif #endif
gtk_widget_show_all (GTK_WIDGET (event_box)); gtk_widget_show_all (GTK_WIDGET (event_box));
if (view->minimized)
gtk_widget_hide (view->tab_title);
if (!view->close_buttons_on_tabs) if (!view->close_buttons_on_tabs)
gtk_widget_hide (view->tab_close); gtk_widget_hide (view->tab_close);