]> git.street.me.uk Git - andy/viking.git/commitdiff
About dialog filled with AUTHORS file
authorGuilhem Bonnefille <guilhem.bonnefille@gmail.com>
Tue, 13 Feb 2007 19:47:23 +0000 (19:47 +0000)
committerGuilhem Bonnefille <guilhem.bonnefille@gmail.com>
Tue, 13 Feb 2007 19:47:23 +0000 (19:47 +0000)
AUTHORS
ChangeLog
src/Makefile.am
src/dialog.c

diff --git a/AUTHORS b/AUTHORS
index c597abb1818f56ae1afb5ef56c75687174cb569c..16b19f4ec4b60e1a0355903de349ba7b3e4f0991 100644 (file)
--- a/AUTHORS
+++ b/AUTHORS
@@ -1,7 +1,11 @@
+Author:
 Evan Battaglia <gtoevan@gmx.net> ** Concept and main design/coding
+
+Contributors:
 Alex Foobarian <foobarian@gmail.com> ** DND, icons, various other features/bugfixes
 Guilhem BONNEFILLE  <guilhem.bonnefille@gmail.com> ** Autotools and releases
-Quy Tonthat <qtonthat@gmail.com> ** Many improves
 Jocelyn Jaubert <jocelyn.jaubert@gmail.com> ** Track Properties dialog improves
+Quy Tonthat <qtonthat@gmail.com> ** Many improves
+Reid Priedhorsky <reid@reidster.net> ** Patches and design
 
 Few other bugfixes/minor patches from various contributors. See ChangeLog for details.
index 4896be439dad061956151c6780f2908f9240ecd4..6bb45a6d7e06fe15d0ce10437fbefe04a9eb5c68 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -3,6 +3,8 @@ Guilhem Bonnefille <guilhem.bonnefille@gmail.com>
        * src/vikwindow.c: remove URL and version number from window title
        * src/dialog.c: add URL and use dynamic information for version
        * AUTHORS, src/dialog.c: update contributors list
+       * AUTHORS, src/dialog.c, src/Makefile.am: About dialog filled with
+       AUTHORS file
 
 2007-02-07
 Quy Tonthat <qtonthat@gmail.com>:
index 89cc866c30d74e865f60fdc2cae3b173daeecbc4..1a1988e61394dc77a1fc51bb509c196bdb310ec7 100644 (file)
@@ -5,6 +5,14 @@ SUBDIRS = icons
 
 bin_PROGRAMS = viking
 
+authors.h: ../AUTHORS
+       rm -f $@
+       echo "/* Generated file. */" >> $@
+       echo "#define AUTHORS \\" >> $@
+       sed -e "s/ \*\*.*//" -e 's/^/"/' -e 's/$$/\\n"\\/' $< >> $@
+
+BUILT_SOURCES = authors.h
+
 viking_SOURCES = main.c \
        modules.h modules.c \
        menu.xml.h \
@@ -17,6 +25,7 @@ viking_SOURCES = main.c \
        gpsmapper.c gpsmapper.h \
        gpspoint.c gpspoint.h \
        file.c file.h \
+       authors.h \
        dialog.c dialog.h \
        http.c http.h \
        viktreeview.c viktreeview.h \
index e63b113c67a2bdab7fbfaaf3aa0f65abbe0e6698..0eb91c48e1088a3107698438c2b390138d21efd2 100644 (file)
@@ -23,6 +23,7 @@
 #include "thumbnails.h"
 #include "garminsymbols.h"
 #include "degrees_converters.h"
+#include "authors.h"
 
 #include <stdlib.h>
 #include <string.h>
@@ -585,16 +586,7 @@ void a_dialog_about ( GtkWindow *parent )
   while ((re = gtk_dialog_run ( GTK_DIALOG(msgbox))) != 3) {
     if (re==1) {
       /* creds */
-      a_dialog_info_msg(parent, 
-                       "Author:\n"
-                       "  Evan Battaglia <gtoevan@gmx.net>\n\n"
-                       "Contributors:\n"
-                       "  Alex Foobarian <foobarian@gmail.com>\n"
-                       "  Guilhem Bonnefille <guilhem.bonnefille@gmail.com>\n"
-                       "  Jocelyn Jaubert <jocelyn.jaubert@gmail.com>\n"
-                       "  Quy Tonthat <qtonthat@gmail.com>\n"
-                       "  Reid Priedhorsky <reid@reidster.net>\n"
-                       );
+      a_dialog_info_msg(parent, AUTHORS);
     }
     if (re==2) {
       a_dialog_info_msg(parent, "\n\n"