/ src / about.c
about.c
  1  /*
  2      Gpredict: Real-time satellite tracking and orbit prediction program
  3  
  4      Copyright (C)  2001-2019  Alexandru Csete, OZ9AEC.
  5  
  6      Comments, questions and bugreports should be submitted via
  7      http://sourceforge.net/projects/gpredict/
  8      More details can be found at the project home page:
  9  
 10              http://gpredict.oz9aec.net/
 11   
 12      This program is free software; you can redistribute it and/or modify
 13      it under the terms of the GNU General Public License as published by
 14      the Free Software Foundation; either version 2 of the License, or
 15      (at your option) any later version.
 16    
 17      This program is distributed in the hope that it will be useful,
 18      but WITHOUT ANY WARRANTY; without even the implied warranty of
 19      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 20      GNU General Public License for more details.
 21    
 22      You should have received a copy of the GNU General Public License
 23      along with this program; if not, visit http://www.fsf.org/
 24  */
 25  #ifdef HAVE_CONFIG_H
 26  #  include <build-config.h>
 27  #endif
 28  #include <gtk/gtk.h>
 29  #include <glib/gi18n.h>
 30  
 31  #include "about.h"
 32  #include "compat.h"
 33  
 34  
 35  const gchar *authors[] = {
 36      "Alexandru Csete, OZ9AEC, with contributions from:",
 37      "",
 38      "A. Maitland Bottoms, AA4HS",
 39      "Alan Moffet, KE7IJZ",
 40      "Baris Dinc, TA7W",
 41      "Charles Suprin, AA1VS",
 42      "Dale Mellor",
 43      "Daniel Estevez, EA4GPZ",
 44      "Dave Hines",
 45      "David Cureton",
 46      "David VK5DG",
 47      "Fabian P. Schmidt",
 48      "Gisle Vanem",
 49      "Henry Hallam",
 50      "Ilias Daradimos",
 51      "Jan Simon, DL2ZXA",
 52      "Jason Uher",
 53      "Joachim Euchner",
 54      "John Magliacane, KD2BD",
 55      "Libre Space Foundation",
 56      "Lloyd Brown",
 57      "LongnoseRob, JI1MNC",
 58      "Marcel Cimander",
 59      "Mario Haustein",
 60      "Martin Pool",
 61      "Matthew Alberti, KM4EXS",
 62      "Michael Black",
 63      "Michael Tatarinov",
 64      "Mirko Caserta",
 65      "Nate Bargmann, N0NB",
 66      "Neoklis Kyriazis, 5B4AZ",
 67      "Nicholas DeCicco",
 68      "Patrick Dohmen, DL4PD",
 69      "Patrick Strasser, OE6PSE",
 70      "Paul Schulz, VK5FPAW",
 71      "Phil Ashby, 2E0IPX",
 72      "S. R. Sampson",
 73      "Satoshi Yasuda, 7M3TJZ",
 74      "Stefan Lobas",
 75      "Stephane Fillod",
 76      "Tom Jones",
 77      "T.S. Kelso",
 78      "Valentin Yakovenkov",
 79      "William J Beksi, KC2EXL",
 80      "Xavier Crehueras, EB3CZS",
 81      "Yaroslav Stavnichiy",
 82      "Yasushi SHOJI",
 83      "",
 84      "Imagery:",
 85      "Most of the maps originate from NASA Visible Earth",
 86      "see website http://visibleearth.nasa.gov/",
 87      NULL
 88  };
 89  
 90  extern GtkWidget *app;
 91  
 92  void about_dialog_create()
 93  {
 94      GtkWidget      *dialog;
 95      GdkPixbuf      *icon;
 96      gchar          *iconfile;
 97  
 98      dialog = gtk_about_dialog_new();
 99      gtk_window_set_transient_for(GTK_WINDOW(dialog), GTK_WINDOW(app));
100      gtk_about_dialog_set_program_name(GTK_ABOUT_DIALOG(dialog), _("Gpredict"));
101      gtk_about_dialog_set_version(GTK_ABOUT_DIALOG(dialog), VERSION);
102      gtk_about_dialog_set_copyright(GTK_ABOUT_DIALOG(dialog),
103                                     _("Copyright (C) 2001-2019 Alexandru Csete OZ9AEC and contributors"));
104      gtk_about_dialog_set_website(GTK_ABOUT_DIALOG(dialog),
105                                   "http://gpredict.oz9aec.net/");
106      gtk_about_dialog_set_license_type(GTK_ABOUT_DIALOG(dialog),
107                                        GTK_LICENSE_GPL_2_0);
108      iconfile = logo_file_name("gpredict_icon_color.svg");
109      icon = gdk_pixbuf_new_from_file_at_size(iconfile, 128, 128, NULL);
110      gtk_about_dialog_set_logo(GTK_ABOUT_DIALOG(dialog), icon);
111      gtk_window_set_icon_from_file(GTK_WINDOW(dialog), iconfile, NULL);
112      g_free(iconfile);
113      g_object_unref(icon);
114      gtk_about_dialog_set_authors(GTK_ABOUT_DIALOG(dialog), authors);
115      gtk_about_dialog_set_translator_credits(GTK_ABOUT_DIALOG(dialog),
116                                              _("translator-credits"));
117      gtk_dialog_run(GTK_DIALOG(dialog));
118      gtk_widget_destroy(dialog);
119  }