[gtk+] Avoid an unused variable warning
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Avoid an unused variable warning
- Date: Mon, 16 Nov 2015 12:22:11 +0000 (UTC)
commit 5cc6fb764431063dfc2da801c4fca7fbd4f1f379
Author: Matthias Clasen <mclasen redhat com>
Date: Mon Nov 16 06:14:00 2015 -0500
Avoid an unused variable warning
This was introduced with the recent win32 build fix.
gtk/gtkimcontextsimple.c | 5 +----
1 files changed, 1 insertions(+), 4 deletions(-)
---
diff --git a/gtk/gtkimcontextsimple.c b/gtk/gtkimcontextsimple.c
index 41199f6..d591896 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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]