aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2005-10-03 06:35:20 +0800
committerChristian Persch <chpe@src.gnome.org>2005-10-03 06:35:20 +0800
commita49c3e1842374ae022f2c8d203882e75d71123a9 (patch)
treefbc543903539a7177c590a3fc206c8f0fbf183ba /lib
parentbc28c27d07ae56467c45666ba6595901a99eadbe (diff)
downloadgsoc2013-epiphany-a49c3e1842374ae022f2c8d203882e75d71123a9.tar
gsoc2013-epiphany-a49c3e1842374ae022f2c8d203882e75d71123a9.tar.gz
gsoc2013-epiphany-a49c3e1842374ae022f2c8d203882e75d71123a9.tar.bz2
gsoc2013-epiphany-a49c3e1842374ae022f2c8d203882e75d71123a9.tar.lz
gsoc2013-epiphany-a49c3e1842374ae022f2c8d203882e75d71123a9.tar.xz
gsoc2013-epiphany-a49c3e1842374ae022f2c8d203882e75d71123a9.tar.zst
gsoc2013-epiphany-a49c3e1842374ae022f2c8d203882e75d71123a9.zip
Use "position" property notification instead of size-allocate to monitor
2005-10-03 Christian Persch <chpe@cvs.gnome.org> * lib/ephy-state.c: (paned_sync_position_cb), (ephy_state_add_paned): Use "position" property notification instead of size-allocate to monitor the paned's position. * src/bookmarks/ephy-bookmarks-editor.c: (ephy_bookmarks_editor_construct): Use resize=FALSE with gtk_paned_pack1. Fixes growing size of the left pane of the bookmarks editor by repeated opening.
Diffstat (limited to 'lib')
-rw-r--r--lib/ephy-state.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/ephy-state.c b/lib/ephy-state.c
index fe578b0fd..d74ca4f7f 100644
--- a/lib/ephy-state.c
+++ b/lib/ephy-state.c
@@ -398,15 +398,15 @@ ephy_state_add_window (GtkWidget *window,
}
static gboolean
-paned_size_allocate_cb (GtkWidget *paned,
- GtkAllocation *allocation,
+paned_sync_position_cb (GtkWidget *paned,
+ GParamSpec *pspec,
EphyNode *node)
{
int width;
GValue value = { 0, };
width = gtk_paned_get_position (GTK_PANED (paned));
-
+
g_value_init (&value, G_TYPE_INT);
g_value_set_int (&value, width);
ephy_node_set_property (node, EPHY_NODE_STATE_PROP_WIDTH,
@@ -450,8 +450,8 @@ ephy_state_add_paned (GtkWidget *paned,
width = ephy_node_get_property_int (node, EPHY_NODE_STATE_PROP_WIDTH);
gtk_paned_set_position (GTK_PANED (paned), width);
- g_signal_connect (paned, "size_allocate",
- G_CALLBACK (paned_size_allocate_cb), node);
+ g_signal_connect (paned, "notify::position",
+ G_CALLBACK (paned_sync_position_cb), node);
}
static void