From 34994d68e076ff5dc9037fe3752bf987cee3533d Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Sun, 24 Sep 2017 22:49:39 -0400 Subject: mq_window_get_application(): New function --- (limited to 'src') 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 -- cgit v0.9.1