1 /* -*- Mode: C; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
3 * GIO - GLib Input, Output and Streaming Library
5 * Copyright 2010 Red Hat, Inc.
7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Lesser General Public
9 * License as published by the Free Software Foundation; either
10 * version 2.1 of the License, or (at your option) any later version.
12 * This library is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Lesser General Public License for more details.
17 * You should have received a copy of the GNU Lesser General
18 * Public License along with this library; if not, see
19 * <http://www.gnu.org/licenses/>.
24 #include <glib/gi18n-lib.h>
26 #include "gproxyresolvergnome.h"
30 g_io_module_load (GIOModule *module)
37 g_proxy_resolver_gnome_register (module);
40 base_dir = g_win32_get_package_installation_directory_of_module (NULL);
41 locale_dir = g_build_filename (base_dir, "share", "locale", NULL);
44 locale_dir = g_strdup (LOCALE_DIR);
47 bindtextdomain (GETTEXT_PACKAGE, locale_dir);
48 bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
53 g_io_module_unload (GIOModule *module)
57 G_MODULE_EXPORT gchar **
58 g_io_module_query (void)
61 G_PROXY_RESOLVER_EXTENSION_POINT_NAME,
64 return g_strdupv (eps);