* examples/hildon-pannable-area-example.c, (main): Removed examples panning a vbox...
authorAlejandro G. Castro <alex@igalia.com>
Mon, 8 Sep 2008 11:01:10 +0000 (11:01 +0000)
committerAlejandro G. Castro <alex@igalia.com>
Mon, 8 Sep 2008 11:01:10 +0000 (11:01 +0000)
ChangeLog
examples/hildon-pannable-area-example.c

index ac3c9bb..0484237 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,10 @@
-2008-09-02  Alejandro G. Castro         <alex@igalia.com>
+2008-09-08  Alejandro G. Castro         <alex@igalia.com>
+
+       * examples/hildon-pannable-area-example.c,
+       (main): Removed examples panning a vbox inside a pannable
+       area. Check bug NB#87965
+
+2008-09-08  Alejandro G. Castro         <alex@igalia.com>
 
        Patch contributed by Kris Rietveld (kris@imendio.com)
 
index 8bad34e..9eb02cb 100644 (file)
 enum { TEXT_COLUMN, N_COLUMNS };
 
 static void
-on_button_clicked (GtkWidget *widget, gpointer data)
-{
-    g_debug ("Button %d clicked", GPOINTER_TO_INT (data));
-}
-
-
-static void
 get_sawtooth_label (gchar **label, guint num)
 {
   static gchar *sawtooth = NULL;
@@ -70,7 +63,6 @@ main (int argc, char **args)
     GtkTreeViewColumn *col;
     GtkCellRenderer *renderer;
     GtkListStore *store;
-    GtkVBox *vbox;
 
     gtk_init (&argc, &args);
 
@@ -82,20 +74,6 @@ main (int argc, char **args)
 
     gtk_container_set_border_width (GTK_CONTAINER (window), 5);
 
-    /* Create a VBox and pack some buttons */
-    vbox = GTK_VBOX (gtk_vbox_new (FALSE, 1));
-    for (i = 0; i < 30; i++) {
-            gchar *label = g_strdup_printf ("Button number %d", i);
-            GtkWidget *but = NULL;
-
-            get_sawtooth_label (&label, i);
-
-            but = gtk_button_new_with_label (label);
-            gtk_box_pack_start (GTK_BOX (vbox), but, TRUE, TRUE, 0);
-            g_signal_connect (G_OBJECT (but), "clicked", G_CALLBACK (on_button_clicked), GINT_TO_POINTER (i));
-            g_free (label);
-    }
-
     /* Create a treeview */
     tv = gtk_tree_view_new ();
     renderer = gtk_cell_renderer_text_new ();
@@ -117,12 +95,9 @@ main (int argc, char **args)
     gtk_tree_view_set_model (GTK_TREE_VIEW (tv), GTK_TREE_MODEL (store));
     g_object_unref (store);
 
-    /* Pack the treeview in the VBox */
-    gtk_box_pack_start (GTK_BOX (vbox), tv, TRUE, TRUE, 0);
-
     /* Put everything in a pannable area */
     panarea = hildon_pannable_area_new ();
-    hildon_pannable_area_add_with_viewport (HILDON_PANNABLE_AREA (panarea), GTK_WIDGET (vbox));
+    hildon_pannable_area_add_with_viewport (HILDON_PANNABLE_AREA (panarea), GTK_WIDGET (tv));
     gtk_container_add (GTK_CONTAINER (window), panarea);
 
     g_signal_connect (G_OBJECT (window), "delete_event", G_CALLBACK (gtk_main_quit), NULL);