diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/application.c | 2 | ||||
-rw-r--r-- | src/window.c | 3 | ||||
-rw-r--r-- | src/window.h | 4 |
3 files changed, 6 insertions, 3 deletions
diff --git a/src/application.c b/src/application.c index 1727ad3..f836ec1 100644 --- a/src/application.c +++ b/src/application.c @@ -55,7 +55,7 @@ mq_application_add_window(MqApplication *application, gchar **uris) { MqWindow *window; - window = mq_window_new(uris); + window = mq_window_new(application, uris); ++application->window_count; diff --git a/src/window.c b/src/window.c index cd61118..d2cf6cb 100644 --- a/src/window.c +++ b/src/window.c @@ -24,6 +24,7 @@ #include <gtk/gtk.h> #include "window.h" +#include "application.h" #include "tab.h" static void @@ -59,7 +60,7 @@ update_positions(GtkNotebook __attribute__((unused)) *notebook, } MqWindow * -mq_window_new(gchar **uris) +mq_window_new(MqApplication *application, gchar **uris) { MqWindow *window; guint i; diff --git a/src/window.h b/src/window.h index 8e243bb..8651355 100644 --- a/src/window.h +++ b/src/window.h @@ -24,12 +24,14 @@ #include <gtk/gtk.h> +#include "application.h" + typedef struct { GtkWidget *window; GtkWidget *notebook; } MqWindow; MqWindow * -mq_window_new(gchar **uris); +mq_window_new(MqApplication *application, gchar **uris); #endif |