From 72422dbaef675fa8a016ce7c5b4b801e7d478c23 Mon Sep 17 00:00:00 2001 From: Christian Persch Date: Fri, 5 Dec 2003 21:33:45 +0000 Subject: Use notify::expanded to persist expander state. Bug found by Crispin. 2003-12-05 Christian Persch * lib/ephy-state.c: (sync_expander_cb), (ephy_state_add_expander): Use notify::expanded to persist expander state. Bug found by Crispin. --- ChangeLog | 6 ++++++ lib/ephy-state.c | 9 +++++---- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 7b534e789..479001205 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2003-12-05 Christian Persch + + * lib/ephy-state.c: (sync_expander_cb), (ephy_state_add_expander): + + Use notify::expanded to persist expander state. Bug found by Crispin. + 2003-12-05 Christian Persch * embed/mozilla/GtkNSSClientAuthDialog.cpp: diff --git a/lib/ephy-state.c b/lib/ephy-state.c index fb214775f..f106ed565 100644 --- a/lib/ephy-state.c +++ b/lib/ephy-state.c @@ -436,8 +436,9 @@ ephy_state_add_paned (GtkWidget *paned, } static void -expander_activate_cb (GtkExpander *expander, - EphyNode *node) +sync_expander_cb (GtkExpander *expander, + GParamSpec *pspec, + EphyNode *node) { GValue value = { 0, }; @@ -483,8 +484,8 @@ ephy_state_add_expander (GtkWidget *expander, gtk_expander_set_expanded (GTK_EXPANDER (expander), expanded); - g_signal_connect (expander, "activate", - G_CALLBACK (expander_activate_cb), node); + g_signal_connect (expander, "notify::expanded", + G_CALLBACK (sync_expander_cb), node); } void -- cgit v1.2.3