~ubuntu-branches/ubuntu/maverick/awn-extras-applets/maverick

« back to all changes in this revision

Viewing changes to applets/maintained/garbage/prefs.c

  • Committer: Bazaar Package Importer
  • Author(s): Julien Lavergne
  • Date: 2010-04-11 22:38:55 UTC
  • mto: (2.2.5 sid)
  • mto: This revision was merged to the branch mainline in revision 20.
  • Revision ID: james.westby@ubuntu.com-20100411223855-bb0ovgd1kerhtyv8
Tags: upstream-0.4.0
ImportĀ upstreamĀ versionĀ 0.4.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
215
215
 
216
216
 
217
217
GType garbage_prefs_get_type (void) {
218
 
        static GType garbage_prefs_type_id = 0;
219
 
        if (garbage_prefs_type_id == 0) {
 
218
        static volatile gsize garbage_prefs_type_id__volatile = 0;
 
219
        if (g_once_init_enter (&garbage_prefs_type_id__volatile)) {
220
220
                static const GTypeInfo g_define_type_info = { sizeof (GarbagePrefsClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) garbage_prefs_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (GarbagePrefs), 0, (GInstanceInitFunc) garbage_prefs_instance_init, NULL };
 
221
                GType garbage_prefs_type_id;
221
222
                garbage_prefs_type_id = g_type_register_static (GTK_TYPE_DIALOG, "GarbagePrefs", &g_define_type_info, 0);
 
223
                g_once_init_leave (&garbage_prefs_type_id__volatile, garbage_prefs_type_id);
222
224
        }
223
 
        return garbage_prefs_type_id;
 
225
        return garbage_prefs_type_id__volatile;
224
226
}
225
227
 
226
228