aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2003-12-06 05:33:45 +0800
committerChristian Persch <chpe@src.gnome.org>2003-12-06 05:33:45 +0800
commit72422dbaef675fa8a016ce7c5b4b801e7d478c23 (patch)
tree731ef662344e672e02f3cd506f251bf05b339eb9 /lib
parent57446c7410f0624ccab73132663890d7ea1815f7 (diff)
downloadgsoc2013-epiphany-72422dbaef675fa8a016ce7c5b4b801e7d478c23.tar.gz
gsoc2013-epiphany-72422dbaef675fa8a016ce7c5b4b801e7d478c23.tar.zst
gsoc2013-epiphany-72422dbaef675fa8a016ce7c5b4b801e7d478c23.zip
Use notify::expanded to persist expander state. Bug found by Crispin.
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.
Diffstat (limited to 'lib')
-rw-r--r--lib/ephy-state.c9
1 files changed, 5 insertions, 4 deletions
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