summaryrefslogtreecommitdiff
path: root/modules/gtk3/caribou-module.c
blob: 7792bd93f371e78ddd0261ce7c3f4064f930a57e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#include <gtk/gtk.h>
#include "caribou-gtk-module.h"

CaribouGtkModule * gtk_module;

G_MODULE_EXPORT CaribouGtkModule *
gtk_module_init (gint *argc, gchar ***argv[]) {
    CaribouGtkModule *context = caribou_gtk_module_new ();
    gtk_module = context;
        return context;
}

G_MODULE_EXPORT const gchar*
g_module_check_init (GModule *module)
{
    const gchar *error;

    error = gtk_check_version (GTK_MAJOR_VERSION, 0, 0);
    if (error)
        return error;

    g_module_make_resident (module);
    return NULL;
}