2008-08-25 Alejandro Pinheiro <apinheiro@igalia.com>
authorAlejandro Piñeiro <apinheiro@igalia.com>
Mon, 25 Aug 2008 16:45:37 +0000 (16:45 +0000)
committerAlejandro Piñeiro <apinheiro@igalia.com>
Mon, 25 Aug 2008 16:45:37 +0000 (16:45 +0000)
* examples/hildon-button-example.c
(vertical_buttons_window) (horizontal_buttons_window) (main): use of
hildon_stackable_window_new instead of gtk_window_new

ChangeLog
examples/hildon-button-example.c

index 1175bd2..b3ba303 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2008-08-25  Alejandro Pinheiro <apinheiro@igalia.com>
+
+       * examples/hildon-button-example.c
+       (vertical_buttons_window) (horizontal_buttons_window) (main): use of
+       hildon_stackable_window_new instead of gtk_window_new
+
 2008-08-22  Alejandro G. Castro         <alex@igalia.com>
 
        * src/hildon-pannable-area.c (hildon_pannable_area_class_init),
index 81eac92..ea9a394 100644 (file)
@@ -24,6 +24,7 @@
 
 #include                                        <gtk/gtk.h>
 #include                                        <hildon-button.h>
+#include                                        <hildon-stackable-window.h>
 
 static GtkWidget *horizontal_layout;
 static GtkWidget *images;
@@ -57,7 +58,7 @@ vertical_buttons_window                         (GtkButton *b,
     gboolean use_images;
 
     /* Create window */
-    win = gtk_window_new (GTK_WINDOW_TOPLEVEL);
+    win = hildon_stackable_window_new ();
     gtk_container_set_border_width (GTK_CONTAINER (win), 20);
 
     arrangement = gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (horizontal_layout)) ?
@@ -145,7 +146,7 @@ horizontal_buttons_window                       (GtkButton *b,
     gboolean use_images;
 
     /* Create window */
-    win = gtk_window_new (GTK_WINDOW_TOPLEVEL);
+    win = hildon_stackable_window_new ();
     gtk_container_set_border_width (GTK_CONTAINER (win), 20);
 
     arrangement = gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (horizontal_layout)) ?
@@ -253,7 +254,7 @@ main                                            (int    argc,
     vbox = GTK_BOX (gtk_vbox_new (FALSE, 10));
     hbox = GTK_BOX (gtk_hbox_new (TRUE, 10));
 
-    win = gtk_window_new (GTK_WINDOW_TOPLEVEL);
+    win = hildon_stackable_window_new ();
 
     label = gtk_label_new ("HildonButton example");
     but1 = gtk_button_new_with_label ("Buttons with different heights");