summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPatrick McDermott <pj@pehjota.net>2017-09-17 05:32:34 (EDT)
committer Patrick McDermott <pj@pehjota.net>2017-09-17 05:32:34 (EDT)
commit8437cd78866ed171d9ba50b592b14df5ba7dc6e1 (patch)
treee5dd9b14a67b4550756e1a8b51e77e7f85fff8fb /src
parentf7a961359af3f881bb5c18d1b4e73467cec103ed (diff)
downloadmarquee-8437cd78866ed171d9ba50b592b14df5ba7dc6e1.zip
marquee-8437cd78866ed171d9ba50b592b14df5ba7dc6e1.tar.gz
marquee-8437cd78866ed171d9ba50b592b14df5ba7dc6e1.tar.bz2
src/tab-chrome.c: Add tooltips
Diffstat (limited to 'src')
-rw-r--r--src/tab-chrome.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/tab-chrome.c b/src/tab-chrome.c
index d99f8bf..ea168dd 100644
--- a/src/tab-chrome.c
+++ b/src/tab-chrome.c
@@ -70,6 +70,8 @@ navigation_toolbar_new(MqTabChrome *chrome, gchar *uri)
chrome->back_button = gtk_tool_button_new(
gtk_image_new_from_icon_name("go-previous",
GTK_ICON_SIZE_SMALL_TOOLBAR), "Back");
+ gtk_widget_set_tooltip_text(GTK_WIDGET(chrome->back_button),
+ "Go back one page");
g_signal_connect(chrome->back_button, "clicked",
G_CALLBACK(back_clicked_cb), chrome);
gtk_toolbar_insert(navigation_toolbar, chrome->back_button, -1);
@@ -78,6 +80,8 @@ navigation_toolbar_new(MqTabChrome *chrome, gchar *uri)
chrome->forward_button = gtk_tool_button_new(
gtk_image_new_from_icon_name("go-next",
GTK_ICON_SIZE_SMALL_TOOLBAR), "Forward");
+ gtk_widget_set_tooltip_text(GTK_WIDGET(chrome->forward_button),
+ "Go forward one page");
g_signal_connect(chrome->forward_button, "clicked",
G_CALLBACK(forward_clicked_cb), chrome);
gtk_toolbar_insert(navigation_toolbar, chrome->forward_button, -1);
@@ -91,6 +95,8 @@ navigation_toolbar_new(MqTabChrome *chrome, gchar *uri)
g_object_ref_sink(chrome->reload_icon);
chrome->stop_reload_button = gtk_tool_button_new(chrome->stop_icon,
"Stop");
+ gtk_widget_set_tooltip_text(GTK_WIDGET(chrome->stop_reload_button),
+ "Stop loading the current page");
g_signal_connect(chrome->stop_reload_button, "clicked",
G_CALLBACK(stop_reload_clicked_cb), chrome);
gtk_toolbar_insert(navigation_toolbar, chrome->stop_reload_button, -1);
@@ -247,12 +253,18 @@ loading_cb(WebKitWebView *web_view,
chrome->stop_icon);
gtk_tool_button_set_label(
GTK_TOOL_BUTTON(chrome->stop_reload_button), "Stop");
+ gtk_widget_set_tooltip_text(
+ GTK_WIDGET(chrome->stop_reload_button),
+ "Stop loading the current page");
} else {
gtk_tool_button_set_icon_widget(
GTK_TOOL_BUTTON(chrome->stop_reload_button),
chrome->reload_icon);
gtk_tool_button_set_label(
GTK_TOOL_BUTTON(chrome->stop_reload_button), "Reload");
+ gtk_widget_set_tooltip_text(
+ GTK_WIDGET(chrome->stop_reload_button),
+ "Reload the current page");
}
gtk_widget_show_all(GTK_WIDGET(chrome->stop_reload_button));
}