Simplify options parsing code
[emu8051.git] / src / gtk / helpmenu.c
index 4a8d9dc..50ddd4a 100644 (file)
 #include "messagebox.h"
 #include "helpmenu.h"
 
-#define PACKAGE_COPYRIGHT "(c) Hugo Villeneuve"
-
 static void
 HelpCommandsEvent(gchar *string)
 {
+       (void) string; /* Remove compiler warning about unused variables. */
+
        ShowMessage("Command Line Options", COMMAND_LINE_OPTIONS,
                    GTK_JUSTIFY_LEFT, MESSAGE_DIALOG_FIXED_FONT);
 }
@@ -51,6 +51,10 @@ HelpCommandsEvent(gchar *string)
 static void
 HelpAboutEvent(GtkWidget *widget, gpointer data)
 {
+       /* Remove compiler warning about unused variables. */
+       (void) widget;
+       (void) data;
+
        const char *authors[] = {
                "Hugo Villeneuve <hugo@hugovil.com>",
                "Jonathan St-AndrĂ©",
@@ -81,7 +85,7 @@ HelpAboutEvent(GtkWidget *widget, gpointer data)
                "title", "About Dialog",
                "version", PACKAGE_VERSION,
                "logo-icon-name", PACKAGE_TARNAME,
-               "comments", get_package_description(),
+               "comments", PACKAGE_DESCRIPTION,
                "authors", authors,
                "website", PACKAGE_URL,
                "copyright", PACKAGE_COPYRIGHT,