[gnome-games] aisleriot: Make the prop-editor a stackable window on maemo5



commit 6d9349c61ba66b25b8ab7da15581c2bdfb8b55aa
Author: Christian Persch <chpe gnome org>
Date:   Thu Jan 21 14:28:22 2010 +0100

    aisleriot: Make the prop-editor a stackable window on maemo5

 aisleriot/prop-editor.c |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)
---
diff --git a/aisleriot/prop-editor.c b/aisleriot/prop-editor.c
index 0051824..0b14c9b 100644
--- a/aisleriot/prop-editor.c
+++ b/aisleriot/prop-editor.c
@@ -28,6 +28,12 @@
 #include <clutter/clutter.h>
 #endif
 
+#ifdef HAVE_MAEMO_5
+#include <hildon/hildon-gtk.h>
+#include <hildon/hildon-pannable-area.h>
+#include <hildon/hildon-stackable-window.h>
+#endif
+
 typedef struct
 {
   gpointer instance;
@@ -1360,7 +1366,12 @@ create_prop_editor (GObject   *object,
       return win;
     }
 
+#ifdef HAVE_MAEMO_5
+  win = hildon_stackable_window_new ();
+#else
   win = gtk_window_new (GTK_WINDOW_TOPLEVEL);
+#endif
+
   if (GTK_IS_WIDGET (object))
     gtk_window_set_screen (GTK_WINDOW (win),
 			   gtk_widget_get_screen (GTK_WIDGET (object)));



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