[gtk/wip/otte/whatever] gtk-demo: Cosmetic fixes for the words demo
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/otte/whatever] gtk-demo: Cosmetic fixes for the words demo
- Date: Tue, 30 Jun 2020 14:51:49 +0000 (UTC)
commit ee1d8b324705d84b9fd0a8eaa3558b6010f07b8b
Author: Matthias Clasen <mclasen redhat com>
Date: Tue Jun 30 07:51:59 2020 -0400
gtk-demo: Cosmetic fixes for the words demo
Set a window size, and don't put newlines in titles.
demos/gtk-demo/listview_words.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/demos/gtk-demo/listview_words.c b/demos/gtk-demo/listview_words.c
index c8aab2360d..4f5cd95278 100644
--- a/demos/gtk-demo/listview_words.c
+++ b/demos/gtk-demo/listview_words.c
@@ -40,7 +40,7 @@ update_title_cb (GtkFilterListModel *model)
(total - pending) * 100 / total);
}
else
- title = g_strdup_printf ("%u Words\n", g_list_model_get_n_items (G_LIST_MODEL (model)));
+ title = g_strdup_printf ("%u Words", g_list_model_get_n_items (G_LIST_MODEL (model)));
gtk_window_set_title (GTK_WINDOW (window), title);
g_free (title);
}
@@ -82,6 +82,7 @@ do_listview_words (GtkWidget *do_widget)
header = gtk_header_bar_new ();
gtk_header_bar_set_show_title_buttons (GTK_HEADER_BAR (header), TRUE);
gtk_window_set_titlebar (GTK_WINDOW (window), header);
+ gtk_window_set_default_size (GTK_WINDOW (window), 400, 600);
gtk_window_set_display (GTK_WINDOW (window),
gtk_widget_get_display (do_widget));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]