[mousetweaks] Rename LOCALEDIR to GNOMELOCALEDIR



commit 5e074d6e8d313d31c7edf837a20ceceeef00e265
Author: Gerd Kohlberger <gerdk src gnome org>
Date:   Wed May 11 21:24:19 2011 +0200

    Rename LOCALEDIR to GNOMELOCALEDIR
    
    The initialiazition function of panel applets expects the
    locale directory to be defined in GNOMELOCALEDIR.

 src/Makefile.am              |    2 +-
 src/dwell-click-applet.c     |    4 ----
 src/mt-main.c                |    2 +-
 src/pointer-capture-applet.c |    4 ----
 4 files changed, 2 insertions(+), 10 deletions(-)
---
diff --git a/src/Makefile.am b/src/Makefile.am
index 0565bdd..a95f60a 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -1,7 +1,7 @@
 AM_CPPFLAGS =                               \
     $(WARN_CFLAGS)                          \
     -DDATADIR=\"$(datadir)/mousetweaks\"    \
-    -DLOCALEDIR=\"$(datadir)/locale\"
+    -DGNOMELOCALEDIR=\"$(datadir)/locale\"
 
 if BUILD_PCA
 pca_bin = pointer-capture-applet
diff --git a/src/dwell-click-applet.c b/src/dwell-click-applet.c
index 3aff2f9..7421f5b 100644
--- a/src/dwell-click-applet.c
+++ b/src/dwell-click-applet.c
@@ -577,10 +577,6 @@ fill_applet (PanelApplet *applet)
     GtkActionGroup *group;
     PanelAppletOrient orient;
 
-    bindtextdomain (GETTEXT_PACKAGE, LOCALEDIR);
-    bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
-    textdomain (GETTEXT_PACKAGE);
-
     g_set_application_name (_("Dwell Click Applet"));
     gtk_window_set_default_icon_name (MT_ICON_NAME);
 
diff --git a/src/mt-main.c b/src/mt-main.c
index ef07c0d..c99303c 100644
--- a/src/mt-main.c
+++ b/src/mt-main.c
@@ -764,7 +764,7 @@ main (int argc, char **argv)
     MtCliArgs cli_args;
     pid_t pid;
 
-    bindtextdomain (GETTEXT_PACKAGE, LOCALEDIR);
+    bindtextdomain (GETTEXT_PACKAGE, GNOMELOCALEDIR);
     bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
     textdomain (GETTEXT_PACKAGE);
     setlocale (LC_ALL, "");
diff --git a/src/pointer-capture-applet.c b/src/pointer-capture-applet.c
index 23f67a2..84c5710 100644
--- a/src/pointer-capture-applet.c
+++ b/src/pointer-capture-applet.c
@@ -432,10 +432,6 @@ fill_applet (PanelApplet *applet)
     GtkWidget *about;
     GtkActionGroup *group;
 
-    bindtextdomain (GETTEXT_PACKAGE, LOCALEDIR);
-    bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
-    textdomain (GETTEXT_PACKAGE);
-
     g_set_application_name (_("Pointer Capture Applet"));
     gtk_window_set_default_icon_name (MT_ICON_NAME);
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]