[gtk+] gtkselection: fix warnings of unused vars on win32
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] gtkselection: fix warnings of unused vars on win32
- Date: Tue, 22 Jul 2014 15:22:14 +0000 (UTC)
commit 8f873f3aa31a5b33795f6ade90c515fd879d6cb5
Author: Ignacio Casal Quinteiro <icq gnome org>
Date: Tue Jul 22 17:21:37 2014 +0200
gtkselection: fix warnings of unused vars on win32
gtk/gtkselection.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkselection.c b/gtk/gtkselection.c
index a2da673..380a101 100644
--- a/gtk/gtkselection.c
+++ b/gtk/gtkselection.c
@@ -1361,14 +1361,15 @@ selection_set_compound_text (GtkSelectionData *selection_data,
const gchar *str,
gint len)
{
+ gboolean result = FALSE;
+
+#ifdef GDK_WINDOWING_X11
gchar *tmp;
guchar *text;
GdkAtom encoding;
gint format;
gint new_length;
- gboolean result = FALSE;
-#ifdef GDK_WINDOWING_X11
if (GDK_IS_X11_DISPLAY (selection_data->display))
{
tmp = g_strndup (str, len);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]