diff options
Diffstat (limited to 'wallpaper')
-rw-r--r-- | wallpaper/caja-wallpaper-command.c | 5 | ||||
-rw-r--r-- | wallpaper/caja-wallpaper-extension.c | 9 | ||||
-rw-r--r-- | wallpaper/caja-wallpaper-extension.h | 1 |
3 files changed, 8 insertions, 7 deletions
diff --git a/wallpaper/caja-wallpaper-command.c b/wallpaper/caja-wallpaper-command.c index d1cb755..d7bea89 100644 --- a/wallpaper/caja-wallpaper-command.c +++ b/wallpaper/caja-wallpaper-command.c @@ -3,6 +3,7 @@ * * Copyright (C) 2005 Adam Israel * Copyright (C) 2014 Stefano Karapetsas + * Copyright (C) 2014-2021 MATE developers. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -38,6 +39,10 @@ caja_module_initialize (GTypeModule*module) { g_print ("Initializing caja-wallpaper extension\n"); caja_cwe_register_type (module); +#ifdef ENABLE_NLS + bindtextdomain (GETTEXT_PACKAGE, MATELOCALEDIR); + bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8"); +#endif /* ENABLE_NLS */ } void diff --git a/wallpaper/caja-wallpaper-extension.c b/wallpaper/caja-wallpaper-extension.c index 5f1e143..3119e9f 100644 --- a/wallpaper/caja-wallpaper-extension.c +++ b/wallpaper/caja-wallpaper-extension.c @@ -3,6 +3,7 @@ * * Copyright (C) 2005 Adam Israel * Copyright (C) 2014 Stefano Karapetsas + * Copyright (C) 2014-2021 MATE developers. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -78,7 +79,6 @@ is_image (CajaFileInfo *file) return isImage; } - static GList * caja_cwe_get_file_items (CajaMenuProvider *provider, GtkWidget *window, @@ -122,37 +122,31 @@ caja_cwe_get_file_items (CajaMenuProvider *provider, return items; } - static void caja_cwe_menu_provider_iface_init (CajaMenuProviderIface *iface) { iface->get_file_items = caja_cwe_get_file_items; } - static void caja_cwe_instance_init (CajaCwe *cwe) { } - static void caja_cwe_class_init (CajaCweClass *class) { parent_class = g_type_class_peek_parent (class); } - static GType cwe_type = 0; - GType caja_cwe_get_type (void) { return cwe_type; } - void caja_cwe_register_type (GTypeModule *module) { @@ -166,6 +160,7 @@ caja_cwe_register_type (GTypeModule *module) sizeof (CajaCwe), 0, (GInstanceInitFunc) caja_cwe_instance_init, + NULL }; static const GInterfaceInfo menu_provider_iface_info = { diff --git a/wallpaper/caja-wallpaper-extension.h b/wallpaper/caja-wallpaper-extension.h index ddd2ce0..0a3c15d 100644 --- a/wallpaper/caja-wallpaper-extension.h +++ b/wallpaper/caja-wallpaper-extension.h @@ -3,6 +3,7 @@ * * Copyright (C) 2005 Adam Israel * Copyright (C) 2014 Stefano Karapetsas + * Copyright (C) 2014-2021 MATE developers. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by |