From d9f4cc876d523560f97156ceda1905ee34ffdaae Mon Sep 17 00:00:00 2001 From: rbuj Date: Thu, 31 Dec 2020 18:58:03 +0100 Subject: Include i18n header after defining GETTEXT_PACKAGE macro --- gksu/libcaja-gksu.c | 12 ++++++------ image-converter/caja-image-converter.c | 5 +++-- image-converter/caja-image-resizer.c | 5 +++-- image-converter/caja-image-rotator.c | 5 +++-- image-converter/image-converter.c | 6 +++--- open-terminal/caja-open-terminal.c | 5 +++-- open-terminal/open-terminal.c | 6 +++--- sendto/caja-nste.c | 7 +++++-- sendto/caja-sendto-command.c | 4 +++- sendto/caja-sendto-module.c | 13 ++++++------- sendto/plugins/caja-burn/caja-burn.c | 11 ++++++----- sendto/plugins/emailclient/emailclient.c | 4 +++- sendto/plugins/gajim/gajim.c | 5 +++-- sendto/plugins/pidgin/pidgin.c | 3 +++ sendto/plugins/removable-devices/removable-devices.c | 6 ++++-- sendto/plugins/upnp/upnp.c | 3 +++ share/caja-share.c | 4 ++-- share/shares.c | 7 ++++++- wallpaper/caja-wallpaper-command.c | 7 ++++++- wallpaper/caja-wallpaper-extension.c | 6 +++++- xattr-tags/caja-xattr-tags-extension.c | 8 +++++++- 21 files changed, 86 insertions(+), 46 deletions(-) diff --git a/gksu/libcaja-gksu.c b/gksu/libcaja-gksu.c index 9b7410e..177acf3 100644 --- a/gksu/libcaja-gksu.c +++ b/gksu/libcaja-gksu.c @@ -1,3 +1,9 @@ +#ifdef HAVE_CONFIG_H +#include +#endif + +#include + #include #include #include @@ -10,14 +16,8 @@ #include #include -#include - -#include -#define _(x) dgettext (GETTEXT_PACKAGE, x) - #define GKSU_TYPE_CONTEXT_MENU (gksu_context_menu_get_type ()) - typedef struct { GObject parent; } GksuContextMenu; diff --git a/image-converter/caja-image-converter.c b/image-converter/caja-image-converter.c index 7598813..b7f80b8 100644 --- a/image-converter/caja-image-converter.c +++ b/image-converter/caja-image-converter.c @@ -22,16 +22,17 @@ */ #ifdef HAVE_CONFIG_H - #include /* for GETTEXT_PACKAGE */ +#include #endif +#include + #include "caja-image-converter.h" #include "caja-image-resizer.h" #include "caja-image-rotator.h" #include -#include #include #include /* for strcmp */ diff --git a/image-converter/caja-image-resizer.c b/image-converter/caja-image-resizer.c index c16de1e..d8c6221 100644 --- a/image-converter/caja-image-resizer.c +++ b/image-converter/caja-image-resizer.c @@ -22,14 +22,15 @@ */ #ifdef HAVE_CONFIG_H - #include /* for GETTEXT_PACKAGE */ +#include #endif +#include + #include "caja-image-resizer.h" #include -#include #include #include diff --git a/image-converter/caja-image-rotator.c b/image-converter/caja-image-rotator.c index aad9b12..83e76b0 100644 --- a/image-converter/caja-image-rotator.c +++ b/image-converter/caja-image-rotator.c @@ -22,14 +22,15 @@ */ #ifdef HAVE_CONFIG_H - #include /* for GETTEXT_PACKAGE */ +#include #endif +#include + #include "caja-image-rotator.h" #include -#include #include #include diff --git a/image-converter/image-converter.c b/image-converter/image-converter.c index d793ef9..868ebb4 100644 --- a/image-converter/image-converter.c +++ b/image-converter/image-converter.c @@ -22,12 +22,12 @@ */ #ifdef HAVE_CONFIG_H - #include +#include #endif -#include "caja-image-converter.h" +#include -#include +#include "caja-image-converter.h" static GType type_list[1]; diff --git a/open-terminal/caja-open-terminal.c b/open-terminal/caja-open-terminal.c index f12ce12..45950b2 100644 --- a/open-terminal/caja-open-terminal.c +++ b/open-terminal/caja-open-terminal.c @@ -22,15 +22,16 @@ */ #ifdef HAVE_CONFIG_H - #include /* for GETTEXT_PACKAGE */ +#include #endif +#include + #include "caja-open-terminal.h" #include #include -#include #include #include #include diff --git a/open-terminal/open-terminal.c b/open-terminal/open-terminal.c index ff21ec1..b7a9e78 100644 --- a/open-terminal/open-terminal.c +++ b/open-terminal/open-terminal.c @@ -22,12 +22,12 @@ */ #ifdef HAVE_CONFIG_H - #include +#include #endif -#include "caja-open-terminal.h" +#include -#include +#include "caja-open-terminal.h" static GType type_list[1]; diff --git a/sendto/caja-nste.c b/sendto/caja-nste.c index a59ae56..f730242 100644 --- a/sendto/caja-nste.c +++ b/sendto/caja-nste.c @@ -21,15 +21,18 @@ * */ +#ifdef HAVE_CONFIG_H #include -#include +#endif + #include + +#include #include #include #include #include "caja-nste.h" - static GObjectClass *parent_class; static void diff --git a/sendto/caja-sendto-command.c b/sendto/caja-sendto-command.c index 9f46904..1574e7e 100644 --- a/sendto/caja-sendto-command.c +++ b/sendto/caja-sendto-command.c @@ -21,10 +21,13 @@ * Author: Roberto Majadas */ +#ifdef HAVE_CONFIG_H #include +#endif #include #include +#include #include #include #include @@ -38,7 +41,6 @@ #define SOEXT ("." G_MODULE_SUFFIX) - enum { COLUMN_ICON, COLUMN_DESCRIPTION, diff --git a/sendto/caja-sendto-module.c b/sendto/caja-sendto-module.c index 5c8c13b..af0fd0f 100644 --- a/sendto/caja-sendto-module.c +++ b/sendto/caja-sendto-module.c @@ -21,12 +21,16 @@ * */ +#ifdef HAVE_CONFIG_H #include +#endif + +#include + #include #include -#include -#include "caja-nste.h" +#include "caja-nste.h" void caja_module_initialize (GTypeModule*module) @@ -38,14 +42,12 @@ caja_module_initialize (GTypeModule*module) bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8"); } - void caja_module_shutdown (void) { g_print ("Shutting down caja-sendto extension\n"); } - void caja_module_list_types (const GType **types, int *num_types) @@ -57,6 +59,3 @@ caja_module_list_types (const GType **types, *num_types = 1; } - - - diff --git a/sendto/plugins/caja-burn/caja-burn.c b/sendto/plugins/caja-burn/caja-burn.c index 91a4f2f..fe0570d 100644 --- a/sendto/plugins/caja-burn/caja-burn.c +++ b/sendto/plugins/caja-burn/caja-burn.c @@ -21,10 +21,13 @@ * Author: Jader Henrique da Silva */ +#ifdef HAVE_CONFIG_H #include +#endif -#include #include + +#include #include "nst-common.h" #include "caja-sendto-plugin.h" @@ -164,12 +167,11 @@ gboolean send_files (NstPlugin *plugin, } static -gboolean destroy (NstPlugin *plugin){ - +gboolean destroy (NstPlugin *plugin) +{ g_object_unref (burn); burn = NULL; return TRUE; - } static @@ -187,4 +189,3 @@ NstPluginInfo plugin_info = { }; NST_INIT_PLUGIN (plugin_info) - diff --git a/sendto/plugins/emailclient/emailclient.c b/sendto/plugins/emailclient/emailclient.c index 6729efd..a3289c5 100644 --- a/sendto/plugins/emailclient/emailclient.c +++ b/sendto/plugins/emailclient/emailclient.c @@ -23,9 +23,12 @@ * Stefano Karapetsas */ +#ifdef HAVE_CONFIG_H #include +#endif #include + #include #include "caja-sendto-plugin.h" #include @@ -275,4 +278,3 @@ NstPluginInfo plugin_info = { }; NST_INIT_PLUGIN (plugin_info) - diff --git a/sendto/plugins/gajim/gajim.c b/sendto/plugins/gajim/gajim.c index fe22fe1..881af6c 100644 --- a/sendto/plugins/gajim/gajim.c +++ b/sendto/plugins/gajim/gajim.c @@ -22,9 +22,12 @@ * */ +#ifdef HAVE_CONFIG_H #include +#endif #include + #include #include #include "caja-sendto-plugin.h" @@ -38,7 +41,6 @@ const gchar *COMPLETION_PROPS[] = {"name", "jid"}; static GHashTable *jid_table = NULL; static gchar *iconset; - DBusGProxy *proxy = NULL; /* @@ -516,4 +518,3 @@ NstPluginInfo plugin_info = { }; NST_INIT_PLUGIN (plugin_info) - diff --git a/sendto/plugins/pidgin/pidgin.c b/sendto/plugins/pidgin/pidgin.c index d4525e1..5ee4af2 100644 --- a/sendto/plugins/pidgin/pidgin.c +++ b/sendto/plugins/pidgin/pidgin.c @@ -25,9 +25,12 @@ * Author: Roberto Majadas */ +#ifdef HAVE_CONFIG_H #include +#endif #include + #include #include #include "caja-sendto-plugin.h" diff --git a/sendto/plugins/removable-devices/removable-devices.c b/sendto/plugins/removable-devices/removable-devices.c index 191c2a7..f64b17c 100644 --- a/sendto/plugins/removable-devices/removable-devices.c +++ b/sendto/plugins/removable-devices/removable-devices.c @@ -19,10 +19,13 @@ * Bastien Nocera */ +#ifdef HAVE_CONFIG_H #include +#endif -#include #include + +#include #include #include "nst-common.h" #include "caja-sendto-plugin.h" @@ -257,4 +260,3 @@ NstPluginInfo plugin_info = { }; NST_INIT_PLUGIN (plugin_info) - diff --git a/sendto/plugins/upnp/upnp.c b/sendto/plugins/upnp/upnp.c index 62cb2cb..9843cbb 100644 --- a/sendto/plugins/upnp/upnp.c +++ b/sendto/plugins/upnp/upnp.c @@ -25,9 +25,12 @@ * */ +#ifdef HAVE_CONFIG_H #include +#endif #include + #include #include "caja-sendto-plugin.h" diff --git a/share/caja-share.c b/share/caja-share.c index e66fc3f..0f69921 100644 --- a/share/caja-share.c +++ b/share/caja-share.c @@ -23,6 +23,8 @@ #include #endif +#include + #include #include #include @@ -33,8 +35,6 @@ #include "caja-share.h" -#include - #include #include diff --git a/share/shares.c b/share/shares.c index 927de49..b628321 100644 --- a/share/shares.c +++ b/share/shares.c @@ -1,9 +1,14 @@ +#ifdef HAVE_CONFIG_H #include +#endif + +#include + #include #include #include #include -#include + #include "shares.h" #undef DEBUG_SHARES diff --git a/wallpaper/caja-wallpaper-command.c b/wallpaper/caja-wallpaper-command.c index 0a7de1a..d1cb755 100644 --- a/wallpaper/caja-wallpaper-command.c +++ b/wallpaper/caja-wallpaper-command.c @@ -22,10 +22,15 @@ * Stefano Karapetsas */ +#ifdef HAVE_CONFIG_H #include +#endif + +#include + #include #include -#include + #include "caja-wallpaper-extension.h" void diff --git a/wallpaper/caja-wallpaper-extension.c b/wallpaper/caja-wallpaper-extension.c index 138c5c7..5f1e143 100644 --- a/wallpaper/caja-wallpaper-extension.c +++ b/wallpaper/caja-wallpaper-extension.c @@ -22,10 +22,14 @@ * Stefano Karapetsas */ +#ifdef HAVE_CONFIG_H #include +#endif + +#include + #include #include -#include #include #include #include diff --git a/xattr-tags/caja-xattr-tags-extension.c b/xattr-tags/caja-xattr-tags-extension.c index 7b470ca..9435215 100644 --- a/xattr-tags/caja-xattr-tags-extension.c +++ b/xattr-tags/caja-xattr-tags-extension.c @@ -20,13 +20,19 @@ * Authors: Felipe Barriga Richards */ +#ifdef HAVE_CONFIG_H #include +#endif + +#include + #include #include -#include + #include #include #include + #include "caja-xattr-tags-extension.h" #define XATTR_TAGS_NAME "Xattr::Tags" -- cgit v1.2.1