summaryrefslogtreecommitdiff
path: root/wallpaper
diff options
context:
space:
mode:
Diffstat (limited to 'wallpaper')
-rw-r--r--wallpaper/Makefile.am4
-rw-r--r--wallpaper/caja-wallpaper-command.c14
-rw-r--r--wallpaper/caja-wallpaper-extension.c15
-rw-r--r--wallpaper/caja-wallpaper-extension.h1
-rw-r--r--wallpaper/libcaja-wallpaper.caja-extension.desktop.in.in4
5 files changed, 27 insertions, 11 deletions
diff --git a/wallpaper/Makefile.am b/wallpaper/Makefile.am
index c173fc2..6a82f33 100644
--- a/wallpaper/Makefile.am
+++ b/wallpaper/Makefile.am
@@ -33,7 +33,11 @@ extensiondir = $(datadir)/caja/extensions
extension_in_files = libcaja-wallpaper.caja-extension.desktop.in
extension_DATA = $(extension_in_files:.caja-extension.desktop.in=.caja-extension)
$(extension_DATA): $(extension_in_files)
+if USE_NLS
$(AM_V_GEN) $(MSGFMT) --desktop --keyword= --keyword=Copyright --keyword=Name --keyword=Description --template $< -d $(top_srcdir)/po -o $@
+else
+ $(AM_V_GEN) cp $< $@
+endif
CLEANFILES = $(extension_DATA)
diff --git a/wallpaper/caja-wallpaper-command.c b/wallpaper/caja-wallpaper-command.c
index 9d6e3b2..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
@@ -22,21 +23,32 @@
* Stefano Karapetsas <[email protected]>
*/
+#ifdef HAVE_CONFIG_H
#include <config.h>
+#endif
+
+#include <glib/gi18n-lib.h>
+
#include <libcaja-extension/caja-extension-types.h>
#include <libcaja-extension/caja-column-provider.h>
-#include <glib/gi18n-lib.h>
+
#include "caja-wallpaper-extension.h"
void
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
caja_module_shutdown (void)
{
+ g_print ("Shutting down caja-wallpaper extension\n");
}
void
diff --git a/wallpaper/caja-wallpaper-extension.c b/wallpaper/caja-wallpaper-extension.c
index 138c5c7..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
@@ -22,10 +23,14 @@
* Stefano Karapetsas <[email protected]>
*/
+#ifdef HAVE_CONFIG_H
#include <config.h>
+#endif
+
+#include <glib/gi18n-lib.h>
+
#include <string.h>
#include <gio/gio.h>
-#include <glib/gi18n-lib.h>
#include <libcaja-extension/caja-extension-types.h>
#include <libcaja-extension/caja-file-info.h>
#include <libcaja-extension/caja-menu-provider.h>
@@ -74,7 +79,6 @@ is_image (CajaFileInfo *file)
return isImage;
}
-
static GList *
caja_cwe_get_file_items (CajaMenuProvider *provider,
GtkWidget *window,
@@ -118,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)
{
@@ -162,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
diff --git a/wallpaper/libcaja-wallpaper.caja-extension.desktop.in.in b/wallpaper/libcaja-wallpaper.caja-extension.desktop.in.in
index 6394eeb..8d5d7ba 100644
--- a/wallpaper/libcaja-wallpaper.caja-extension.desktop.in.in
+++ b/wallpaper/libcaja-wallpaper.caja-extension.desktop.in.in
@@ -4,6 +4,6 @@ Icon=desktop
Name=Wallpaper
Description=Allows to quickly set wallpaper
Author=Stefano Karapetsas;Adam Israel
-Copyright=Copyright (C) 2014 Stefano Karapetsas
+Copyright=Copyright (C) 2014 Stefano Karapetsas\nCopyright (C) 2015-2021 MATE developers
Version=@VERSION@
-Website=https://mate-desktop.org/
+Website=@PACKAGE_URL@