freebsd-ports/graphics/pornview/files/patch-comment.c
Dirk Meyer eb7596490e - include patches from OpenBSD
- Fix coredump on amd64
PR:		123410
2009-05-07 08:25:11 +00:00

24 lines
585 B
C

--- src/comment.c.orig 2002-12-22 11:18:51.000000000 +0100
+++ src/comment.c 2009-04-19 14:33:47.000000000 +0200
@@ -187,7 +187,7 @@
{
Comment *comment;
- comment = COMMENT (gtk_type_new (comment_get_type ()));
+ comment = g_object_new (TYPE_COMMENT, NULL);
g_return_val_if_fail (comment, NULL);
return comment;
@@ -999,10 +999,10 @@
*-------------------------------------------------------------------
*/
-guint
+GType
comment_get_type (void)
{
- static guint comment_type = 0;
+ static GType comment_type = 0;
if (!comment_type)
{