Hide the default tab labels when Tab Panel is active
This commit is contained in:
parent
1e28cd3b14
commit
f38fb44048
1 changed files with 11 additions and 0 deletions
|
@ -23,6 +23,13 @@ tab_panel_deactivate_cb (MidoriExtension* extension,
|
|||
GtkWidget* panel)
|
||||
{
|
||||
MidoriApp* app = midori_extension_get_app (extension);
|
||||
MidoriBrowser* browser;
|
||||
GtkWidget* notebook;
|
||||
|
||||
browser = midori_browser_get_for_widget (panel);
|
||||
notebook = katze_object_get_object (browser, "notebook");
|
||||
gtk_notebook_set_show_tabs (GTK_NOTEBOOK (notebook), TRUE);
|
||||
g_object_unref (notebook);
|
||||
|
||||
gtk_widget_destroy (panel);
|
||||
g_signal_handlers_disconnect_by_func (
|
||||
|
@ -41,6 +48,10 @@ tab_panel_app_add_browser_cb (MidoriApp* app,
|
|||
GtkWidget* toolbar;
|
||||
/* GtkToolItem* toolitem; */
|
||||
|
||||
notebook = katze_object_get_object (browser, "notebook");
|
||||
gtk_notebook_set_show_tabs (GTK_NOTEBOOK (notebook), FALSE);
|
||||
g_object_unref (notebook);
|
||||
|
||||
panel = katze_object_get_object (browser, "panel");
|
||||
notebook = gtk_notebook_new ();
|
||||
gtk_notebook_set_tab_pos (GTK_NOTEBOOK (notebook), GTK_POS_RIGHT);
|
||||
|
|
Loading…
Reference in a new issue