From 72eba4dfd4477842655609e09477a8f46c99147f Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Thu, 02 Nov 2017 14:34:40 -0400 Subject: MqNavigationToolbar: Add history and downloads buttons --- (limited to 'src') diff --git a/src/toolbars/navigation-toolbar.c b/src/toolbars/navigation-toolbar.c index 05090eb..705046c 100644 --- a/src/toolbars/navigation-toolbar.c +++ b/src/toolbars/navigation-toolbar.c @@ -30,6 +30,8 @@ #include "../web-view.h" #include "find-toolbar.h" #include "navigation/back-forward-button-box.h" +#include "navigation/downloads-button.h" +#include "navigation/history-button.h" #include "navigation/home-button.h" #include "navigation/main-menu.h" #include "navigation/stop-reload-button.h" @@ -69,6 +71,8 @@ constructed(GObject *object) GtkToolItem *stop_reload_button; GtkToolItem *uri_entry; GtkToolItem *home_button; + GtkToolItem *history_button; + GtkToolItem *downloads_button; GtkToolItem *menu_button; if (G_OBJECT_CLASS(mq_navigation_toolbar_parent_class)->constructed) { @@ -94,6 +98,12 @@ constructed(GObject *object) home_button = mq_home_button_new(navigation_toolbar->config, navigation_toolbar->web_view); + /* History button */ + history_button = mq_history_button_new(); + + /* Downloads button */ + downloads_button = mq_downloads_button_new(); + /* Menu button */ menu_button = mq_main_menu_new(navigation_toolbar->tab_page, navigation_toolbar->find_toolbar, navigation_toolbar->web_view); @@ -105,6 +115,9 @@ constructed(GObject *object) stop_reload_button, -1); gtk_toolbar_insert(GTK_TOOLBAR(navigation_toolbar), uri_entry, -1); gtk_toolbar_insert(GTK_TOOLBAR(navigation_toolbar), home_button, -1); + gtk_toolbar_insert(GTK_TOOLBAR(navigation_toolbar), history_button, -1); + gtk_toolbar_insert(GTK_TOOLBAR(navigation_toolbar), + downloads_button, -1); gtk_toolbar_insert(GTK_TOOLBAR(navigation_toolbar), menu_button, -1); gtk_widget_set_hexpand(GTK_WIDGET(navigation_toolbar), TRUE); -- cgit v0.9.1