~noskcaj/ubuntu/vivid/thunar/1.6.4

« back to all changes in this revision

Viewing changes to thunarx/thunarx-provider-factory.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:
28
28
#include <thunarx/thunarx-provider-factory.h>
29
29
#include <thunarx/thunarx-provider-module.h>
30
30
#include <thunarx/thunarx-provider-plugin.h>
31
 
#include <thunarx/thunarx-alias.h>
32
31
 
33
32
 
34
33
 
37
36
 
38
37
 
39
38
 
40
 
static void     thunarx_provider_factory_class_init     (ThunarxProviderFactoryClass *klass);
41
39
static void     thunarx_provider_factory_finalize       (GObject                     *object);
42
40
static void     thunarx_provider_factory_add            (ThunarxProviderFactory      *factory,
43
41
                                                         ThunarxProviderModule       *module);
70
68
 
71
69
 
72
70
 
73
 
static GObjectClass *thunarx_provider_factory_parent_class;
74
 
static GList        *thunarx_provider_modules = NULL;       /* list of active provider modules */
75
 
 
76
 
 
77
 
 
78
 
GType
79
 
thunarx_provider_factory_get_type (void)
80
 
{
81
 
  static GType type = G_TYPE_INVALID;
82
 
 
83
 
  if (G_UNLIKELY (type == G_TYPE_INVALID))
84
 
    {
85
 
      static const GTypeInfo info =
86
 
      {
87
 
        sizeof (ThunarxProviderFactoryClass),
88
 
        NULL,
89
 
        NULL,
90
 
        (GClassInitFunc) thunarx_provider_factory_class_init,
91
 
        NULL,
92
 
        NULL,
93
 
        sizeof (ThunarxProviderFactory),
94
 
        0,
95
 
        NULL,
96
 
        NULL,
97
 
      };
98
 
 
99
 
      type = g_type_register_static (G_TYPE_OBJECT, I_("ThunarxProviderFactory"), &info, 0);
100
 
    }
101
 
 
102
 
  return type;
103
 
}
 
71
static GList *thunarx_provider_modules = NULL; /* list of active provider modules */
 
72
 
 
73
 
 
74
 
 
75
G_DEFINE_TYPE (ThunarxProviderFactory, thunarx_provider_factory, G_TYPE_OBJECT)
104
76
 
105
77
 
106
78
 
109
81
{
110
82
  GObjectClass *gobject_class;
111
83
 
112
 
  /* determine the parent type class */
113
 
  thunarx_provider_factory_parent_class = g_type_class_peek_parent (klass);
114
 
 
115
84
  gobject_class = G_OBJECT_CLASS (klass);
116
85
  gobject_class->finalize = thunarx_provider_factory_finalize;
117
86
}
119
88
 
120
89
 
121
90
static void
 
91
thunarx_provider_factory_init (ThunarxProviderFactory *factory)
 
92
{
 
93
}
 
94
 
 
95
 
 
96
 
 
97
static void
122
98
thunarx_provider_factory_finalize (GObject *object)
123
99
{
124
100
  ThunarxProviderFactory *factory = THUNARX_PROVIDER_FACTORY (object);
359
335
 
360
336
  return providers;
361
337
}
362
 
 
363
 
 
364
 
 
365
 
#define __THUNARX_PROVIDER_FACTORY_C__
366
 
#include <thunarx/thunarx-aliasdef.c>