[gnome-commander] Fixing gcc error=write-strings warnings



commit d3bb2d53c2ba93aedf29078323720dc70662097c
Author: Uwe Scholz <uwescholz src gnome org>
Date:   Sat Apr 22 18:11:14 2017 +0200

    Fixing gcc error=write-strings warnings

 src/gnome-cmd-file-list.cc |   12 ++++++------
 src/gnome-cmd-file-list.h  |    8 ++++----
 2 files changed, 10 insertions(+), 10 deletions(-)
---
diff --git a/src/gnome-cmd-file-list.cc b/src/gnome-cmd-file-list.cc
index 65a617a..5951288 100644
--- a/src/gnome-cmd-file-list.cc
+++ b/src/gnome-cmd-file-list.cc
@@ -213,14 +213,14 @@ GnomeCmdFileList::Private::Private(GnomeCmdFileList *fl)
         gtk_clist_set_column_resizeable (*fl, i, TRUE);
 
     static GtkItemFactoryEntry items[] = {
-                                            {N_("/_Copy here"), "<control>", (GtkItemFactoryCallback) 
on_dnd_popup_menu, GNOME_VFS_XFER_RECURSIVE, "<StockItem>", GTK_STOCK_COPY},
-                                            {N_("/_Move here"), "<shift>", (GtkItemFactoryCallback) 
on_dnd_popup_menu, GNOME_VFS_XFER_REMOVESOURCE, "<StockItem>", GTK_STOCK_COPY},
-                                            {N_("/_Link here"), "<control><shift>", (GtkItemFactoryCallback) 
on_dnd_popup_menu,GNOME_VFS_XFER_LINK_ITEMS,"<StockItem>", GTK_STOCK_CONVERT},
-                                            {"/", NULL, NULL, 0, "<Separator>"},
-                                            {N_("/C_ancel"), "Esc", (GtkItemFactoryCallback) 
on_dnd_popup_menu, 0, "<StockItem>", GTK_STOCK_CANCEL}
+                                            {(gchar*) N_("/_Copy here"), (gchar*) "<control>", 
(GtkItemFactoryCallback) on_dnd_popup_menu, GNOME_VFS_XFER_RECURSIVE, (gchar*) "<StockItem>", GTK_STOCK_COPY},
+                                            {(gchar*) N_("/_Move here"), (gchar*) "<shift>", 
(GtkItemFactoryCallback) on_dnd_popup_menu, GNOME_VFS_XFER_REMOVESOURCE, (gchar*) "<StockItem>", 
GTK_STOCK_COPY},
+                                            {(gchar*) N_("/_Link here"), (gchar*) "<control><shift>", 
(GtkItemFactoryCallback) on_dnd_popup_menu,GNOME_VFS_XFER_LINK_ITEMS, (gchar*) "<StockItem>", 
GTK_STOCK_CONVERT},
+                                            {(gchar*) "/", NULL, NULL, 0, (gchar*) "<Separator>"},
+                                            {(gchar*) N_("/C_ancel"), (gchar*) "Esc", 
(GtkItemFactoryCallback) on_dnd_popup_menu, 0, (gchar*) "<StockItem>", GTK_STOCK_CANCEL}
                                          };
 
-    ifac = gtk_item_factory_new (GTK_TYPE_MENU, "<main>", NULL);
+    ifac = gtk_item_factory_new (GTK_TYPE_MENU, (const gchar*) "<main>", NULL);
     gtk_item_factory_set_translate_func (ifac, translate_menu, NULL, NULL);
     gtk_item_factory_create_items (ifac, G_N_ELEMENTS (items), items, fl);
 }
diff --git a/src/gnome-cmd-file-list.h b/src/gnome-cmd-file-list.h
index 16288e4..dda35ea 100644
--- a/src/gnome-cmd-file-list.h
+++ b/src/gnome-cmd-file-list.h
@@ -40,10 +40,10 @@ GType gnome_cmd_file_list_get_type ();
 
 
 /* DnD target names */
-#define TARGET_MC_DESKTOP_ICON_TYPE     "application/x-mc-desktop-icon"
-#define TARGET_URI_LIST_TYPE            "text/uri-list"
-#define TARGET_TEXT_PLAIN_TYPE          "text/plain"
-#define TARGET_URL_TYPE                 "_NETSCAPE_URL"
+#define TARGET_MC_DESKTOP_ICON_TYPE     (gchar*) "application/x-mc-desktop-icon"
+#define TARGET_URI_LIST_TYPE            (gchar*) "text/uri-list"
+#define TARGET_TEXT_PLAIN_TYPE          (gchar*) "text/plain"
+#define TARGET_URL_TYPE                 (gchar*) "_NETSCAPE_URL"
 
 /* Standard DnD types */
 enum TargetType


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