~gpredict-team/gpredict/gpredict-packaging

« back to all changes in this revision

Viewing changes to src/about.c

  • Committer: Jan Simon
  • Date: 2011-12-04 19:31:47 UTC
  • Revision ID: jan.simon@gmx.de-20111204193147-qhwjxglv1f4i4442
rules: added autogen. Updated translation files

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2
 
/*
3
 
    Gpredict: Real-time satellite tracking and orbit prediction program
4
 
 
5
 
    Copyright (C)  2001-2011  Alexandru Csete, OZ9AEC.
6
 
 
7
 
    Authors: Alexandru Csete <oz9aec@gmail.com>
8
 
 
9
 
    Comments, questions and bugreports should be submitted via
10
 
    http://sourceforge.net/projects/gpredict/
11
 
    More details can be found at the project home page:
12
 
 
13
 
            http://gpredict.oz9aec.net/
14
 
 
15
 
    This program is free software; you can redistribute it and/or modify
16
 
    it under the terms of the GNU General Public License as published by
17
 
    the Free Software Foundation; either version 2 of the License, or
18
 
    (at your option) any later version.
19
 
  
20
 
    This program is distributed in the hope that it will be useful,
21
 
    but WITHOUT ANY WARRANTY; without even the implied warranty of
22
 
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
23
 
    GNU General Public License for more details.
24
 
  
25
 
    You should have received a copy of the GNU General Public License
26
 
    along with this program; if not, visit http://www.fsf.org/
27
 
*/
28
 
#include <gtk/gtk.h>
29
 
#include <glib/gi18n.h>
30
 
#ifdef HAVE_CONFIG_H
31
 
#  include <build-config.h>
32
 
#endif
33
 
#include "gpredict-url-hook.h"
34
 
#include "compat.h"
35
 
#include "about.h"
36
 
 
37
 
 
38
 
const gchar *authors[] = {
39
 
    "Alexandru Csete, OZ9AEC (design and development)",
40
 
    "",
41
 
    "Contributors:",
42
 
    "David VK5DG (Transponder data files)",
43
 
    "Charles Suprin, AA1VS (Various multithread fixes)",
44
 
    "Valentin Yakovenkov (Windows build)",
45
 
    "Bruce Cowan (Gio port of TLE updater)",
46
 
    "Damon Chaplin (GooCanvas)",
47
 
    "Dr. T.S. Kelso (SGP4/SDP4 algorithms)",
48
 
    "John A. Magliacane, KD2BD (prediction code)",
49
 
    "Neoklis Kyriazis, 5B4AZ (SGP4/SDP4 in C)",
50
 
    "William J Beksi, KC2EXL (GtkSatMap)",
51
 
    "Stephane Fillod (Rig controller and locator.c)",
52
 
    "Nate Bargmann (locator.c)",
53
 
    "Dave Hines (locator.c)",
54
 
    "Mirko Caserta (locator.c)",
55
 
    "S. R. Sampson (locator.c)",
56
 
    "Paul Schulz (various patches)",
57
 
    "",
58
 
    "Imagery:",
59
 
    "Most of the maps originate from NASA Visible Earth",
60
 
    "see http://visibleearth.nasa.gov/",
61
 
    NULL
62
 
};
63
 
 
64
 
 
65
 
const gchar license[] = N_("Copyright (C) 2001-2011 Alexandru Csete OZ9AEC and contributors.\n"\
66
 
                           "Contact: oz9aec at googlemail.com\n\n"\
67
 
                           "Gpredict is free software; you can redistribute it and "\
68
 
                           "mofdify it under the terms of the GNU General Public License "\
69
 
                           "as published by the Free Software Foundation; either version 2 "\
70
 
                           "of the License, or (at your option) any later version.\n\n"\
71
 
                           "This program is distributed free of charge in the hope that it will "\
72
 
                           "be useful, but WITHOUT ANY WARRANTY; without even the implied "\
73
 
                           "warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. "\
74
 
                           "See the GNU Library General Public License for more details.\n\n"\
75
 
                           "You should have received a copy of the GNU General Public License "\
76
 
                           "along with this program (see Help->License). Otherwise you can find "\
77
 
                           "a copy on the FSF "\
78
 
                           "website http://www.fsf.org/licensing/licenses/gpl.html or you can "\
79
 
                           "write to the\n\n"
80
 
                           "Free Software Foundation, Inc.\n"\
81
 
                           "59 Temple Place - Suite 330\n"
82
 
                           "Boston\n"\
83
 
                           "MA 02111-1307\n"
84
 
                           "USA.\n");
85
 
 
86
 
 
87
 
 
88
 
/** \brief Create and run the gpredict about dialog. */
89
 
void about_dialog_create ()
90
 
{
91
 
    GtkWidget *dialog;
92
 
    GdkPixbuf *icon;
93
 
    gchar     *iconfile;
94
 
 
95
 
 
96
 
    dialog = gtk_about_dialog_new ();
97
 
    gtk_about_dialog_set_name (GTK_ABOUT_DIALOG (dialog), _("GPREDICT"));
98
 
    gtk_about_dialog_set_version (GTK_ABOUT_DIALOG (dialog), VERSION);
99
 
    gtk_about_dialog_set_copyright (GTK_ABOUT_DIALOG (dialog),
100
 
                                    _("Copyright (C) 2001-2011 Alexandru Csete OZ9AEC\n\n"\
101
 
                                      "Gpredict is available free of charge from:"));
102
 
    gtk_about_dialog_set_url_hook (gpredict_url_hook_cb, NULL, NULL);
103
 
    gtk_about_dialog_set_website (GTK_ABOUT_DIALOG (dialog),
104
 
                                  "http://gpredict.oz9aec.net/");
105
 
/*     gtk_about_dialog_set_website_label (GTK_ABOUT_DIALOG (dialog), */
106
 
/*                                         _("Gpredict Website")); */
107
 
    gtk_about_dialog_set_license (GTK_ABOUT_DIALOG (dialog), _(license));
108
 
    gtk_about_dialog_set_wrap_license (GTK_ABOUT_DIALOG (dialog), TRUE);
109
 
    iconfile = icon_file_name ("gpredict-icon.png");
110
 
    icon = gdk_pixbuf_new_from_file (iconfile, NULL);
111
 
    gtk_about_dialog_set_logo (GTK_ABOUT_DIALOG (dialog), icon);
112
 
    g_free (iconfile);
113
 
    g_object_unref (icon);
114
 
 
115
 
    gtk_about_dialog_set_authors (GTK_ABOUT_DIALOG (dialog), authors);
116
 
    gtk_about_dialog_set_translator_credits (GTK_ABOUT_DIALOG (dialog),
117
 
                                             _("translator-credits"));
118
 
 
119
 
    gtk_dialog_run (GTK_DIALOG (dialog));
120
 
 
121
 
    gtk_widget_destroy (dialog);
122
 
}