blob: a26ba91f5ec06ecc4271a650200a4edbe944eb04 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
--- src/tilda_window.c 2008-01-17 23:07:39.000000000 +0100
+++ src/tilda_window.c 2010-03-19 22:30:31.000000000 +0100
@@ -427,6 +427,9 @@
gtk_window_move (GTK_WINDOW(tw->window), config_getint ("x_pos"), config_getint ("y_pos"));
gtk_window_set_default_size (GTK_WINDOW(tw->window), config_getint ("max_width"), config_getint ("max_height"));
gtk_window_resize (GTK_WINDOW(tw->window), config_getint ("max_width"), config_getint ("max_height"));
+ /* Create GDK resources now, to prevent crashes later on */
+ gtk_widget_realize (tw->window);
+
generate_animation_positions (tw);
return tw;
|