File exo-wrap-table.patch of Package lxlauncher

--- src/exo-wrap-table.c	2008-11-15 01:19:12.000000000 +0800
+++ ..//../lxlauncher-0.2/src/exo-wrap-table.c	2008-11-15 01:23:38.000000000 +0800
@@ -109,12 +109,32 @@
   if (G_UNLIKELY (type == G_TYPE_INVALID))
     {
       /* NOTE: g_type_register_static_simple requires gtk+ > 2.12 */
-      type = g_type_register_static_simple (GTK_TYPE_CONTAINER,
+
+#if GLIB_CHECK_VERSION(2,12,0)
+       type = g_type_register_static_simple (GTK_TYPE_CONTAINER,
                                           "ExoWrapTable",
                                           sizeof (ExoWrapTableClass),
                                           exo_wrap_table_class_init,
                                           sizeof (ExoWrapTable),
                                           exo_wrap_table_init, 0);
+#else
+     static const GTypeInfo info = {
+       sizeof (ExoWrapTableClass),
+       NULL, /* base_init */
+       NULL, /* base_finalize */
+       exo_wrap_table_class_init,
+       NULL, /* class_finalize */
+       NULL, /* class_data */
+       sizeof (ExoWrapTable),
+       0, /* n_preallocs */
+       exo_wrap_table_init,
+       NULL /* value_table */
+     };
+	type = g_type_register_static ( GTK_TYPE_CONTAINER, 
+					"ExoWrapTable", 
+					&info, 
+					0 );
+#endif
     }
 
   return type;
openSUSE Build Service is sponsored by