summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick McDermott <pj@pehjota.net>2017-10-06 04:55:17 (EDT)
committer Patrick McDermott <pj@pehjota.net>2017-10-06 04:55:17 (EDT)
commitd153401dfb0298cdcc62a9a84914f49950f4d6ce (patch)
tree1332fb3eaaf0b22dd8bab7609634e589619e0180
parentdd7765bf2afb30abc9100ad21cfe2deed79fce48 (diff)
downloadmarquee-d153401dfb0298cdcc62a9a84914f49950f4d6ce.zip
marquee-d153401dfb0298cdcc62a9a84914f49950f4d6ce.tar.gz
marquee-d153401dfb0298cdcc62a9a84914f49950f4d6ce.tar.bz2
MqTabChrome: Make preferences button functional
-rw-r--r--src/tab-chrome.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/tab-chrome.c b/src/tab-chrome.c
index 5c36ffb..b298c2c 100644
--- a/src/tab-chrome.c
+++ b/src/tab-chrome.c
@@ -337,6 +337,16 @@ zoom_in_clicked_cb(GtkButton __attribute__((unused)) *button,
}
static void
+preferences_clicked_cb(GtkButton __attribute__((unused)) *button,
+ MqTabChrome *chrome)
+{
+ mq_tab_new("about:preferences", chrome->tab);
+ gtk_widget_hide(chrome->menu_popover);
+ /* TODO: Hack: */
+ gtk_notebook_next_page(GTK_NOTEBOOK(chrome->tab->window->notebook));
+}
+
+static void
about_clicked_cb(GtkButton __attribute__((unused)) *button, MqTabChrome *chrome)
{
mq_tab_new("about:", chrome->tab);
@@ -400,6 +410,7 @@ menu_button_clicked_cb(GtkToolButton *tool_button,
CLICKED_CB(0, 0, zoom_out_clicked_cb);
CLICKED_CB(0, 1, zoom_reset_clicked_cb);
CLICKED_CB(0, 2, zoom_in_clicked_cb);
+ CLICKED_CB(4, 2, preferences_clicked_cb);
CLICKED_CB(5, 0, about_clicked_cb);
CLICKED_CB(5, 2, quit_clicked_cb);