summaryrefslogtreecommitdiff
path: root/gtk/gtkimcontextsimple.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2015-11-16 06:14:00 -0500
committerMatthias Clasen <mclasen@redhat.com>2015-11-16 07:20:18 -0500
commit5cc6fb764431063dfc2da801c4fca7fbd4f1f379 (patch)
tree8dc0af7ceca3d72d7d792f9e896f80cb3c81478e /gtk/gtkimcontextsimple.c
parent8a66e685a69891de9d01e75cf1024beb71cc5701 (diff)
downloadgtk+-5cc6fb764431063dfc2da801c4fca7fbd4f1f379.tar.gz
Avoid an unused variable warning
This was introduced with the recent win32 build fix.
Diffstat (limited to 'gtk/gtkimcontextsimple.c')
-rw-r--r--gtk/gtkimcontextsimple.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/gtk/gtkimcontextsimple.c b/gtk/gtkimcontextsimple.c
index 41199f628a..d591896540 100644
--- a/gtk/gtkimcontextsimple.c
+++ b/gtk/gtkimcontextsimple.c
@@ -134,14 +134,11 @@ static gchar*
get_x11_compose_file_dir (void)
{
gchar* compose_file_dir;
- gchar* datadir = NULL;
#if defined (GDK_WINDOWING_X11) || defined (GDK_WINDOWING_WAYLAND)
compose_file_dir = g_strdup (X11_DATA_PREFIX "/share/X11/locale");
#else
- datadir = g_strdup (_gtk_get_datadir ());
- compose_file_dir = g_build_filename (datadir, "X11", "locale", NULL);
- g_free (datadir);
+ compose_file_dir = g_build_filename (_gtk_get_datadir (), "X11", "locale", NULL);
#endif
return compose_file_dir;