From b36b57e81623194ba56d4862d2fba49d944a2793 Mon Sep 17 00:00:00 2001 From: Cyrille Bagard Date: Sun, 11 Nov 2012 21:50:23 +0000 Subject: Fixed a bug by saving the title of a panel when changing its active widget. git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@282 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a --- ChangeLog | 5 +++++ src/gtkext/gtkdockstation.c | 3 +++ 2 files changed, 8 insertions(+) diff --git a/ChangeLog b/ChangeLog index ab7c16f..9580c23 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 12-11-11 Cyrille Bagard + * src/gtkext/gtkdockstation.c: + Fix a bug by saving the title of a panel when changing its active widget. + +12-11-11 Cyrille Bagard + * 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); -- cgit v0.11.2-87-g4458