diff options
author | Huang Peng <shawn.p.huang@gmail.com> | 2008-09-03 22:56:28 +0800 |
---|---|---|
committer | Huang Peng <shawn.p.huang@gmail.com> | 2008-09-03 22:56:28 +0800 |
commit | ab07888604b9e7993ba05eace36e49e495c7e74d (patch) | |
tree | 539c666827e86a12780d04311bdc64d0862865e4 /client/gtk2/ibusimcontext.c | |
parent | 89fb436bf12a6525f4b7a87464a27acc7479bba7 (diff) | |
download | ibus-ab07888604b9e7993ba05eace36e49e495c7e74d.tar.gz ibus-ab07888604b9e7993ba05eace36e49e495c7e74d.tar.xz ibus-ab07888604b9e7993ba05eace36e49e495c7e74d.zip |
Use g_dgettext when glib2 >= 2.18.0
Diffstat (limited to 'client/gtk2/ibusimcontext.c')
-rw-r--r-- | client/gtk2/ibusimcontext.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/client/gtk2/ibusimcontext.c b/client/gtk2/ibusimcontext.c index c8dd851..3562d2d 100644 --- a/client/gtk2/ibusimcontext.c +++ b/client/gtk2/ibusimcontext.c @@ -119,8 +119,12 @@ ibus_im_context_register_type (GTypeModule *type_module) }; /* work around for nautilus */ - if (g_strcmp0(g_get_application_name (), - g_dgettext("nautilus", "File Manager")) == 0) { +#if GLIB_CHECK_VERSION (2, 18, 0) + gchar *nautilus_name = g_dgettext("nautilus", "File Manager"); +#else + gchar *nautilus_name = dgettext("nautilus", "File Manager"); +#endif + if (g_strcmp0(g_get_application_name (), nautilus_name) == 0) { _block_filter_key_event = TRUE; } |