openbsd-ports/mail/claws-mail/patches/patch-src_main_c
2011-06-13 20:52:26 +00:00

17 lines
643 B
Plaintext

$OpenBSD: patch-src_main_c,v 1.1 2011/06/13 20:52:26 landry Exp $
Fix a segfault at startup, from upstream bug #2414:
http://lists.claws-mail.org/pipermail/commits/2011-April/001364.html
http://www.thewildbeast.co.uk/claws-mail/bugzilla/show_bug.cgi?id=2414
--- src/main.c.orig Sat Jun 11 18:19:00 2011
+++ src/main.c Sat Jun 11 18:19:32 2011
@@ -331,7 +331,7 @@ static void startup_notification_complete(gboolean wit
gtk_widget_show(hack);
}
- xdisplay = gdk_display_get_default();
+ xdisplay = GDK_DISPLAY_XDISPLAY(gdk_display_get_default());
sn_display = sn_display_new(xdisplay,
sn_error_trap_push,
sn_error_trap_pop);