[evince/wip/recent-view: 2/4] ev-toolbar-main: Add recent view show toolbar button
- From: Germán Poó Caamaño <gpoo src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evince/wip/recent-view: 2/4] ev-toolbar-main: Add recent view show toolbar button
- Date: Sat, 10 May 2014 19:23:51 +0000 (UTC)
commit 9f5801bd6a44ea7d61b97293e8ebce184b18eda6
Author: Germán Poo-Caamaño <gpoo gnome org>
Date: Tue May 6 16:31:21 2014 -0700
ev-toolbar-main: Add recent view show toolbar button
shell/ev-toolbar-main.c | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/shell/ev-toolbar-main.c b/shell/ev-toolbar-main.c
index 7e95729..d3d1982 100644
--- a/shell/ev-toolbar-main.c
+++ b/shell/ev-toolbar-main.c
@@ -89,6 +89,16 @@ ev_toolbar_main_constructed (GObject *object)
action_group = ev_window_get_main_action_group (ev_toolbar->priv->window);
ui_manager = ev_window_get_ui_manager (ev_toolbar->priv->window);
+ /* View of recent items */
+ action = gtk_action_group_get_action (action_group, "RecentViewShow");
+ button = ev_toolbar_create_button (EV_TOOLBAR (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);
+
/* Navigation */
hbox = ev_toolbar_create_button_group (EV_TOOLBAR (ev_toolbar));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]