[gnome-commander] Adds missing src/gnome-cmd-block.cc from commit b177578



commit 2027752ee135111de22f22d96d59bfc9a64af4e2
Author: Uwe Scholz <uwescholz src gnome org>
Date:   Mon Sep 25 06:21:46 2017 +0200

    Adds missing src/gnome-cmd-block.cc from commit b177578

 src/gnome-cmd-block.cc |   45 +++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 45 insertions(+), 0 deletions(-)
---
diff --git a/src/gnome-cmd-block.cc b/src/gnome-cmd-block.cc
new file mode 100644
index 0000000..732bf52
--- /dev/null
+++ b/src/gnome-cmd-block.cc
@@ -0,0 +1,45 @@
+/** 
+ * @file block.cc
+ * @copyright (C) 2001-2006 Marcus Bjurman\n
+ * @copyright (C) 2007-2012 Piotr Eljasiak\n
+ * @copyright (C) 2013-2017 Uwe Scholz\n
+ *
+ * @copyright This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * @copyright This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * @copyright You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
+ */
+
+#include <config.h>
+#include <libintl.h>
+#include <locale.h>
+#include <stdio.h>
+
+using namespace std;
+
+#define _(String) gettext (String)
+
+int main (int argc, char **argv)
+{
+    setlocale (LC_ALL, "");
+    bindtextdomain (PACKAGE, DATADIR "/locale");
+    textdomain (PACKAGE);
+    printf ("---------------------------------------------------------------\n");
+    printf (_("The program has now finished. Press Enter to close this window.\n"));
+
+    FILE *fd = fdopen (0, "r");
+
+    getc(fd);
+    fclose(fd);
+
+    return 0;
+}


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