summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPatrick McDermott <pj@pehjota.net>2017-09-24 22:49:39 (EDT)
committer Patrick McDermott <pj@pehjota.net>2017-09-24 22:56:55 (EDT)
commit34994d68e076ff5dc9037fe3752bf987cee3533d (patch)
tree8b9a34b129e78bb980e975f00c6a4efa5db0dd60 /src
parent9376a8fc4e204ce949372bc9fd4553def4a4b8a3 (diff)
downloadmarquee-34994d68e076ff5dc9037fe3752bf987cee3533d.zip
marquee-34994d68e076ff5dc9037fe3752bf987cee3533d.tar.gz
marquee-34994d68e076ff5dc9037fe3752bf987cee3533d.tar.bz2
mq_window_get_application(): New function
Diffstat (limited to 'src')
-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 0f12a89..5e246c6 100644
--- a/src/window.c
+++ b/src/window.c
@@ -96,3 +96,9 @@ mq_window_new(MqApplication *application, gchar **uris)
return window;
}
+
+MqApplication *
+mq_window_get_application(MqWindow *window)
+{
+ return window->application;
+}
diff --git a/src/window.h b/src/window.h
index 9086d99..5ec8ee8 100644
--- a/src/window.h
+++ b/src/window.h
@@ -39,4 +39,7 @@ struct MqWindow {
MqWindow *
mq_window_new(MqApplication *application, gchar **uris);
+MqApplication *
+mq_window_get_application(MqWindow *window);
+
#endif