Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:jberkman
evolution-data-server-2.6
fix-bnc-212534-eds-startup-crash.diff
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File fix-bnc-212534-eds-startup-crash.diff of Package evolution-data-server-2.6
Index: libedataserver/e-source-list.c =================================================================== RCS file: /cvs/gnome/evolution-data-server/libedataserver/e-source-list.c,v retrieving revision 1.16 diff -u -p -r1.16 e-source-list.c --- libedataserver/e-source-list.c 9 Feb 2006 12:26:50 -0000 1.16 +++ libedataserver/e-source-list.c 16 Aug 2006 06:27:24 -0000 @@ -339,12 +339,26 @@ e_source_list_init (ESourceList *source_ source_list->priv = priv; } +/* returns the type */ +static GType +get_source_list_type (void) +{ + static GType type = 0; + + if (!type) { + if (!(type = g_type_from_name ("ESourceList"))) + type = e_source_list_get_type (); + } + + return type; +} + /* Public methods. */ ESourceList * e_source_list_new (void) { - ESourceList *list = g_object_new (e_source_list_get_type (), NULL); + ESourceList *list = g_object_new (get_source_list_type (), NULL); return list; } @@ -358,7 +372,7 @@ e_source_list_new_for_gconf (GConfClient g_return_val_if_fail (GCONF_IS_CLIENT (client), NULL); g_return_val_if_fail (path != NULL, NULL); - list = g_object_new (e_source_list_get_type (), NULL); + list = g_object_new (get_source_list_type (), NULL); list->priv->gconf_path = g_strdup (path); list->priv->gconf_client = client; @@ -382,7 +396,7 @@ e_source_list_new_for_gconf_default (con g_return_val_if_fail (path != NULL, NULL); - list = g_object_new (e_source_list_get_type (), NULL); + list = g_object_new (get_source_list_type (), NULL); list->priv->gconf_path = g_strdup (path); list->priv->gconf_client = gconf_client_get_default ();
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor