[gnome-mud] Update about dialog



commit b71d5496b3de30aa3c4ba512d36e88a5b81a24b5
Author: Mart Raudsepp <leio gentoo org>
Date:   Sat Jan 5 01:09:05 2019 +0200

    Update about dialog
    
    Display VCS tag description as version if not built from tarball.
    Add myself to copyrights.
    Update program comment to be what I believe to be more in GNOME style.
    Show license reference in about dialog.
    Fix homepage link. Also fix it for log capture HTML comment.
    Use stylized translatable program name "MUD" instead of "Gnome-Mud"
    as unused (typoed) "name" property.

 meson.build      | 11 ++++++++++-
 src/mud-log.c    |  2 +-
 src/mud-window.c | 10 ++++++----
 3 files changed, 17 insertions(+), 6 deletions(-)
---
diff --git a/meson.build b/meson.build
index d331d06..1a295ad 100644
--- a/meson.build
+++ b/meson.build
@@ -45,7 +45,8 @@ status = [
 config_h = configuration_data()
 
 set_defines = [
-  ['VERSION', meson.project_version()],
+  ['PACKAGE_URL', 'https://wiki.gnome.org/Apps/MUD'],
+  ['VERSION', '@VCS_TAG@'],
   ['GETTEXT_PACKAGE', meson.project_name()],
   ['LOCALEDIR', localedir]
 ]
@@ -59,6 +60,14 @@ config_h.set('ENABLE_GST', libgst_dep.found())
 config_h.set('ENABLE_MCCP', libz_dep.found())
 config_h.set('ENABLE_DEBUG_LOGGER', get_option('debug-logger'))
 
+vcs_identifier_h = vcs_tag(
+  input: configure_file(
+    output: 'config.h.in',
+    configuration: config_h
+  ),
+  output: 'config.h',
+)
+
 configure_file(
   output: 'config.h',
   configuration: config_h
diff --git a/src/mud-log.c b/src/mud-log.c
index 8b3f47c..94df827 100644
--- a/src/mud-log.c
+++ b/src/mud-log.c
@@ -1388,7 +1388,7 @@ static void
 mud_log_write_html_footer(MudLog *self)
 {
     fprintf(self->priv->logfile, "%s", "\t\t</pre>\n\t</body>\n</html>\n");
-    fprintf(self->priv->logfile, "<!-- Generated by Gnome-Mud %s http://live.gnome.org/GnomeMud -->\n", 
VERSION);
+    fprintf(self->priv->logfile, "<!-- Generated by Gnome-Mud " VERSION " " PACKAGE_URL " -->\n");
 
     fsync(fileno(self->priv->logfile));
 }
diff --git a/src/mud-window.c b/src/mud-window.c
index 06f2ca6..9f0ee06 100644
--- a/src/mud-window.c
+++ b/src/mud-window.c
@@ -810,9 +810,10 @@ mud_window_about_cb(GtkWidget *widget, MudWindow *self)
     };
 
     static const gchar copyright[] = "Copyright \xc2\xa9 1998-2005 Robin Ericsson\n"
-                                     "Copyright \xc2\xa9 2005-2009 Les Harris";
+                                     "Copyright \xc2\xa9 2005-2009 Les Harris\n"
+                                     "Copyright \xc2\xa9 2006-2019 Mart Raudsepp";
 
-    static const gchar comments[] = N_("A Multi-User Dungeon (MUD) client for GNOME");
+    static const gchar comments[] = N_("Connect to Multi-User Dungeons");
 
     GdkPixbuf *logo = gtk_icon_theme_load_icon(gtk_icon_theme_get_default(), "gnome-mud",
             128, GTK_ICON_LOOKUP_FORCE_SVG, NULL);
@@ -823,11 +824,12 @@ mud_window_about_cb(GtkWidget *widget, MudWindow *self)
             "comments", _(comments),
             "copyright", copyright,
             "documenters", documenters,
+            "license-type", GTK_LICENSE_GPL_2_0,
             "logo", logo,
+            "program-name", _("MUD"),
             "translator-credits", _("translator-credits"),
             "version", VERSION,
-            "website", "http://live.gnome.org/GnomeMud";,
-            "name", "Gnome-Mud",
+            "website", PACKAGE_URL,
             NULL);
 
     if(logo)


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