# HG changeset patch # User Luke Schierer # Date 1061490005 0 # Node ID aeb5ee62debcdff43d9822a276eba0f50cdc7927 # Parent 8dba07c335e9b692b48726c7e37656db4f306918 [gaim-migrate @ 7082] (14:16:38) Robot101: I've got a nice patch to stop the ticker from crashing the 2nd time you load it committer: Tailor Script diff -r 8dba07c335e9 -r aeb5ee62debc plugins/ticker/gtkticker.c --- a/plugins/ticker/gtkticker.c Thu Aug 21 16:01:18 2003 +0000 +++ b/plugins/ticker/gtkticker.c Thu Aug 21 18:20:05 2003 +0000 @@ -51,6 +51,8 @@ { static GType ticker_type = 0; + ticker_type = g_type_from_name("GtkTicker"); + if (!ticker_type) { static const GTypeInfo ticker_info = @@ -70,6 +72,11 @@ &ticker_info, 0); } + /* kludge to re-initialise the class if it's already registered */ + else if (parent_class == NULL) { + gtk_ticker_class_init((GtkTickerClass *)g_type_class_peek(ticker_type)); + } + return ticker_type; }