From 05f3a440f3cbd7c4fd04962f964292a764f5b6ac Mon Sep 17 00:00:00 2001 From: Colomban Wendling Date: Tue, 3 Oct 2023 12:13:59 +0200 Subject: applet: Do not override the process' text domain When loaded as in-process applet, we must not call `textdomain()` or we will override mate-panel's text domain. Instead, properly use gi18n-lib.h header that provides the same API but uses the compile-time `GETTEXT_PACKAGE` value for each call. Actually drop the whole i18n setup logic that is provided already by mate-panel's factory macros. Fixes #219. --- src/capplet/mate-notification-applet.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'src') diff --git a/src/capplet/mate-notification-applet.c b/src/capplet/mate-notification-applet.c index c1f66ca..7402707 100644 --- a/src/capplet/mate-notification-applet.c +++ b/src/capplet/mate-notification-applet.c @@ -22,7 +22,7 @@ #include "config.h" #include -#include +#include #include #include @@ -167,12 +167,6 @@ applet_main (MatePanelApplet *applet_widget) MateNotificationApplet *applet; GtkWidget *box; -#ifdef ENABLE_NLS - bindtextdomain (GETTEXT_PACKAGE, MATELOCALEDIR); - bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8"); - textdomain (GETTEXT_PACKAGE); -#endif /* ENABLE_NLS */ - #ifndef ENABLE_IN_PROCESS g_set_application_name (_("Do Not Disturb")); #endif -- cgit v1.2.1