[mutter/wayland] util: fix warnings when compiling gnome-shell-wayland



commit 72b6699efb97d4b03866e9f7fbdd2a55b4903753
Author: Giovanni Campagna <gcampagn redhat com>
Date:   Tue Sep 10 11:52:45 2013 +0200

    util: fix warnings when compiling gnome-shell-wayland
    
    Replace our version of the gettext macros with those in glib,
    so that they don't conflict with gnome-shell.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=707851

 src/meta/util.h |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)
---
diff --git a/src/meta/util.h b/src/meta/util.h
index cc60fa2..ed29b08 100644
--- a/src/meta/util.h
+++ b/src/meta/util.h
@@ -27,6 +27,7 @@
 
 #include <glib.h>
 #include <glib-object.h>
+#include <glib/gi18n.h>
 
 #include <meta/common.h>
 
@@ -124,10 +125,6 @@ const char* meta_gravity_to_string (int gravity);
 
 char* meta_external_binding_name_for_action (guint keybinding_action);
 
-#include <libintl.h>
-#define _(x) dgettext (GETTEXT_PACKAGE, x)
-#define N_(x) x
-
 char* meta_g_utf8_strndup (const gchar *src, gsize n);
 
 void  meta_free_gslist_and_elements (GSList *list_to_deep_free);


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