981e8d6f0103cd25c54ea0553a8f6d8d95bcf570
[tweakr] / maemo-tweaks-desktop.c
1 /*
2  * vim:ts=4:sw=4:et:cindent:cino=(0
3  */ 
4
5 #include "maemo-tweaks-module.h"
6 #include "maemo-tweaks-desktop.h"
7
8 #include <hildon/hildon-picker-button.h>
9
10 static void _build (MaemoTweaksModule *self)
11 {
12 }
13
14 static GtkWidget * _get_widget (MaemoTweaksModule *self)
15 {
16     return NULL;
17 }
18
19 static void module_interface_init (gpointer g_iface, gpointer iface_data)
20 {
21     MaemoTweaksModuleInterface *iface =
22         (MaemoTweaksModuleInterface *) g_iface;
23
24     iface->build = _build;
25     iface->get_widget = _get_widget;
26 }
27
28 GType maemo_tweaks_desktop_get_type (void)
29 {
30     static GType type = 0;
31     if (type == 0) {
32         static const GTypeInfo info = {
33             sizeof (MaemoTweaksModuleInterface),
34             NULL,   /* base_init */
35             NULL,   /* base_finalize */
36             NULL,   /* class_init */
37             NULL,   /* class_finalize */
38             NULL,   /* class_data */
39             sizeof (MaemoTweaksDesktop),
40             0,      /* n_preallocs */
41             NULL    /* instance_init */
42         };
43         static const GInterfaceInfo maemo_tweaks_module_info = {
44             (GInterfaceInitFunc) module_interface_init, /* interface_init */
45             NULL,         /* interface_finalize */
46             NULL          /* interface_data */
47         };
48         type = g_type_register_static (G_TYPE_OBJECT,
49                                        "MaemoTweaksDesktopType",
50                                        &info, 0);
51         g_type_add_interface_static (type,
52                                      MAEMO_TWEAKS_MODULE_TYPE,
53                                      &maemo_tweaks_module_info);
54     }
55     return type;
56 }
57