[gnome-dictionary/ebassi/merge-gdict: 4/7] Avoid a discarded qualifier warning
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-dictionary/ebassi/merge-gdict: 4/7] Avoid a discarded qualifier warning
- Date: Thu, 24 Sep 2020 15:54:18 +0000 (UTC)
commit 2df2c2c16b989481c4f9ad8efc57a31d8c7f9144
Author: Emmanuele Bassi <ebassi gnome org>
Date: Wed Sep 23 16:06:32 2020 +0100
Avoid a discarded qualifier warning
Because of course GtkTarget couldn't use a const string.
src/gdict-window.c | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/src/gdict-window.c b/src/gdict-window.c
index a3f13ae..8e7b175 100644
--- a/src/gdict-window.c
+++ b/src/gdict-window.c
@@ -84,14 +84,14 @@ enum
static GParamSpec *gdict_window_properties[LAST_PROP] = { NULL, };
static guint gdict_window_signals[LAST_SIGNAL] = { 0 };
-static const GtkTargetEntry drop_types[] =
+static GtkTargetEntry drop_types[] =
{
- { "text/plain", 0, 0 },
- { "TEXT", 0, 0 },
- { "STRING", 0, 0 },
- { "UTF8_STRING", 0, 0 },
+ { (char *) "text/plain", 0, 0 },
+ { (char *) "TEXT", 0, 0 },
+ { (char *) "STRING", 0, 0 },
+ { (char *) "UTF8_STRING", 0, 0 },
};
-static const guint n_drop_types = G_N_ELEMENTS (drop_types);
+static guint n_drop_types = G_N_ELEMENTS (drop_types);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]