diff options
author | Patrick McDermott <pj@pehjota.net> | 2017-10-07 19:01:41 (EDT) |
---|---|---|
committer | Patrick McDermott <pj@pehjota.net> | 2017-10-07 19:01:41 (EDT) |
commit | 59583726adaab9559c6cc58b42f5b054bb9b4fdd (patch) | |
tree | d15bf6260d9409afd0ec92dd3be5b6b6938f2614 | |
parent | 34005ae3b5f08910fbfdf4a51b95f6381526cab1 (diff) | |
download | marquee-59583726adaab9559c6cc58b42f5b054bb9b4fdd.zip marquee-59583726adaab9559c6cc58b42f5b054bb9b4fdd.tar.gz marquee-59583726adaab9559c6cc58b42f5b054bb9b4fdd.tar.bz2 |
MqTabChrome: Call mq_tab_quit() on quit button click
-rw-r--r-- | src/tab-chrome.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/tab-chrome.c b/src/tab-chrome.c index 9dd376a..b101b16 100644 --- a/src/tab-chrome.c +++ b/src/tab-chrome.c @@ -359,12 +359,12 @@ about_clicked_cb(GtkButton G_GNUC_UNUSED *button, MqTabChrome *chrome) } static void -quit_clicked_cb(GtkButton G_GNUC_UNUSED *button, - MqTabChrome G_GNUC_UNUSED *chrome) +quit_clicked_cb(GtkButton G_GNUC_UNUSED *button, MqTabChrome *chrome) { - /* TODO: Make a function mq_application_quit() that shows a confirmation - * dialog. */ - gtk_main_quit(); + mq_tab_quit(chrome->tab); + /* mq_tab_quit() just calls mq_window_quit(), which just calls + * mq_application_quit(), which is asynchronous. So close the menu. */ + gtk_widget_hide(chrome->menu_popover); } #define BUTTON_ROWS 6 |