summaryrefslogtreecommitdiffstats
path: root/src/tab-chrome.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/tab-chrome.c')
-rw-r--r--src/tab-chrome.c17
1 files changed, 7 insertions, 10 deletions
diff --git a/src/tab-chrome.c b/src/tab-chrome.c
index a66da19..d187e70 100644
--- a/src/tab-chrome.c
+++ b/src/tab-chrome.c
@@ -35,18 +35,14 @@ navigation_toolbar_new(MqTabChrome *chrome, gchar *uri)
navigation_toolbar = GTK_TOOLBAR(gtk_toolbar_new());
/* Back button */
- gtk_toolbar_insert(navigation_toolbar,
- gtk_tool_button_new(
- gtk_image_new_from_icon_name("go-previous", 16),
- "Back"),
- -1);
+ chrome->back_button = gtk_tool_button_new(
+ gtk_image_new_from_icon_name("go-previous", 16), "Back");
+ gtk_toolbar_insert(navigation_toolbar, chrome->back_button, -1);
/* Forward button */
- gtk_toolbar_insert(navigation_toolbar,
- gtk_tool_button_new(
- gtk_image_new_from_icon_name("go-next", 16),
- "Forward"),
- -1);
+ chrome->forward_button = gtk_tool_button_new(
+ gtk_image_new_from_icon_name("go-next", 16), "Forward");
+ gtk_toolbar_insert(navigation_toolbar, chrome->forward_button, -1);
/* URI bar */
uri_toolitem = gtk_tool_item_new();
@@ -169,6 +165,7 @@ connect_web_view(MqTabChrome *chrome)
G_CALLBACK(load_progress_cb), chrome);
g_signal_connect(chrome->web_view, "notify::uri",
G_CALLBACK(uri_cb), chrome);
+ /* FIXME: Doesn't work? */
g_signal_connect(chrome->web_view, "notify::favicon",
G_CALLBACK(favicon_cb), chrome);
g_signal_connect(chrome->web_view, "notify::title",