2
* Copyright (C) 2007-2011 Peter de Ridder <peter@xfce.org>
4
* This program is free software; you can redistribute it and/or modify
5
* it under the terms of the GNU General Public License as published by
6
* the Free Software Foundation; either version 2 of the License, or
7
* (at your option) any later version.
9
* This program is distributed in the hope that it will be useful,
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
* GNU General Public License for more details.
14
* You should have received a copy of the GNU General Public License
15
* along with this program; if not, write to the Free Software
16
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
25
#include <thunar-vcs-plugin/tvp-provider.h>
27
#ifdef HAVE_SUBVERSION
28
#include <thunar-vcs-plugin/tvp-svn-action.h>
29
#include <thunar-vcs-plugin/tvp-svn-property-page.h>
33
#include <thunar-vcs-plugin/tvp-git-action.h>
38
static GType type_list[1];
42
/* delcare it here to make the compiler happy */
43
G_MODULE_EXPORT void thunar_extension_initialize (ThunarxProviderPlugin *plugin);
46
thunar_extension_initialize (ThunarxProviderPlugin *plugin)
48
const gchar *mismatch;
50
/* verify that the thunarx versions are compatible */
51
mismatch = thunarx_check_version (THUNARX_MAJOR_VERSION, THUNARX_MINOR_VERSION, THUNARX_MICRO_VERSION);
52
if (G_UNLIKELY (mismatch != NULL))
54
g_warning ("Version mismatch: %s", mismatch);
58
/* setup i18n support */
59
bindtextdomain (GETTEXT_PACKAGE, PACKAGE_LOCALE_DIR);
60
#ifdef HAVE_BIND_TEXTDOMAIN_CODESET
61
bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
65
g_message ("Initializing thunar-vcs-plugin extension");
68
/* register the types provided by this plugin */
69
tvp_provider_register_type (plugin);
70
#ifdef HAVE_SUBVERSION
71
tvp_svn_action_register_type (plugin);
72
tvp_svn_property_page_register_type (plugin);
75
tvp_git_action_register_type (plugin);
78
/* setup the plugin provider type list */
79
type_list[0] = TVP_TYPE_PROVIDER;
84
/* delcare it here to make the compiler happy */
85
G_MODULE_EXPORT void thunar_extension_shutdown (void);
88
thunar_extension_shutdown (void)
91
g_message ("Shutting down thunar-vcs-plugin extension");
97
/* delcare it here to make the compiler happy */
98
G_MODULE_EXPORT void thunar_extension_list_types (const GType **types, gint *n_types);
101
thunar_extension_list_types (const GType **types,
105
*n_types = G_N_ELEMENTS (type_list);