summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick McDermott <pj@pehjota.net>2017-10-07 18:55:45 (EDT)
committer Patrick McDermott <pj@pehjota.net>2017-10-07 18:55:45 (EDT)
commit3577e6498a2cc85285ab8e2137270f61718030b7 (patch)
treeedeba7549a171415fa88492b000454c40a5c9a6c
parent7c5cfad314441b669b825e2ceb3b31b221b9ae65 (diff)
downloadmarquee-3577e6498a2cc85285ab8e2137270f61718030b7.zip
marquee-3577e6498a2cc85285ab8e2137270f61718030b7.tar.gz
marquee-3577e6498a2cc85285ab8e2137270f61718030b7.tar.bz2
mq_window_quit(): New function
-rw-r--r--src/window.c6
-rw-r--r--src/window.h3
2 files changed, 9 insertions, 0 deletions
diff --git a/src/window.c b/src/window.c
index f39a5cd..463d8ad 100644
--- a/src/window.c
+++ b/src/window.c
@@ -223,6 +223,12 @@ mq_window_new(MqApplication *application, const gchar **uris)
return window;
}
+void
+mq_window_quit(MqWindow *window)
+{
+ mq_application_quit(window->application, GTK_WINDOW(window->window));
+}
+
MqApplication *
mq_window_get_application(MqWindow *window)
{
diff --git a/src/window.h b/src/window.h
index d81601d..1764b3c 100644
--- a/src/window.h
+++ b/src/window.h
@@ -41,6 +41,9 @@ struct MqWindow {
MqWindow *
mq_window_new(MqApplication *application, const gchar **uris);
+void
+mq_window_quit(MqWindow *window);
+
MqApplication *
mq_window_get_application(MqWindow *window);