summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPatrick McDermott <pj@pehjota.net>2017-09-17 18:29:17 (EDT)
committer Patrick McDermott <pj@pehjota.net>2017-09-17 18:29:17 (EDT)
commit644b0f4ef3828ff3d0c8ee2db4a5509cee2cdcf1 (patch)
treed7185ba978b033550e1cf6b49e9c5bfa7cd5c404 /src
parent5992a4f0da073629f70a1b6a090315ae51bc1bec (diff)
downloadmarquee-644b0f4ef3828ff3d0c8ee2db4a5509cee2cdcf1.zip
marquee-644b0f4ef3828ff3d0c8ee2db4a5509cee2cdcf1.tar.gz
marquee-644b0f4ef3828ff3d0c8ee2db4a5509cee2cdcf1.tar.bz2
src/tab-chrome.[ch]: Save back_forward_box in MqTabChrome
Diffstat (limited to 'src')
-rw-r--r--src/tab-chrome.c15
-rw-r--r--src/tab-chrome.h1
2 files changed, 8 insertions, 8 deletions
diff --git a/src/tab-chrome.c b/src/tab-chrome.c
index 241c76d..6f27cf7 100644
--- a/src/tab-chrome.c
+++ b/src/tab-chrome.c
@@ -63,13 +63,12 @@ navigation_toolbar_new(MqTabChrome *chrome, gchar *uri)
{
GtkToolbar *navigation_toolbar;
GtkToolItem *back_forward_tool_item;
- GtkWidget *back_forward_box;
GtkToolItem *uri_tool_item;
navigation_toolbar = GTK_TOOLBAR(gtk_toolbar_new());
back_forward_tool_item = gtk_tool_item_new();
- back_forward_box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 0);
+ chrome->back_forward_box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 0);
/* Back button */
chrome->back_button = gtk_button_new_from_icon_name("go-previous",
@@ -78,8 +77,8 @@ navigation_toolbar_new(MqTabChrome *chrome, gchar *uri)
"Go back one page");
g_signal_connect(chrome->back_button, "clicked",
G_CALLBACK(back_clicked_cb), chrome);
- gtk_box_pack_start(GTK_BOX(back_forward_box), chrome->back_button,
- FALSE, FALSE, 0);
+ gtk_box_pack_start(GTK_BOX(chrome->back_forward_box),
+ chrome->back_button, FALSE, FALSE, 0);
/* Forward button */
chrome->forward_button = gtk_button_new_from_icon_name("go-next",
@@ -88,13 +87,13 @@ navigation_toolbar_new(MqTabChrome *chrome, gchar *uri)
"Go forward one page");
g_signal_connect(chrome->forward_button, "clicked",
G_CALLBACK(forward_clicked_cb), chrome);
- gtk_box_pack_start(GTK_BOX(back_forward_box), chrome->forward_button,
- FALSE, FALSE, 0);
+ gtk_box_pack_start(GTK_BOX(chrome->back_forward_box),
+ chrome->forward_button, FALSE, FALSE, 0);
gtk_style_context_add_class(
- gtk_widget_get_style_context(back_forward_box), "linked");
+ gtk_widget_get_style_context(chrome->back_forward_box), "linked");
gtk_container_add(GTK_CONTAINER(back_forward_tool_item),
- back_forward_box);
+ chrome->back_forward_box);
gtk_toolbar_insert(navigation_toolbar, back_forward_tool_item, -1);
/* Stop/reload button */
diff --git a/src/tab-chrome.h b/src/tab-chrome.h
index e63ac23..ecd874f 100644
--- a/src/tab-chrome.h
+++ b/src/tab-chrome.h
@@ -30,6 +30,7 @@ typedef struct {
GtkWidget *tab_label;
guint tab_position;
GtkWidget *container;
+ GtkWidget *back_forward_box;
GtkWidget *back_button;
GtkWidget *forward_button;
GtkWidget *stop_icon;