[gtk/prop-list: 52/57] gtk-demo: Cosmetic changes for the weather demo



commit ceb248872e88a92abe6f2d2192663764a3d1012a
Author: Matthias Clasen <mclasen redhat com>
Date:   Sat Dec 14 11:54:56 2019 -0500

    gtk-demo: Cosmetic changes for the weather demo
    
    Give the weather demo a size and a title, and mention
    the size of the dataset in the description.

 demos/gtk-demo/listview_weather.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/demos/gtk-demo/listview_weather.c b/demos/gtk-demo/listview_weather.c
index 8a2afc9d4e..20f8f3ffea 100644
--- a/demos/gtk-demo/listview_weather.c
+++ b/demos/gtk-demo/listview_weather.c
@@ -5,12 +5,13 @@
  *
  * The hourly weather info uses a horizontal listview. This is easy
  * to achieve because GtkListView implements the GtkOrientable interface.
- *
  * To make the items in the list stand out more, the listview uses
  * separators.
  *
  * A GtkNoSelectionModel is used to make sure no item in the list can be
  * selected. All other interactions with the items is still possible.
+ *
+ * The dataset used here has 70000 items.
  */
 
 #include <gtk/gtk.h>
@@ -283,6 +284,8 @@ do_listview_weather (GtkWidget *do_widget)
       GListModel *model, *selection;
 
       window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
+      gtk_window_set_default_size (GTK_WINDOW (window), 600, 400);
+      gtk_window_set_title (GTK_WINDOW (window), "Weather");
       gtk_window_set_display (GTK_WINDOW (window),
                               gtk_widget_get_display (do_widget));
       gtk_window_set_title (GTK_WINDOW (window), "Weather");


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