diff options
author | Patrick McDermott <pj@pehjota.net> | 2017-11-02 14:34:40 (EDT) |
---|---|---|
committer | Patrick McDermott <pj@pehjota.net> | 2017-11-02 14:34:40 (EDT) |
commit | 72eba4dfd4477842655609e09477a8f46c99147f (patch) | |
tree | 2ff2d7500c58d6a924b0bcd5c0e0d9e4eb0c2e79 /src | |
parent | 0d8af73a88ecd33938b73356bc290438587b2ed0 (diff) | |
download | marquee-72eba4dfd4477842655609e09477a8f46c99147f.zip marquee-72eba4dfd4477842655609e09477a8f46c99147f.tar.gz marquee-72eba4dfd4477842655609e09477a8f46c99147f.tar.bz2 |
MqNavigationToolbar: Add history and downloads buttons
Diffstat (limited to 'src')
-rw-r--r-- | src/toolbars/navigation-toolbar.c | 13 |
1 files changed, 13 insertions, 0 deletions
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); |