diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | src/gtkext/gtkdockstation.c | 3 |
2 files changed, 8 insertions, 0 deletions
@@ -1,5 +1,10 @@ 12-11-11 Cyrille Bagard <nocbos@gmail.com> + * src/gtkext/gtkdockstation.c: + Fix a bug by saving the title of a panel when changing its active widget. + +12-11-11 Cyrille Bagard <nocbos@gmail.com> + * src/arch/dalvik/instruction.c: * src/arch/dalvik/instruction-def.h: Register the remaining instructions for a full Dalvik opcodes support. 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); |