#! /bin/sh /usr/share/dpatch/dpatch-run ## 03_gtk_window_realize.dpatch by Chris Coulson ## ## All lines beginning with `## DP:' are a description of the patch. ## DP: Make sure that GDK resources are created for the main GtkWindow before ## DP: trying to access them, otherwise it will just crash @DPATCH@ diff -urNad tilda-0.09.6~/src/tilda_window.c tilda-0.09.6/src/tilda_window.c --- tilda-0.09.6~/src/tilda_window.c 2008-01-17 22:07:39.000000000 +0000 +++ tilda-0.09.6/src/tilda_window.c 2009-10-09 18:05:57.081042433 +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;