[gnome-applets/wip/segeiger/windowpicker: 2/17] windowpicker: avoid warning about const qualifier



commit 9c8405898ebec5df9b9ce7542e718ee48ecd788b
Author: Sebastian Geiger <sbastig gmx net>
Date:   Sat Oct 12 00:19:07 2019 +0200

    windowpicker: avoid warning about const qualifier

 windowpicker/src/task-item.c | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/windowpicker/src/task-item.c b/windowpicker/src/task-item.c
index 82b5ac8b4..5393dac66 100644
--- a/windowpicker/src/task-item.c
+++ b/windowpicker/src/task-item.c
@@ -61,18 +61,18 @@ enum {
 };
 
 static const GtkTargetEntry drop_types[] = {
-    { "STRING", 0, 0 },
-    { "text/plain", 0, 0},
-    { "text/uri-list", 0, 0},
-    { "widget", GTK_TARGET_OTHER_WIDGET, TARGET_WIDGET_DRAGGED}, //drag and drop target
-    { "item", GTK_TARGET_SAME_WIDGET, TARGET_ITEM_DRAGGED }
+    { (gchar *) "STRING", 0, 0 },
+    { (gchar *) "text/plain", 0, 0},
+    { (gchar *) "text/uri-list", 0, 0},
+    { (gchar *) "widget", GTK_TARGET_OTHER_WIDGET, TARGET_WIDGET_DRAGGED }, //drag and drop target
+    { (gchar *) "item", GTK_TARGET_SAME_WIDGET, TARGET_ITEM_DRAGGED }
 };
 
 static const gint n_drop_types = G_N_ELEMENTS(drop_types);
 
 static const GtkTargetEntry drag_types[] = {
-    { "widget", GTK_TARGET_OTHER_WIDGET, TARGET_WIDGET_DRAGGED}, //drag and drop source
-    { "item", GTK_TARGET_SAME_WIDGET, TARGET_ITEM_DRAGGED }
+    { (gchar *) "widget", GTK_TARGET_OTHER_WIDGET, TARGET_WIDGET_DRAGGED }, //drag and drop source
+    { (gchar *) "item", GTK_TARGET_SAME_WIDGET, TARGET_ITEM_DRAGGED }
 };
 
 static const gint n_drag_types = G_N_ELEMENTS(drag_types);


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