summaryrefslogtreecommitdiffstats
path: root/src/main-window.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main-window.c')
-rw-r--r--src/main-window.c20
1 files changed, 14 insertions, 6 deletions
diff --git a/src/main-window.c b/src/main-window.c
index 4ecbf6c..ee4dd27 100644
--- a/src/main-window.c
+++ b/src/main-window.c
@@ -19,16 +19,24 @@
* along with Marquee. If not, see <http://www.gnu.org/licenses/>.
*/
+#include <stdlib.h>
+
#include <gtk/gtk.h>
#include "main-window.h"
-void
-mq_main_window_new()
+MqWindow *
+mq_main_window_new(gint __attribute__((unused)) uri_c,
+ gchar __attribute__((unused)) *uri_v[])
{
- GtkWidget *window;
+ MqWindow *window;
+
+ window = malloc(sizeof(*window));
+
+ window->gtk_window = gtk_window_new(GTK_WINDOW_TOPLEVEL);
+ g_signal_connect(window->gtk_window, "destroy",
+ G_CALLBACK(gtk_main_quit), NULL);
+ gtk_widget_show_all(window->gtk_window);
- window = gtk_window_new(GTK_WINDOW_TOPLEVEL);
- g_signal_connect(window, "destroy", G_CALLBACK(gtk_main_quit), NULL);
- gtk_widget_show_all(window);
+ return window;
}