]> Pileus Git - ~andy/gtk/commitdiff
bloatpad: Be 640x480 by default
authorColin Walters <walters@verbum.org>
Thu, 1 Dec 2011 22:53:28 +0000 (17:53 -0500)
committerRyan Lortie <desrt@desrt.ca>
Mon, 19 Dec 2011 17:51:09 +0000 (12:51 -0500)
Because otherwise we're just a few pixels, and this is the least lame
solution I know of in GTK+.

examples/bloatpad.c

index 482163ae34f26f24ff2c7d4378ae4e35df1ac685..1a2a050e685b78fe340b725ee3086598fcd26cfe 100644 (file)
@@ -46,6 +46,7 @@ new_window (GApplication *app,
   GtkWidget *window, *grid, *scrolled, *view;
 
   window = gtk_application_window_new (GTK_APPLICATION (app));
+  gtk_window_set_default_size ((GtkWindow*)window, 640, 480);
   g_action_map_add_action_entries (G_ACTION_MAP (window), win_entries, G_N_ELEMENTS (win_entries), window);
   gtk_window_set_title (GTK_WINDOW (window), "Bloatpad");