[gnome-commander/gcmd-1-10] Add back icon from old gnome stock for sending mail into toolbar



commit e0fb92f9f86c674c415aa316e64198d93263f665
Author: Uwe Scholz <u scholz83 gmx de>
Date:   Fri May 15 15:05:30 2020 +0200

    Add back icon from old gnome stock for sending mail into toolbar

 pixmaps/Makefile.am       |   1 +
 pixmaps/mail-send.png     | Bin 0 -> 746 bytes
 src/gnome-cmd-main-win.cc |   2 +-
 src/imageloader.cc        |   1 +
 src/imageloader.h         |   3 ++-
 5 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/pixmaps/Makefile.am b/pixmaps/Makefile.am
index 51d944c2..0af2a621 100644
--- a/pixmaps/Makefile.am
+++ b/pixmaps/Makefile.am
@@ -19,6 +19,7 @@ pixmaps_DATA = \
        gnome-commander.svg \
        gnome-commander-symbolic.svg \
        internal-viewer.svg \
+       mail-send.png \
        menu_bookmark.xpm \
        overlay_symlink.xpm \
        overlay_umount.xpm \
diff --git a/pixmaps/mail-send.png b/pixmaps/mail-send.png
new file mode 100644
index 00000000..e1fa1519
Binary files /dev/null and b/pixmaps/mail-send.png differ
diff --git a/src/gnome-cmd-main-win.cc b/src/gnome-cmd-main-win.cc
index 1f0ccd5c..77dc83d2 100644
--- a/src/gnome-cmd-main-win.cc
+++ b/src/gnome-cmd-main-win.cc
@@ -241,7 +241,7 @@ static void create_toolbar (GnomeCmdMainWin *mw)
         { "Paste", GTK_STOCK_PASTE, nullptr, nullptr, _("Paste"), (GCallback) edit_cap_paste },
         { "Delete", GTK_STOCK_DELETE, nullptr, nullptr, _("Delete"), (GCallback) file_delete },
         { "Edit", GTK_STOCK_EDIT,nullptr, nullptr, _("Edit (SHIFT for new document)"), (GCallback) file_edit 
},
-        { "Send", GTK_STOCK_EXECUTE, nullptr, nullptr, _("Send files"), (GCallback) file_sendto },
+        { "Send", MAILSEND_STOCKID, nullptr, nullptr, _("Send files"), (GCallback) file_sendto },
         { "Terminal", TERMINAL_STOCKID, nullptr, nullptr, _("Open terminal (SHIFT for root privileges)"), 
(GCallback) command_open_terminal__internal },
         { "Remote", GTK_STOCK_CONNECT, nullptr, nullptr, _("Remote Server"), (GCallback) connections_open },
         { "Drop", nullptr, nullptr, nullptr, _("Drop connection"), (GCallback) connections_close_current }
diff --git a/src/imageloader.cc b/src/imageloader.cc
index 3c5d750d..18cba5ce 100644
--- a/src/imageloader.cc
+++ b/src/imageloader.cc
@@ -497,6 +497,7 @@ static struct
 } stock_icons[] =
 {
     { PIXMAPS_DIR G_DIR_SEPARATOR_S "copy_file_names.xpm", COPYFILENAMES_STOCKID },
+    { PIXMAPS_DIR G_DIR_SEPARATOR_S "mail-send.png", MAILSEND_STOCKID },
     { PIXMAPS_DIR G_DIR_SEPARATOR_S "terminal.svg", TERMINAL_STOCKID }
 };
 
diff --git a/src/imageloader.h b/src/imageloader.h
index ab3e100e..a9c9f6fd 100644
--- a/src/imageloader.h
+++ b/src/imageloader.h
@@ -22,7 +22,8 @@
 #pragma once
 
 #define COPYFILENAMES_STOCKID "gnome-commander-copy-file-names"
-#define TERMINAL_STOCKID "gnome-commander-terminal"
+#define MAILSEND_STOCKID      "gnome-commander-mail-send"
+#define TERMINAL_STOCKID      "gnome-commander-terminal"
 
 #include "gnome-cmd-pixmap.h"
 


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