From eb560f7e15c460552db3a48a1d306d64e1fa36de Mon Sep 17 00:00:00 2001 From: ettore Date: Sat, 6 Feb 1999 22:43:17 +0000 Subject: [PATCH] Simple patch to make the location bar occupy all the available horizontal space. --- gnome/ChangeLog | 6 ++++++ gnome/gscreen.c | 24 ++++++++++-------------- 2 files changed, 16 insertions(+), 14 deletions(-) diff --git a/gnome/ChangeLog b/gnome/ChangeLog index 03aefb4aa..52b1f5aeb 100644 --- a/gnome/ChangeLog +++ b/gnome/ChangeLog @@ -1,3 +1,9 @@ +1999-02-06 Ettore Perazzoli + + * gscreen.c (x_create_panel): The location bar is now a simple + GtkHBox instead of a GtkToolbar, and as a consequence the location + entry widget is expanded to fill all of the window horizontally. + 1999-02-05 Federico Mena Quintero * gdesktop.c (drag_data_get): Set the Netscape URL from the icon diff --git a/gnome/gscreen.c b/gnome/gscreen.c index 82a41e2e6..206ee8b33 100644 --- a/gnome/gscreen.c +++ b/gnome/gscreen.c @@ -2424,21 +2424,17 @@ x_create_panel (Dlg_head *h, widget_data parent, WPanel *panel) else if (panel->list_type == list_user) gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (viewbar[3].widget), TRUE); - /* - * Here we make the view buttons. - */ - status_line = gtk_toolbar_new (GTK_ORIENTATION_HORIZONTAL, GTK_TOOLBAR_BOTH); + status_line = gtk_hbox_new (FALSE, 2); gtk_container_set_border_width (GTK_CONTAINER (status_line), 3); - evbox = gtk_event_box_new (); - hbox = gtk_hbox_new (FALSE, 2); - gtk_container_add (GTK_CONTAINER (evbox), hbox); - gtk_toolbar_append_widget (GTK_TOOLBAR (status_line), - evbox, - NULL, NULL); - gtk_box_pack_start (GTK_BOX (hbox), gtk_label_new (_("Location:")), FALSE, FALSE, 0); - gtk_box_pack_start (GTK_BOX (hbox), cwd, TRUE, TRUE, 0); - dock = gnome_dock_item_new ("gmc-toolbar1", GNOME_DOCK_ITEM_BEH_EXCLUSIVE | GNOME_DOCK_ITEM_BEH_NEVER_VERTICAL); - gtk_container_add (GTK_CONTAINER(dock),status_line); + gtk_box_pack_start (GTK_BOX (status_line), + gtk_label_new (_("Location:")), FALSE, FALSE, 0); + gtk_box_pack_start (GTK_BOX (status_line), + cwd, TRUE, TRUE, 0); + + dock = gnome_dock_item_new ("gmc-toolbar1", + (GNOME_DOCK_ITEM_BEH_EXCLUSIVE + | GNOME_DOCK_ITEM_BEH_NEVER_VERTICAL)); + gtk_container_add (GTK_CONTAINER(dock), status_line); gnome_dock_add_item (GNOME_DOCK(GNOME_APP (panel->xwindow)->dock), GNOME_DOCK_ITEM (dock), GNOME_DOCK_TOP, 1, 0, 0, FALSE);