diff options
author | Patrick McDermott <pj@pehjota.net> | 2017-09-17 04:18:43 (EDT) |
---|---|---|
committer | Patrick McDermott <pj@pehjota.net> | 2017-09-17 04:18:43 (EDT) |
commit | 4d2d7f7bbd13c6103f52ce8b02e5709462dae988 (patch) | |
tree | cdf8f1d7653d6482810f74cf7b6ee84d6d44a40b /src | |
parent | 1200e32c6f27a137b0dca8a6c8d62d743193a1e8 (diff) | |
download | marquee-4d2d7f7bbd13c6103f52ce8b02e5709462dae988.zip marquee-4d2d7f7bbd13c6103f52ce8b02e5709462dae988.tar.gz marquee-4d2d7f7bbd13c6103f52ce8b02e5709462dae988.tar.bz2 |
src/tab-chrome.[ch]: Save stop/reload icons
Diffstat (limited to 'src')
-rw-r--r-- | src/tab-chrome.c | 9 | ||||
-rw-r--r-- | src/tab-chrome.h | 2 |
2 files changed, 8 insertions, 3 deletions
diff --git a/src/tab-chrome.c b/src/tab-chrome.c index b1477de..bf39726 100644 --- a/src/tab-chrome.c +++ b/src/tab-chrome.c @@ -83,9 +83,12 @@ navigation_toolbar_new(MqTabChrome *chrome, gchar *uri) gtk_toolbar_insert(navigation_toolbar, chrome->forward_button, -1); /* Stop/reload button */ - chrome->stop_reload_button = gtk_tool_button_new( - gtk_image_new_from_icon_name("process-stop", - GTK_ICON_SIZE_SMALL_TOOLBAR), "Stop"); + chrome->stop_icon = gtk_image_new_from_icon_name("process-stop", + GTK_ICON_SIZE_SMALL_TOOLBAR); + chrome->reload_icon = gtk_image_new_from_icon_name("view-refresh", + GTK_ICON_SIZE_SMALL_TOOLBAR); + chrome->stop_reload_button = gtk_tool_button_new(chrome->stop_icon, + "Stop"); 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); diff --git a/src/tab-chrome.h b/src/tab-chrome.h index 3785a95..90182ef 100644 --- a/src/tab-chrome.h +++ b/src/tab-chrome.h @@ -32,6 +32,8 @@ typedef struct { GtkWidget *container; GtkToolItem *back_button; GtkToolItem *forward_button; + GtkWidget *stop_icon; + GtkWidget *reload_icon; GtkToolItem *stop_reload_button; GtkWidget *uri_entry; WebKitWebView *web_view; |