[evince/gnome3-style: 12/14] Show the find bar at the top of the view box



commit f1fe39f1ff0f9e303200fd01b012ed89be6d107b
Author: Carlos Garcia Campos <carlosgc gnome org>
Date:   Sun Oct 14 16:10:16 2012 +0200

    Show the find bar at the top of the view box
    
    Also use the PRIMARY_TOOLBAR style class for the find bar so that it
    looks like the nautilus one.

 shell/ev-window.c |   14 ++++++++------
 1 files changed, 8 insertions(+), 6 deletions(-)
---
diff --git a/shell/ev-window.c b/shell/ev-window.c
index 44538c4..f10d64e 100644
--- a/shell/ev-window.c
+++ b/shell/ev-window.c
@@ -7312,6 +7312,14 @@ ev_window_init (EvWindow *ev_window)
 
 	ev_window->priv->view_box = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
 
+	/* Find Bar */
+	ev_window->priv->find_bar = egg_find_bar_new ();
+	gtk_style_context_add_class (gtk_widget_get_style_context (ev_window->priv->find_bar),
+				     GTK_STYLE_CLASS_PRIMARY_TOOLBAR);
+	gtk_box_pack_start (GTK_BOX (ev_window->priv->view_box),
+			    ev_window->priv->find_bar,
+			    FALSE, TRUE, 0);
+
 	overlay = gtk_overlay_new ();
 	ev_window->priv->scrolled_window =
 		GTK_WIDGET (g_object_new (GTK_TYPE_SCROLLED_WINDOW,
@@ -7380,12 +7388,6 @@ ev_window_init (EvWindow *ev_window)
 	gtk_widget_show (ev_window->priv->view);
 	gtk_widget_show (ev_window->priv->password_view);
 
-	/* Find Bar */
-	ev_window->priv->find_bar = egg_find_bar_new ();
-	gtk_box_pack_end (GTK_BOX (ev_window->priv->main_box),
-			  ev_window->priv->find_bar,
-			  FALSE, TRUE, 0);
-
 	/* We own a ref on these widgets, as we can swap them in and out */
 	g_object_ref (ev_window->priv->view);
 	g_object_ref (ev_window->priv->password_view);



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