summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPatrick McDermott <pj@pehjota.net>2017-09-22 17:08:59 (EDT)
committer Patrick McDermott <pj@pehjota.net>2017-09-22 17:08:59 (EDT)
commit2c5ca98496d22c004042c525a82e18cee13434f6 (patch)
treeeeb8decc289c0297b0c3df0cd104c4fcd88ec3b6 /src
parente6860d2d9829e8f6bce34b797f82bcf5d8e5ddc0 (diff)
downloadmarquee-2c5ca98496d22c004042c525a82e18cee13434f6.zip
marquee-2c5ca98496d22c004042c525a82e18cee13434f6.tar.gz
marquee-2c5ca98496d22c004042c525a82e18cee13434f6.tar.bz2
MqTab: Make "Reload tab" button functional
Diffstat (limited to 'src')
-rw-r--r--src/tab.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/tab.c b/src/tab.c
index d7658c8..5af5315 100644
--- a/src/tab.c
+++ b/src/tab.c
@@ -28,6 +28,13 @@
#include "tab-body.h"
static void
+reload_tab_clicked_cb(GtkWidget __attribute__((unused)) *button, MqTab *tab)
+{
+ webkit_web_view_reload(tab->web_view);
+ gtk_widget_hide(tab->popover);
+}
+
+static void
new_window_clicked_cb(GtkWidget __attribute__((unused)) *button, MqTab *tab)
{
mq_application_add_window(tab->application, NULL);
@@ -99,6 +106,7 @@ tab_label_button_press_cb(GtkWidget *widget, GdkEvent *event, MqTab *tab)
NEW_BUTTON(1, 2, "edit-undo", "Undo close tab");
NEW_TOGGLE(1, 3, "view-list-symbolic", "Tab list...");
+ CLICKED_CB(0, 0, G_CALLBACK(reload_tab_clicked_cb));
CLICKED_CB(1, 1, G_CALLBACK(new_window_clicked_cb));
/* Set up the tab list. */