[Epiphany] [patch] use hpane in bme



Path to use a hpane instead of an hbox in bme window. I like this as it 
gives the user a little bit more flexibility, without any ui overhead. 
Idealy we would save the position of the splitter, but i'm too lazy to 
try to implement that right now.

ok to commit?

dave
Index: src/bookmarks/ephy-bookmarks-editor.c
===================================================================
RCS file: /cvs/gnome/epiphany/src/bookmarks/ephy-bookmarks-editor.c,v
retrieving revision 1.29
diff -u -p -r1.29 ephy-bookmarks-editor.c
--- src/bookmarks/ephy-bookmarks-editor.c	24 Mar 2003 20:56:19 -0000	1.29
+++ src/bookmarks/ephy-bookmarks-editor.c	25 Mar 2003 00:15:14 -0000
@@ -20,7 +20,7 @@
 #include <gtk/gtktable.h>
 #include <gtk/gtklabel.h>
 #include <gtk/gtkstock.h>
-#include <gtk/gtkhbox.h>
+#include <gtk/gtkhpaned.h>
 #include <gtk/gtkvbox.h>
 #include <gdk/gdkkeysyms.h>
 #include <libgnome/gnome-i18n.h>
@@ -560,7 +560,7 @@ delete_event_cb (EphyBookmarksEditor *ed
 static void
 ephy_bookmarks_editor_construct (EphyBookmarksEditor *editor)
 {
-	GtkWidget *hbox, *vbox;
+	GtkWidget *hpane, *vbox;
 	EphyNodeView *bm_view, *key_view;
 	EphyNode *node;
 	long selected_id;
@@ -607,10 +607,10 @@ ephy_bookmarks_editor_construct (EphyBoo
 	editor->priv->ui_merge = ui_merge;
 	editor->priv->action_group = action_group;
 
-	hbox = gtk_hbox_new (FALSE, 6);
-	gtk_container_set_border_width (GTK_CONTAINER (hbox), 6);
-	gtk_container_add (GTK_CONTAINER (editor->priv->menu_dock), hbox);
-	gtk_widget_show (hbox);
+	hpane = gtk_hpaned_new ();
+	gtk_container_set_border_width (GTK_CONTAINER (hpane), 6);
+	gtk_container_add (GTK_CONTAINER (editor->priv->menu_dock), hpane);
+	gtk_widget_show (hpane);
 
 	g_assert (editor->priv->bookmarks);
 
@@ -622,7 +622,7 @@ ephy_bookmarks_editor_construct (EphyBoo
 	ephy_node_view_set_browse_mode (key_view);
 	ephy_node_view_add_column (key_view, _("Topics"),
 			           EPHY_TREE_MODEL_NODE_COL_KEYWORD, TRUE, TRUE);
-	gtk_box_pack_start (GTK_BOX (hbox), GTK_WIDGET (key_view), FALSE, TRUE, 0);
+	gtk_paned_pack1 (GTK_PANED (hpane), GTK_WIDGET (key_view), TRUE, TRUE);
 	gtk_widget_set_size_request (GTK_WIDGET (key_view), 130, -1);
 	gtk_widget_show (GTK_WIDGET (key_view));
 	editor->priv->key_view = key_view;
@@ -632,8 +632,7 @@ ephy_bookmarks_editor_construct (EphyBoo
 			  editor);
 
 	vbox = gtk_vbox_new (FALSE, 6);
-	gtk_box_pack_start (GTK_BOX (hbox),
-			    vbox, TRUE, TRUE, 0);
+	gtk_paned_pack2(GTK_PANED (hpane), vbox, TRUE, TRUE);
 	gtk_widget_show (vbox);
 
 	gtk_box_pack_start (GTK_BOX (vbox),


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]