[evince] ev-toolbar: Use a custom button for find action too



commit 918caaea732b5a7d7a04b7fe8bb1af90d73238b9
Author: Carlos Garcia Campos <carlosgc gnome org>
Date:   Sun Nov 18 11:26:27 2012 +0100

    ev-toolbar: Use a custom button for find action too
    
    Use ev_toolbar_create_toggle_button() instead of creating the tool item
    directly with gtk_action_create_tool_item().

 shell/ev-toolbar.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/shell/ev-toolbar.c b/shell/ev-toolbar.c
index dedc0cb..80b1880 100644
--- a/shell/ev-toolbar.c
+++ b/shell/ev-toolbar.c
@@ -218,7 +218,10 @@ ev_toolbar_constructed (GObject *object)
 
         /* Find */
         action = gtk_action_group_get_action (action_group, "EditFind");
-        tool_item = gtk_action_create_tool_item (action);
+        button = ev_toolbar_create_toggle_button (ev_toolbar, action);
+        tool_item = GTK_WIDGET (gtk_tool_item_new ());
+        gtk_container_add (GTK_CONTAINER (tool_item), button);
+        gtk_widget_show (button);
         gtk_widget_set_margin_right (tool_item, 12);
         gtk_container_add (GTK_CONTAINER (ev_toolbar), tool_item);
         gtk_widget_show (tool_item);



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