diff options
author | Christian Persch <chpe@cvs.gnome.org> | 2005-10-03 06:35:20 +0800 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2005-10-03 06:35:20 +0800 |
commit | a49c3e1842374ae022f2c8d203882e75d71123a9 (patch) | |
tree | fbc543903539a7177c590a3fc206c8f0fbf183ba | |
parent | bc28c27d07ae56467c45666ba6595901a99eadbe (diff) | |
download | gsoc2013-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-- | ChangeLog | 14 | ||||
-rw-r--r-- | lib/ephy-state.c | 10 | ||||
-rw-r--r-- | src/bookmarks/ephy-bookmarks-editor.c | 2 |
3 files changed, 20 insertions, 6 deletions
@@ -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 */ |