~ubuntu-branches/debian/squeeze/glib2.0/squeeze

« back to all changes in this revision

Viewing changes to gio/gloadableicon.c

  • Committer: Bazaar Package Importer
  • Author(s): Gustavo Noronha Silva
  • Date: 2009-02-15 13:00:43 UTC
  • mfrom: (1.3.1 upstream) (69.1.10 intrepid)
  • Revision ID: james.westby@ubuntu.com-20090215130043-q47fbt3owmt42m2f
Tags: 2.18.4-2
* Release to unstable
* debian/rules:
- bump SHVER, since we are already forcing a 2.18.0 dependecy on the
  symbols introduced in the development versions
* debian/control.in:
- added Homepage and Vcs-* control fields

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
 * Author: Alexander Larsson <alexl@redhat.com>
21
21
 */
22
22
 
23
 
#include <config.h>
 
23
#include "config.h"
 
24
#include "gasyncresult.h"
24
25
#include "gsimpleasyncresult.h"
 
26
#include "gicon.h"
25
27
#include "gloadableicon.h"
26
28
#include "glibintl.h"
27
29
 
53
55
GType
54
56
g_loadable_icon_get_type (void)
55
57
{
56
 
  static GType loadable_icon_type = 0;
 
58
  static volatile gsize g_define_type_id__volatile = 0;
57
59
 
58
 
  if (! loadable_icon_type)
 
60
  if (g_once_init_enter (&g_define_type_id__volatile))
59
61
    {
60
 
      static const GTypeInfo loadable_icon_info =
 
62
      const GTypeInfo loadable_icon_info =
61
63
        {
62
64
        sizeof (GLoadableIconIface), /* class_size */
63
65
        g_loadable_icon_base_init,   /* base_init */
69
71
        0,              /* n_preallocs */
70
72
        NULL
71
73
      };
72
 
 
73
 
      loadable_icon_type =
 
74
      GType g_define_type_id =
74
75
        g_type_register_static (G_TYPE_INTERFACE, I_("GLoadableIcon"),
75
76
                                &loadable_icon_info, 0);
76
77
 
77
 
      g_type_interface_add_prerequisite (loadable_icon_type, G_TYPE_ICON);
 
78
      g_type_interface_add_prerequisite (g_define_type_id, G_TYPE_ICON);
 
79
 
 
80
      g_once_init_leave (&g_define_type_id__volatile, g_define_type_id);
78
81
    }
79
82
 
80
 
  return loadable_icon_type;
 
83
  return g_define_type_id__volatile;
81
84
}
82
85
 
83
86
static void