aboutsummaryrefslogtreecommitdiffstats
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
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.
-rw-r--r--ChangeLog14
-rw-r--r--lib/ephy-state.c10
-rw-r--r--src/bookmarks/ephy-bookmarks-editor.c2
3 files changed, 20 insertions, 6 deletions
diff --git a/ChangeLog b/ChangeLog
index 2e9765230..a5c41d259 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,19 @@
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.
+
+2005-10-03 Christian Persch <chpe@cvs.gnome.org>
+
* src/ephy-window.c: (setup_ui_manager), (ephy_window_dispose),
(ephy_window_finalize):
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
diff --git a/src/bookmarks/ephy-bookmarks-editor.c b/src/bookmarks/ephy-bookmarks-editor.c
index 068e9723b..24dbeedac 100644
--- a/src/bookmarks/ephy-bookmarks-editor.c
+++ b/src/bookmarks/ephy-bookmarks-editor.c
@@ -1687,7 +1687,7 @@ ephy_bookmarks_editor_construct (EphyBookmarksEditor *editor)
"vscrollbar_policy", GTK_POLICY_AUTOMATIC,
"shadow_type", GTK_SHADOW_IN,
NULL);
- gtk_paned_pack1 (GTK_PANED (hpaned), GTK_WIDGET (scrolled_window), TRUE, TRUE);
+ gtk_paned_pack1 (GTK_PANED (hpaned), GTK_WIDGET (scrolled_window), FALSE, TRUE);
gtk_widget_show (scrolled_window);
/* Keywords View */