diff options
Diffstat (limited to 'src/gtkext')
-rw-r--r-- | src/gtkext/gtkdockstation.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gtkext/gtkdockstation.c b/src/gtkext/gtkdockstation.c index 69544f7..2a0d188 100644 --- a/src/gtkext/gtkdockstation.c +++ b/src/gtkext/gtkdockstation.c @@ -259,6 +259,7 @@ void gtk_dock_panel_change_active_widget(GtkDockStation *station, GtkWidget *wid gint index; /* Indice de l'onglet actif */ GtkWidget *old; /* Ancien composant */ GtkWidget *label; /* Etiquette d'onglet */ + char *str; /* Titre des prochaines fois */ index = gtk_notebook_get_current_page(station->notebook); @@ -270,11 +271,13 @@ void gtk_dock_panel_change_active_widget(GtkDockStation *station, GtkWidget *wid g_object_ref(G_OBJECT(old)); g_object_ref(G_OBJECT(label)); + str = g_object_get_data(G_OBJECT(old), "title"); gtk_notebook_remove_page(station->notebook, index); gtk_notebook_insert_page(station->notebook, widget, label, index); g_object_unref(G_OBJECT(label)); + g_object_set_data(G_OBJECT(widget), "title", str); gtk_notebook_set_current_page(station->notebook, index); |