aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog6
-rw-r--r--lib/ephy-state.c9
2 files changed, 11 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index 7b534e789..479001205 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
2003-12-05 Christian Persch <chpe@cvs.gnome.org>
+ * 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 <chpe@cvs.gnome.org>
+
* embed/mozilla/GtkNSSClientAuthDialog.cpp:
Remove unused variable.
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