~noskcaj/ubuntu/vivid/thunar/1.6.4

« back to all changes in this revision

Viewing changes to thunarx/thunarx-menu-provider.c

  • Committer: Bazaar Package Importer
  • Author(s): Lionel Le Folgoc
  • Date: 2010-12-04 16:46:20 UTC
  • mto: (2.1.3 experimental) (1.3.1)
  • mto: This revision was merged to the branch mainline in revision 69.
  • Revision ID: james.westby@ubuntu.com-20101204164620-h7p4t2e9z6hfhz6l
Tags: upstream-1.1.4
ImportĀ upstreamĀ versionĀ 1.1.4

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
 
25
25
#include <thunarx/thunarx-menu-provider.h>
26
26
#include <thunarx/thunarx-private.h>
27
 
#include <thunarx/thunarx-alias.h>
28
27
 
29
28
 
30
29
 
31
30
GType
32
31
thunarx_menu_provider_get_type (void)
33
32
{
34
 
  static GType type = G_TYPE_INVALID;
 
33
  static volatile gsize type__volatile = 0;
 
34
  GType                 type;
35
35
 
36
 
  if (G_UNLIKELY (type == G_TYPE_INVALID))
 
36
  if (g_once_init_enter (&type__volatile))
37
37
    {
38
 
      static const GTypeInfo info =
39
 
      {
40
 
        sizeof (ThunarxMenuProviderIface),
41
 
        NULL,
42
 
        NULL,
43
 
        NULL,
44
 
        NULL,
45
 
        NULL,
46
 
        0,
47
 
        0,
48
 
        NULL,
49
 
        NULL,
50
 
      };
 
38
      type = g_type_register_static_simple (G_TYPE_INTERFACE,
 
39
                                            I_("ThunarxMenuProvider"),
 
40
                                            sizeof (ThunarxMenuProviderIface),
 
41
                                            NULL,
 
42
                                            0,
 
43
                                            NULL,
 
44
                                            0);
51
45
 
52
 
      /* register the menu provider interface */
53
 
      type = g_type_register_static (G_TYPE_INTERFACE, I_("ThunarxMenuProvider"), &info, 0);
54
46
      g_type_interface_add_prerequisite (type, G_TYPE_OBJECT);
 
47
 
 
48
      g_once_init_leave (&type__volatile, type);
55
49
    }
56
50
 
57
 
  return type;
 
51
  return type__volatile;
58
52
}
59
53
 
60
54
 
234
228
 
235
229
  return actions;
236
230
}
237
 
 
238
 
 
239
 
 
240
 
#define __THUNARX_MENU_PROVIDER_C__
241
 
#include <thunarx/thunarx-aliasdef.c>