mirror of
https://gitlab.gnome.org/GNOME/nautilus
synced 2024-11-05 16:04:31 +00:00
b4aa3c083a
And add a check for the presence of nautilus-sendto to the initialisation of the object. Building the extension is optional, though on by default. https://bugzilla.gnome.org/show_bug.cgi?id=633485
56 lines
1.5 KiB
C
56 lines
1.5 KiB
C
/*
|
|
* Nautilus SendTo
|
|
*
|
|
* Copyright (C) 2005 Roberto Majadas
|
|
*
|
|
* This library is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU General Public
|
|
* License as published by the Free Software Foundation; either
|
|
* version 2 of the License, or (at your option) any later version.
|
|
*
|
|
* This library is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
* Library General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public
|
|
* License along with this library; if not, write to the Free
|
|
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
*
|
|
* Author: Roberto Majadas <roberto.majadas@openshine.com>
|
|
*
|
|
*/
|
|
|
|
#include <config.h>
|
|
#include <libnautilus-extension/nautilus-extension-types.h>
|
|
#include <libnautilus-extension/nautilus-column-provider.h>
|
|
#include <glib/gi18n-lib.h>
|
|
#include "nautilus-nste.h"
|
|
|
|
|
|
void
|
|
nautilus_module_initialize (GTypeModule*module)
|
|
{
|
|
nautilus_nste_register_type (module);
|
|
|
|
bindtextdomain (GETTEXT_PACKAGE, GNOMELOCALEDIR);
|
|
bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
|
|
}
|
|
|
|
void
|
|
nautilus_module_shutdown (void)
|
|
{
|
|
}
|
|
|
|
void
|
|
nautilus_module_list_types (const GType **types,
|
|
int *num_types)
|
|
{
|
|
static GType type_list[1];
|
|
|
|
type_list[0] = NAUTILUS_TYPE_NSTE;
|
|
*types = type_list;
|
|
|
|
*num_types = 1;
|
|
}
|
|
|