[goobox] make the window a GtkApplicationWindow



commit 5c21045c8a42e9e76cae8184b3b7324e7516e990
Author: Paolo Bacchilega <paobac src gnome org>
Date:   Sat Jun 2 21:40:18 2012 +0200

    make the window a GtkApplicationWindow

 src/goo-window.c |    4 +++-
 src/gth-window.c |    2 +-
 src/gth-window.h |    4 ++--
 3 files changed, 6 insertions(+), 4 deletions(-)
---
diff --git a/src/goo-window.c b/src/goo-window.c
index e3110a6..91766b9 100644
--- a/src/goo-window.c
+++ b/src/goo-window.c
@@ -2630,7 +2630,9 @@ goo_window_new (BraseroDrive *drive)
 
 	g_return_val_if_fail (drive != NULL, NULL);
 
-	window = (GooWindow*) g_object_new (GOO_TYPE_WINDOW, NULL);
+	window = (GooWindow*) g_object_new (GOO_TYPE_WINDOW,
+					    "application", g_application_get_default (),
+					    NULL);
 	goo_window_construct (window, drive);
 
 	return (GtkWidget *) window;
diff --git a/src/gth-window.c b/src/gth-window.c
index 09ba410..d346d0f 100644
--- a/src/gth-window.c
+++ b/src/gth-window.c
@@ -221,7 +221,7 @@ gth_window_get_type (void)
 			(GInstanceInitFunc) gth_window_init
 		};
 
-		type = g_type_register_static (GTK_TYPE_WINDOW,
+		type = g_type_register_static (GTK_TYPE_APPLICATION_WINDOW,
 					       "GthWindow",
 					       &type_info,
 					       0);
diff --git a/src/gth-window.h b/src/gth-window.h
index 24b3839..ef4384f 100644
--- a/src/gth-window.h
+++ b/src/gth-window.h
@@ -46,13 +46,13 @@ typedef struct _GthWindowPrivate GthWindowPrivate;
 
 struct _GthWindow
 {
-	GtkWindow __parent;
+	GtkApplicationWindow __parent;
 	GthWindowPrivate *priv;
 };
 
 struct _GthWindowClass
 {
-	GtkWindowClass __parent_class;
+	GtkApplicationWindowClass __parent_class;
 
 	/*< virtual functions >*/
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]