summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPatrick McDermott <pj@pehjota.net>2017-09-24 22:48:31 (EDT)
committer Patrick McDermott <pj@pehjota.net>2017-09-24 22:48:31 (EDT)
commit9376a8fc4e204ce949372bc9fd4553def4a4b8a3 (patch)
tree2200172ebfe5401ba0f5f348c9cd7f092c4ba7ce /src
parent904e28e0fc0906fc010fb11eac36fad3f78ca11a (diff)
downloadmarquee-9376a8fc4e204ce949372bc9fd4553def4a4b8a3.zip
marquee-9376a8fc4e204ce949372bc9fd4553def4a4b8a3.tar.gz
marquee-9376a8fc4e204ce949372bc9fd4553def4a4b8a3.tar.bz2
MqWindow: Save MqApplication in struct
Diffstat (limited to 'src')
-rw-r--r--src/window.c1
-rw-r--r--src/window.h7
2 files changed, 5 insertions, 3 deletions
diff --git a/src/window.c b/src/window.c
index 9b43f9c..0f12a89 100644
--- a/src/window.c
+++ b/src/window.c
@@ -66,6 +66,7 @@ mq_window_new(MqApplication *application, gchar **uris)
guint i;
window = malloc(sizeof(*window));
+ window->application = application;
window->window = gtk_window_new(GTK_WINDOW_TOPLEVEL);
gtk_window_set_default_size(GTK_WINDOW(window->window), 1024, 768);
diff --git a/src/window.h b/src/window.h
index 8dec9af..9086d99 100644
--- a/src/window.h
+++ b/src/window.h
@@ -30,9 +30,10 @@ typedef struct MqWindow MqWindow;
#include "tab.h"
struct MqWindow {
- GtkWidget *window;
- GtkWidget *notebook;
- MqTab *root_tab;
+ MqApplication *application;
+ GtkWidget *window;
+ GtkWidget *notebook;
+ MqTab *root_tab;
};
MqWindow *