summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorColomban Wendling <[email protected]>2023-10-03 12:13:59 +0200
committerraveit65 <[email protected]>2023-10-05 11:58:58 +0200
commit05f3a440f3cbd7c4fd04962f964292a764f5b6ac (patch)
treeb297c634c2187e989e5446b264ecbe2ca844fd33 /src
parent8adfe64ab4fe19f5af2544d3285c0d514ab5b2a5 (diff)
downloadmate-notification-daemon-05f3a440f3cbd7c4fd04962f964292a764f5b6ac.tar.bz2
mate-notification-daemon-05f3a440f3cbd7c4fd04962f964292a764f5b6ac.tar.xz
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.
Diffstat (limited to 'src')
-rw-r--r--src/capplet/mate-notification-applet.c8
1 files changed, 1 insertions, 7 deletions
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 <glib.h>
-#include <glib/gi18n.h>
+#include <glib/gi18n-lib.h>
#include <gtk/gtk.h>
#include <mate-panel-applet.h>
@@ -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