Beispiel #1
0
void
gdict_show_about_dialog (GtkWidget *parent)
{
  const gchar *authors[] = {
    "Mike Hughes <*****@*****.**>",
    "Spiros Papadimitriou <*****@*****.**>",
    "Bradford Hovinen <*****@*****.**>",
    "Vincent Noel <*****@*****.**>",
    "Emmanuele Bassi <*****@*****.**>",
    NULL
  };

  const gchar *documenters[] = {
    "Sun GNOME Documentation Team <*****@*****.**>",
    "John Fleck <*****@*****.**>",
    "Emmanuele Bassi <*****@*****.**>",
    NULL
  };

  const gchar *translator_credits = _("translator-credits");
  const gchar *copyright = "Copyright \xc2\xa9 2005-2006 Emmanuele Bassi";
  const gchar *comments = _("Look up words in dictionaries");
  
  g_return_if_fail (GTK_IS_WIDGET (parent));
  
  gtk_show_about_dialog (GTK_IS_WINDOW (parent) ? GTK_WINDOW (parent) : NULL,
  			 "name", _("Dictionary"),
  			 "version", VERSION,
  			 "copyright", copyright,
  			 "comments", comments,
  			 "authors", authors,
  			 "documenters", documenters,
  			 "translator-credits", translator_credits,
  			 "logo-icon-name", "accessories-dictionary",
  			 "license-type", GTK_LICENSE_GPL_2_0,
			 "screen", gtk_widget_get_screen (parent),
  			 NULL);
}
Beispiel #2
0
static void
verb_HelpAbout (MateComponentUIComponent *uic, void *data, const char *path)
{
	MateComponentWindow *window = (MateComponentWindow *) data;

	static const gchar *authors[] = {
		"Dan Siemon <*****@*****.**>",
		"Rodrigo Moya <*****@*****.**>",
		"Patanjali Somayaji <*****@*****.**>",
		NULL
	};

	gtk_show_about_dialog (GTK_WINDOW (window),
		      "name", _("MateComponent Browser"),
		      "version", VERSION,
		      "copyright", _("Copyright 2001, The MATE Foundation"),
		      "comments", _("MateComponent component browser"),
		      "authors", authors,
		      "documenters", NULL,
		      "translator-credits", _("translator-credits"),
		      "logo-icon-name", "gtk-about",
		      NULL);
}
static void
popup_about_cb (gpointer   callback_data,
		guint      action,
		GtkWidget *widget)
{
	gint   i;
	gchar *authors[] = {
		N_("Written by Richard Hult <*****@*****.**>"),
		N_("Eye candy added by Anders Carlsson"),
		NULL
	};

	for (i = 0; authors [i]; i++)
		authors [i] = _(authors [i]);

	gtk_show_about_dialog (NULL,
			       "authors", authors,
			       "comments",  _("A computer break reminder."),
			       "logo-icon-name", "typing-monitor",
			       "translator-credits", _("translator-credits"),
			       "version", VERSION,
			       NULL);
}
Beispiel #4
0
G_MODULE_EXPORT gboolean about_menu_handler(GtkWidget *widget, gpointer data)
{
	extern GtkWidget *main_window;
#if GTK_MINOR_VERSION >= 8
	if (gtk_minor_version >= 8)
	{
		gchar *authors[] = {"David Andruczyk",NULL};
		gchar *artists[] = {"Dale Anderson",NULL};
		gtk_show_about_dialog(GTK_WINDOW(main_window),
				"name","MegaTunix Gauge Designer",
				"version",VERSION,
				"copyright","David J. Andruczyk(2012)",
				"comments","MegaTunix Gauge Designer is a tool to design custom Gauges for the MegaTunix MegaSquirt tuning software",
				"license","GNU GPL v2",
				"website","http://megatunix.sourceforge.net",
				"authors",authors,
				"artists",artists,
				"documenters",authors,
				NULL);
	}
#endif
	return TRUE;
}
Beispiel #5
0
void
pragha_application_about_dialog (PraghaApplication *pragha)
{
	GtkWidget *mainwindow;

	mainwindow = pragha_application_get_window (pragha);

	const gchar *authors[] = {
		"sujith ( [email protected] )",
		"matias ( [email protected] )",
		NULL};

	gtk_show_about_dialog(GTK_WINDOW(mainwindow),
	                      "logo-icon-name", "pragha",
	                      "authors", authors,
	                      "translator-credits", _("translator-credits"),
	                      "comments", "A lightweight GTK+ music player",
	                      "copyright", "(C) 2007-2009 Sujith\n(C) 2009-2015 Matias",
	                      "license-type", GTK_LICENSE_GPL_3_0,
	                      "name", PACKAGE_NAME,
	                      "version", PACKAGE_VERSION,
	                      NULL);
}
Beispiel #6
0
static void
about_cb (GSimpleAction * action, GVariant * parameter, gpointer data)
{
  const gchar *authors[] = {
    N_("GNOME version (1998):"),
    "Scott Heavner",
    "",
    N_("Console version (1992):"),
    "Orest Zborowski",
    "",
    N_("Colors game and multi-level AI (2006):"),
    "Geoff Buchan",
    NULL
  };

  const gchar *documenters[] = {
    "Scott D Heavner",
    "Callum McKenzie",
    NULL
  };

  gtk_show_about_dialog (GTK_WINDOW (window),
			 "name", appName,
			 "version", VERSION,
			 "copyright", "Copyright © 1998–2008 "
			 "Free Software Foundation, Inc.",
			 "license-type", GTK_LICENSE_GPL_2_0,
			 "comments", _("A variation on poker with "
				       "dice and less money."),
			 "authors", authors,
			 "documenters", documenters,
			 "translator-credits", _("translator-credits"),
			 "logo-icon-name", "org.gnome.Tali",
			 "website",
			 "https://wiki.gnome.org/Apps/Tali",
			 NULL);
}
Beispiel #7
0
static void
about_cb(GSimpleAction *action, GVariant *parameter, gpointer user_data)
{
    const gchar *authors[] = {
        "Gergely Polonkai <*****@*****.**>",
        "Jean-André Santoni <*****@*****.**>",
        NULL
    };
    const gchar *artists[] = {
        "Ákos Szimmer <*****@*****.**>",
        NULL
    };
    const gchar *translator_credits = _("translator_credits");
    AgApp       *app                = AG_APP(user_data);

    /* i18n: Please don't translate "Astrognome" (it's marked as translatable
     * for transliteration only */
    gtk_show_about_dialog(
            gtk_application_get_active_window(GTK_APPLICATION(app)),
            "name", _("Astrognome"),
            "version", PACKAGE_VERSION,
            "comments", _("Astrologers' software for GNOME"),
            "authors", authors,
            "artists", artists,
            "translator_credits", ((strcmp(
                                           translator_credits,
                                           "translator_credits"
                                       ) != 0)
                                   ? translator_credits
                                   : NULL),
            "website", PACKAGE_URL,
            "website-label", _("Astrognome Website"),
            "license-type", GTK_LICENSE_GPL_3_0,
            "logo-icon-name", PACKAGE_TARNAME,
            NULL
        );
}
Beispiel #8
0
static void on_about ()
{
	gchar * authors[] = {"Thura Hlaing <*****@*****.**>", NULL};

	const char * license[] = {
		N_("This program is free software; you can redistribute it and/or modify "
		   "it under the terms of the GNU General Public License as published by "
		   "the Free Software Foundation; either version 3 of the License, or "
		   "(at your option) any later version.\n"),
		N_("This program is distributed in the hope that it will be useful, "
		   "but WITHOUT ANY WARRANTY; without even the implied warranty of "
                   "MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the "
		   "GNU General Public License for more details.\n"),
		N_("You should have received a copy of the GNU General Public License "
                   "along with this program; if not, write to the Free Software "
		   "Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.")
	};

	char * license_trans;

	license_trans = g_strconcat (_(license[0]), "\n", _(license[1]), "\n",
								 _(license[2]), "\n", NULL);

	gtk_show_about_dialog (GTK_WINDOW(window),
						   "authors", authors,
						   "program-name", "Rookie",
						   "comments", _("A download manager for Gnome"),
						   "copyright", "Copyright © 2010-2011 Thura Hlaing",
						   "license", license_trans,
						   "logo-icon-name", "rookie",
						   "wrap-license", TRUE,
						   "version", PACKAGE_VERSION,
						   "website", "https://launchpad.net/rookie",
						   NULL);

	g_free (license_trans);
}
Beispiel #9
0
static gint menuHelpAbout_CB(GtkWidget *widget, gpointer data)
{
	const gchar *authors[] = 
	{
		"EmmeBi",
		NULL
	 };
	const gchar *license =
		"Licensed under the Academic Free License Version 1.0\n"
		"The complete license description is contained in the\n"
		"licence.template file included in this distribution in\n"
		"$YARP_ROOT/conf. Please refer to this file for complete\n"
		"information about the licensing of YARP\n"
		"\n"
		"DISCLAIMERS: LICENSOR WARRANTS THAT THE COPYRIGHT IN AND TO THE\n"
		"SOFTWARE IS OWNED BY THE LICENSOR OR THAT THE SOFTWARE IS\n"
		"DISTRIBUTED BY LICENSOR UNDER A VALID CURRENT LICENSE. EXCEPT AS\n"
		"EXPRESSLY STATED IN THE IMMEDIATELY PRECEDING SENTENCE, THE\n"
		"SOFTWARE IS PROVIDED BY THE LICENSOR, CONTRIBUTORS AND COPYRIGHT\n"
		"OWNERS AS IS, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED\n"
		"INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n"
		"FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO\n"
		"EVENT SHALL THE LICENSOR, CONTRIBUTORS OR COPYRIGHT OWNERS BE\n"
		"LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN\n"
		"ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\n"
		"ONNECTION WITH THE SOFTWARE.\n";

	gtk_show_about_dialog(GTK_WINDOW(mainWindow),
							"name", "gview",
							"version", "0.9",
							"license", license,
							"website", "http://www.liralab.it",
							"comments", "Program to display images received on a port.",
							"authors", authors,
							NULL);
	return TRUE;
}
static void
help_about_action (GtkAction *action,
                   gpointer   user_data)
{
	GPInstructServerWindow *window = GPINSTRUCT_SERVER_WINDOW (user_data);

	static gchar *authors[] = {"Arnel A. Borja <*****@*****.**>", NULL};
	gchar *license = _(
	                   "This program is free software; you can redistribute it and/or modify "
	                   "it under the terms of the GNU General Public License as published by "
	                   "the Free Software Foundation; either version 3 of the License, or "
	                   "(at your option) any later version.\n"
	                   "\n"
	                   "This program is distributed in the hope that it will be useful, "
	                   "but WITHOUT ANY WARRANTY; without even the implied warranty of "
	                   "MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the "
	                   "GNU General Public License for more details.\n"
	                   "\n"
	                   "You should have received a copy of the GNU General Public License along "
	                   "with this program.  If not, see <http://www.gnu.org/licenses/>.");

	gtk_show_about_dialog (GTK_WINDOW (window),
		                  "program-name", _("GPInstruct Server"),
		                  "version", PACKAGE_VERSION,
		                  "title", _("About GPInstruct Server"),
		                  "comments", _("Serve GPInstruct projects through a local network"),
		                  "website", PACKAGE_URL,
		                  "copyright", _("Copyright (c) 2011-2012  Arnel A. Borja"),
#if GTK_MAJOR_VERSION >= 3
		                  "license-type", GTK_LICENSE_GPL_3_0,
#endif
		                  "license", license,
		                  "wrap-license", TRUE,
		                  "authors", authors,
		                  "logo-icon-name", "gpinstruct-server",
		                  NULL);
}
Beispiel #11
0
void
gmdb_about_cb(GtkWidget *button, gpointer data)
{
const gchar *authors[] = {
	"Brian Bruns",
	"Jeff Smith",
	"Filip Van Raemdonck",
	"Bernhard Reiter",
	NULL
};
const gchar *documenters[] = {
	"Brian Bruns",
	NULL
};
GtkWidget *parent;
GdkPixbuf *pixbuf=NULL;

	parent = gtk_widget_get_toplevel (button);
	if (!GTK_WIDGET_TOPLEVEL (parent))
		parent = NULL;

	if (!pixbuf)
		pixbuf = gdk_pixbuf_new_from_file (GMDB_ICONDIR "logo.xpm", NULL);

  	gtk_show_about_dialog (parent,
   		"authors", authors,
		"comments", _("GNOME MDB Viewer is a grapical interface to "
			"MDB Tools. It lets you view and export data and schema "
			"from MDB files produced by MS Access 97/2000/XP/2003."),
		"copyright", _("Copyright 2002-2006 Brian Bruns and others"),
		"documenters", documenters,
		"logo", pixbuf,
		"name", _("GNOME MDB Viewer"),
		"version", MDB_VERSION_NO,
		"website", "http://mdbtools.sourceforge.net/",
		NULL);
}
Beispiel #12
0
void about_action_callback(GtkAction *action, LmplayerObject *lmplayer)
{
	char *backend_version, *description;

	const char *authors[] =
	{
		"Kelven Xu <*****@*****.**>",
		NULL
	};
	const char *artists[] = { "Kelven Xu <*****@*****.**>", NULL };
	const char *documenters[] = { "Kelven Xu <*****@*****.**>", NULL };
	char *license = lmplayer_interface_get_license ();

	backend_version = bacon_video_widget_get_backend_name (lmplayer->bvw);
	/* This lists the back-end type and version, such as
	 * Movie Player using GStreamer 0.10.1 */
	description = g_strdup_printf (_("Movie Player using %s"), backend_version);

	gtk_show_about_dialog (GTK_WINDOW (lmplayer->win),
				     "version", VERSION,
				     "copyright", _("Copyright \xc2\xa9 2007-2010 Kelven Xu"),
				     "comments", description,
				     "authors", authors,
				     "documenters", documenters,
				     "artists", artists,
				     "translator-credits", _("translator-credits"),
				     "logo-icon-name", "lmplayer",
				     "license", license,
				     "wrap-license", TRUE,
				     "website-label", _("Lmplayer Website"),
				     "website", "http://www.lmplayer.org/",
				     NULL);

	g_free (backend_version);
	g_free (description);
	g_free (license);
}
Beispiel #13
0
void
myre_show_about (GtkWidget *parent)
{
    if(!parent) {
        parent = gtk_about_dialog_new();
    }

    const gchar *authors[] = {
        "Vobiscum <*****@*****.**>",
        "Special thanks to\n"\
        "dict.cn<www.dict.cn>\n"\
        "linux.die.net<linux.die.net>\n"\
        "wikipedia.org<wikipedia.org>\n"\
        "And reference.com et al.",
        NULL
    };

    const gchar *translator_credits = "translator-credits";
    const gchar *copyright = "Copyright \xc2\xa9 2013-2014 Vobiscum\nGPL v3";
    const gchar *comments = "Minimal GTK+ application providing access\nto online references";

    g_return_if_fail (GTK_IS_WIDGET (parent));

    gtk_show_about_dialog (GTK_WINDOW (parent),
                           "program-name", "Myre",
                           "version", VERSION,
                           "copyright", copyright,
                           "comments", comments,
                           "website", "https://github.com/vobiscum/myre",
                           "authors", authors,
                           "translator-credits", translator_credits,
                           /*"logo-icon-name", "about",*/
                           /*"license-type", "GPL",*/
                           "title", "About My Reference",
                           "screen", gtk_widget_get_screen (parent),
                           NULL);
}
Beispiel #14
0
static void window_menu_about(GtkAction* action, WindowMenu* window_menu)
{
	static const char* authors[] = {
		"Perberos <*****@*****.**>",
		"Steve Zesch <*****@*****.**>",
		"Stefano Karapetsas <*****@*****.**>",
		"Mark McLoughlin <*****@*****.**>",
		"George Lebl <*****@*****.**>",
		"Jacob Berkman <*****@*****.**>",
		NULL
	};

	const char* documenters[] = {
		"Sun GNOME Documentation Team <*****@*****.**>",
		NULL
	};

	char copyright[] = \
		"Copyright \xc2\xa9 2012-2016 MATE developers\n"
		"Copyright \xc2\xa9 2011 Perberos\n"
		"Copyright \xc2\xa9 2003 Sun Microsystems, Inc.\n"
		"Copyright \xc2\xa9 2001 Free Software Foundation, Inc.\n"
		"Copyright \xc2\xa9 2000 Helix Code, Inc.";

	gtk_show_about_dialog(GTK_WINDOW(window_menu->applet),
		"program-name", _("Window Selector"),
		"authors", authors,
		"comments", _("The Window Selector shows a list of all windows in a menu and lets you browse them."),
		"copyright", copyright,
		"documenters", documenters,
		"icon-name", WINDOW_MENU_ICON,
		"logo-icon-name", WINDOW_MENU_ICON,
		"translator-credits", _("translator-credits"),
		"version", VERSION,
		"website", "http://www.mate-desktop.org/",
		NULL);
}
Beispiel #15
0
void
gd_show_about_dialog (GtkWindow *parent)
{
  GApplication *app;

  const char *artists[] = {
    "Jakub Steiner <*****@*****.**>",
    NULL
  };

  const char *authors[] = {
    "Cosimo Cecchi <*****@*****.**>",
    "Florian Müllner <*****@*****.**>",
    "William Jon McCann <*****@*****.**>",
    "Bastien Nocera <*****@*****.**>",
    NULL
  };

  const char *app_id;

  app = g_application_get_default ();
  app_id = g_application_get_application_id (app);

  gtk_show_about_dialog (parent,
                         "artists", artists,
                         "authors", authors,
                         "translator-credits", _("translator-credits"),
                         "comments", _("A document manager application"),
                         "logo-icon-name", app_id,
                         "website", "https://wiki.gnome.org/Apps/Documents",
                         "copyright", "Copyright © 2011-2014 Red Hat, Inc.",
                         "license-type", GTK_LICENSE_GPL_2_0,
                         "version", PACKAGE_VERSION,
                         "wrap-license", TRUE,
                         NULL);
}
void
wck_about (XfcePanelPlugin *plugin, const gchar *icon_name)
{
    /* about dialog code. you can use the GtkAboutDialog
    * or the XfceAboutInfo widget */
    GdkPixbuf *icon;

    const gchar *auth[] =
    {
        "Alessio Piccoli <*****@*****.**>",
        "Cedric Leporcq <*****@*****.**>",
        "Felix Krull <*****@*****.**>",
        "Pavel Zlámal <*****@*****.**>",
        "",
        "This code is derived from 'Window Applets' from Andrej Belcijan.",
        "See http://gnome-look.org/content/show.php?content=103732 for details.",
        NULL
    };

    icon = xfce_panel_pixbuf_from_source(icon_name, NULL, 32);

    gtk_show_about_dialog (NULL,
            "logo", icon,
            "license", xfce_get_license_text(XFCE_LICENSE_TEXT_GPL),
            "version", PACKAGE_VERSION,
            "program-name", xfce_panel_plugin_get_display_name (plugin),
            "comments", xfce_panel_plugin_get_comment (plugin),
            "website", PLUGIN_WEBSITE,
            "copyright", "Copyright \302\251 2013-2015\n",
            "authors", auth,
            NULL );
    // TODO: add translators.

    if (icon)
        g_object_unref(G_OBJECT(icon) );
}
static void
action_about_cb (GtkAction *action,
                 GtkWindow *window)
{
	gchar *translator_credits;

	translator_credits = _("translator-credits");
	if (strcmp (translator_credits, "translator-credits") == 0)
		translator_credits = NULL;

	gtk_show_about_dialog (
		window,
		"program-name", "Libre Impuestos",
		"version", VERSION,
		"copyright", LIBRE_IMPUESTO_COPYRIGHT,
		"comments", _("Desktop application for filling forms Impuestos Nacionales Bolivia"),
		"website", LIBRE_IMPUESTO_WEBSITE,
		"website-label", _("Libre Impuesto Website"),
		"authors", authors,
		"documenters", documenters,
		"translator-credits", translator_credits,
		"logo-icon-name", "libre-impuesto",
		NULL);
}
Beispiel #18
0
void About(GtkWindow* pParent)
{
	const char *authors[] =
	{ "Allan <*****@*****.**>", NULL };
	const gchar *license[] =
	{ "This is free software; you can redistribute it and/or modify "
		"it under the terms of the GNU General Public License as published by "
		"the Free Software Foundation; either version 2 of the License, or "
		"(at your option) any later version.",
			"It is distributed in the hope that it will be useful, "
				"but WITHOUT ANY WARRANTY; without even the implied warranty of "
				"MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the "
				"GNU General Public License for more details.",
			"You should have received a copy of the GNU General Public License "
				"along with this; if not, write to the Free Software Foundation, Inc., "
				"51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA" };
	gchar *license_text = g_strjoin("\n\n", 
	_(license[0]), _(license[1]), _(license[2]), NULL);
	gtk_show_about_dialog(pParent, "name", PLUGIN_NAME, "comments", 
	PLUGIN_NAME, "program-name", PLUGIN_NAME, "version", VERSION, "authors", authors, "license",
			license_text, "wrap-license", TRUE, "translator-credits", _("translator-credits"), "logo-icon-name", PLUGIN_NAME, 
			NULL);
	g_free(license_text);
}
static void
action_about (GSimpleAction *action,
              GVariant *parameter,
              gpointer user_data)
{
  const gchar *authors[] = {
    "Emmanuele Bassi",
    "Jonathan Blandford",
    "Cosimo Cecchi",
    NULL
  };

  GList *windows = gtk_application_get_windows (GTK_APPLICATION (user_data));
  gtk_show_about_dialog (GTK_WINDOW (g_list_nth_data (windows, 0)),
                         "version", VERSION,
                         "authors", authors,
                         "program-name", _("Screenshot"),
                         "comments", _("Save images of your screen or individual windows"),
                         "logo-icon-name", "applets-screenshooter",
                         "translator-credits", _("translator-credits"),
                         "license-type", GTK_LICENSE_GPL_2_0,
                         "wrap-license", TRUE,
                         NULL);
}
Beispiel #20
0
/* Creates and shows the about box for gtranslator */
void
gtr_about_dialog (GtrWindow *window)
{
  static const gchar *authors[] = {
    N_("Current Maintainers"),
    "------------------------",
    "Daniel Garcia Moreno <*****@*****.**>",
    "",
    N_("Previous Developers"),
    "------------------------",
    "Seán de Búrca <*****@*****.**>",
    "Ignacio Casal Quinteiro <*****@*****.**>",
    "Pablo Sanxiao <*****@*****.**>",
    "Fatih Demir <*****@*****.**> (Founder)",
    "Ross Golder <*****@*****.**>",
    "Gediminas Paulauskas <*****@*****.**>",
    "Thomas Ziehmer <*****@*****.**>",
    "Peeter Vois <*****@*****.**>",
    "",
    N_("Contributors"),
    "------------------------",
    "Juan José Sánchez Penas <*****@*****.**>",
    "Christian Kirbach <*****@*****.**>",
    "Luca Ferreti <*****@*****.**>",
    "Jordi Mallach <*****@*****.**>",
    "Jonh Wendell <*****@*****.**>",
    "Baris Cicek <*****@*****.**>",
    "Francisco Puga <*****@*****.**>",
    "Yuri Penkin",
    NULL
  };
  static const gchar *documenters[] = {
    "GNOME Documentation Project",
    "Abel Cheung <*****@*****.**>",
    "Emese Kovacs <*****@*****.**>",
    "Pablo Sanxiao <*****@*****.**>",
    NULL
  };

  static const gchar copyright[] =
    "Copyright © 1999-2008 Free Software Foundation, Inc.\n"
    "Copyright © 2007-2012 Ignacio Casal Quinteiro";

  static const gchar comments[] =
    N_("Translation file editing suite for localization of applications and libraries.");

  gtk_show_about_dialog (GTK_WINDOW (window),
                         "comments", _(comments),
                         "authors", authors,
                         "copyright", copyright,
                         "license-type", GTK_LICENSE_GPL_3_0,
                         "documenters", documenters,
                         "logo-icon-name", PACKAGE_APPID,
                         /*
                          * Note to translators: put here your name and email so it will show
                          * up in the "about" box
                          */
                         "translator-credits", _("translator-credits"),
                         "version", PACKAGE_VERSION,
                         "website", PACKAGE_URL,
                         "website-label", _("Translation Editor Web Site"),
                         NULL);

}
Beispiel #21
0
void
_gedit_cmd_help_about (GtkAction   *action,
		       GeditWindow *window)
{
	static const gchar * const authors[] = {
		"Alex Roberts",
		"Chema Celorio",
		"Evan Lawrence",
		"Federico Mena Quintero <*****@*****.**>",
		"Garrett Regier <*****@*****.**>",
		"Ignacio Casal Quinteiro <*****@*****.**>",
		"James Willcox <*****@*****.**>",
		"Jesse van den Kieboom <*****@*****.**>",
		"Paolo Borelli <*****@*****.**>",
		"Paolo Maggi <*****@*****.**>",
		"S\303\251bastien Wilmet <*****@*****.**>",
		"Steve Fr\303\251cinaux <*****@*****.**>",
		NULL
	};

	static const gchar * const documenters[] = {
		"Jim Campbell <*****@*****.**>",
		"Daniel Neel <*****@*****.**>",
		"Sun GNOME Documentation Team <*****@*****.**>",
		"Eric Baudais <*****@*****.**>",
		NULL
	};

	static const gchar copyright[] = "Copyright \xc2\xa9 1998-2014 - the gedit team";

	static const gchar comments[] = \
		N_("gedit is a small and lightweight text editor for the GNOME Desktop");

	GdkPixbuf *logo;
	const gchar *data_dir;
	gchar *logo_file;

	gedit_debug (DEBUG_COMMANDS);

	data_dir = gedit_dirs_get_gedit_data_dir ();
	logo_file = g_build_filename (data_dir,
				      "logo",
				      "gedit-logo.png",
				      NULL);
	logo = gdk_pixbuf_new_from_file (logo_file, NULL);
	g_free (logo_file);

	gtk_show_about_dialog (GTK_WINDOW (window),
			       "program-name", "gedit",
			       "authors", authors,
			       "comments", _(comments),
			       "copyright", copyright,
			       "license-type", GTK_LICENSE_GPL_2_0,
			       "documenters", documenters,
			       "logo", logo,
			       "translator-credits", _("translator-credits"),
			       "version", VERSION,
			       "website", "http://www.gedit.org",
			       "website-label", "www.gedit.org",
			       NULL);

	if (logo)
		g_object_unref (logo);
}
Beispiel #22
0
gint About_clicked(UNUSED GtkWidget *Button, UNUSED gpointer data) 
{
  gchar *authors[] = {
        "Roger Wolff <*****@*****.**>",
        "Bohdan Vlasyuk <*****@*****.**>",
        "Evgeniy Tretyak <*****@*****.**>",
        "John Thacker <*****@*****.**>",
        "Juha Takala",
        "David Sward <*****@*****.**>",
        "David Stone <*****@*****.**>",
        "Andrew Stesin",
        "Greg Stark <*****@*****.**>",
        "Robert Sparks <*****@*****.**>",
        "Mike Simons <*****@*****.**>",
        "Aaron Scarisbrick,",
        "Craig Milo Rogers <*****@*****.**>",
        "Antonio Querubin <*****@*****.**>",
        "Russell Nelson <*****@*****.**>",
        "Davin Milun <*****@*****.**>",
        "Josh Martin <*****@*****.**>",
        "Alexander V. Lukyanov <*****@*****.**>",
        "Charles Levert <*****@*****.**> ",
        "Bertrand Leconte <*****@*****.**>",
        "Anand Kumria",
        "Olav Kvittem <*****@*****.**>",
        "Adam Kramer <*****@*****.**> ",
        "Philip Kizer <*****@*****.**>",
        "Simon Kirby",
        "Christophe Kalt",
        "Steve Kann <*****@*****.**>",
        "Brett Johnson <*****@*****.**>",
        "Roland Illig <*****@*****.**>",
        "Damian Gryski <*****@*****.**>",
        "Rob Foehl <*****@*****.**>",
        "Mircea Damian",
        "Cougar <*****@*****.**>",
        "Brian Casey",
        "Andrew Brown <*****@*****.**>",
        "Bill Bogstad <*****@*****.**> ",
        "Marc Bejarano <*****@*****.**>",
        "Moritz Barsnick <*****@*****.**>",
        NULL
    };
  
  gtk_show_about_dialog(GTK_WINDOW(main_window)
    , "version", VERSION
    , "copyright", "Copyright \xc2\xa9 1997,1998  Matt Kimball"
    , "website", "http://www.bitwizard.nl/mtr/"
    , "authors", authors
    , "comments", "The 'traceroute' and 'ping' programs in a single network diagnostic tool."
    , "license",
"This program is free software; you can redistribute it and/or modify\n"
"it under the terms of the GNU General Public License version 2 as\n"
"published by the Free Software Foundation.\n"
"\n"
"This program is distributed in the hope that it will be useful,\n"
"but WITHOUT ANY WARRANTY; without even the implied warranty of\n"
"MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n"
"GNU General Public License for more details."
  , NULL);
  return TRUE;
}
Beispiel #23
0
/* Help->About */
void
action_about(GtkAction *action, I7App *app)
{
	/* TRANSLATORS: Help->About ; %s is the copyright year. */
	char *copyright = g_strdup_printf(_("Copyright 2006\u2013%s " /* UTF8 en-dash */
		"Philip Chimento (front end),\n"
	    "Graham Nelson et al. (compiler)."), COPYRIGHT_YEAR);
	/* Build the credits string in such a way that it's robust to changes and
	translations don't get invalidated every time someone is added */
	GString *builder = g_string_new(_("Inform written by:"));
	g_string_append(builder, "\n"
		"    Graham Nelson\n"
		"\n");
	g_string_append(builder, _("Glulx compiler written by:"));
	g_string_append(builder, "\n"
		"    Graham Nelson\n"
		"    Andrew Plotkin\n"
		"\n");
	g_string_append(builder, _("Inform front-end written by:"));
	g_string_append(builder, "\n"
		"    Philip Chimento\n"
		"\n");
	g_string_append(builder, _("Contributions by:"));
	g_string_append(builder, "\n"
		"    Adam Thornton\n"
		"    Alan de Smet\n"
		"    Bart Massey\n"
		"    Daniel Nilsson\n"
		"    David Leverton\n"
		"    Evil Tabby Cat\n"
		"    Eric Forgeot\n"
		"    Jonathan Liu\n"
		"    Leandro Ribeiro\n"
		"    Matteo Settenvini\n"
		"    St\u00E9phane Aulery\n"
		"    Vincent Petry\n"
		"    Zachary Amsden\n");
	g_string_append(builder, _("In addition, Andrew Hunter's OS X version\n"
		"and David Kinder's Windows version\n"
		"proved invaluable."));
	g_string_append(builder, "\n\n");
	g_string_append(builder, _("Interface designed by:"));
	g_string_append(builder, "\n"
		"    Graham Nelson\n"
		"    Andrew Hunter\n"
		"\n");
	g_string_append(builder, _("Chimara written by:"));
	g_string_append(builder, "\n"
		"    Philip Chimento\n"
		"    Marijn van Vliet\n"
		"\n");
	g_string_append(builder, _("Elastic tabstops invented by:"));
	g_string_append(builder, "\n"
		"    Nick Gravgaard\n"
		"\n");
	g_string_append(builder, _("Contributions to the compiler:"));
	g_string_append(builder, "\n"
		"    Emily Short\n"
		"    Gunther Schmidl\n"
		"    Andrew Plotkin\n"
		"    Jason Penney\n"
		"    Joe Mason\n"
		"    Cedric Knight\n"
		"    David Kinder\n"
		"    Roger Firth\n"
		"    Michael Coyne\n"
		"    David Cornelson\n"
		"    Neil Cerutti\n"
		"    Kevin Bracey\n");
	char **authors = g_new0(char *, 2);  /* terminating 0 */
	authors[0] = g_string_free(builder, FALSE);
	char *translators_and_languages[] = {
		"\u00C1ngel Eduardo Garc\u00EDa", N_("Spanish"),
		"helado de brownie", N_("Spanish"),
		"Jhames Bolumbero", N_("Spanish"),
		"St\u00E9phane Aulery", N_("French"),
		NULL, NULL
	};
	builder = g_string_new("");
	char * const *iter = translators_and_languages;
	while(*iter != NULL) {
		g_string_append(builder, *iter++);
		g_string_append_printf(builder, " (%s)\n", gettext(*iter++));
	}
	char *translator_credits = g_string_free(builder, FALSE);

	GtkWindow *parent = get_toplevel_for_action(action);
	gtk_show_about_dialog(parent,
		"program-name", "Inform",
		"copyright", copyright,
		"comments", "Inform (" INFORM6_COMPILER_VERSION "/" PACKAGE_VERSION ")",
		"website", "http://inform7.com",
		"website-label", "inform7.com",
		/* TRANSLATORS: Caution, UTF8 right arrow */
		"license", _("See Help\u2192License for licensing information."),
		"authors", authors,
		"translator-credits", translator_credits,
		"logo-icon-name", "com.inform7.IDE",
		"title", _("About Inform"),
		NULL);
	g_free(copyright);
	g_strfreev(authors);
	g_free(translator_credits);
}
Beispiel #24
0
void a_dialog_about ( GtkWindow *parent )
{
  const gchar *program_name = PACKAGE_NAME;
  const gchar *version = VIKING_VERSION;
  const gchar *website = VIKING_URL;
  const gchar *copyright = "2003-2008, Evan Battaglia\n2008-"THEYEAR", Viking's contributors";
  const gchar *comments = _("GPS Data and Topo Analyzer, Explorer, and Manager.");
  const gchar *license = _("This program is free software; you can redistribute it and/or modify "
			"it under the terms of the GNU General Public License as published by "
			"the Free Software Foundation; either version 2 of the License, or "
			"(at your option) any later version."
			"\n\n"
			"This program is distributed in the hope that it will be useful, "
			"but WITHOUT ANY WARRANTY; without even the implied warranty of "
			"MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the "
			"GNU General Public License for more details."
			"\n\n"
			"You should have received a copy of the GNU General Public License "
			"along with this program; if not, write to the Free Software "
			"Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA");

  // Would be nice to use gtk_about_dialog_add_credit_section (), but that requires gtk 3.4
  // For now shove it in the 'artists' section so at least the information is easily visible
  // Something more advanced might have proper version information too...
  const gchar *libs[] = {
    "Compiled in libraries:",
    // Default libs
    "libglib-2.0",
    "libgthread-2.0",
    "libgtk+-2.0",
    "libgio-2.0",
    // Potentially optional libs (but probably couldn't build without them)
#ifdef HAVE_LIBM
    "libm",
#endif
#ifdef HAVE_LIBZ
    "libz",
#endif
#ifdef HAVE_LIBCURL
    "libcurl",
#endif
#ifdef HAVE_EXPAT_H
    "libexpat",
#endif
    // Actually optional libs
#ifdef HAVE_LIBGPS
    "libgps",
#endif
#ifdef HAVE_LIBGEXIV2
    "libgexiv2",
#endif
#ifdef HAVE_LIBEXIF
    "libexif",
#endif
#ifdef HAVE_LIBX11
    "libX11",
#endif
#ifdef HAVE_LIBMAGIC
    "libmagic",
#endif
#ifdef HAVE_LIBBZ2
    "libbz2",
#endif
#ifdef HAVE_LIBZIP
    "libzip",
#endif
#ifdef HAVE_LIBSQLITE3
    "libsqlite3",
#endif
#ifdef HAVE_LIBMAPNIK
    "libmapnik",
#endif
#ifdef HAVE_LIBNETTLE
    "libnettle",
#endif
    NULL
  };
  // Newer versions of GTK 'just work', calling gtk_show_uri() on the URL or email and opens up the appropriate program
  // This is the old method:
#if (GTK_MAJOR_VERSION == 2 && GTK_MINOR_VERSION < 24)
  gtk_about_dialog_set_url_hook (about_url_hook, NULL, NULL);
  gtk_about_dialog_set_email_hook (about_email_hook, NULL, NULL);
#endif

  gtk_show_about_dialog (parent,
	/* TODO do not set program-name and correctly set info for g_get_application_name */
  	"program-name", program_name,
	"version", version,
	"website", website,
	"comments", comments,
	"copyright", copyright,
	"license", license,
	"wrap-license", TRUE,
	/* logo automatically retrieved via gtk_window_get_default_icon_list */
	"authors", AUTHORS,
	"documenters", DOCUMENTERS,
	"translator-credits", _("Translation is coordinated on http://launchpad.net/viking"),
	"artists", libs,
	NULL);
}
static void
action_about_nautilus_callback (GtkAction *action,
				gpointer user_data)
{
	const gchar *authors[] = {
		"Alexander Larsson",
		"Ali Abdin",
		"Anders Carlsson",
		"Andy Hertzfeld",
		"Arlo Rose",
		"Darin Adler",
		"David Camp",
		"Eli Goldberg",
		"Elliot Lee",
		"Eskil Heyn Olsen",
		"Ettore Perazzoli",
		"Gene Z. Ragan",
		"George Lebl",
		"Ian McKellar",
		"J Shane Culpepper",
		"James Willcox",
		"Jan Arne Petersen",
		"John Harper",
		"John Sullivan",
		"Josh Barrow",
		"Maciej Stachowiak",
		"Mark McLoughlin",
		"Mathieu Lacage",
		"Mike Engber",
		"Mike Fleming",
		"Pavel Cisler",
		"Ramiro Estrugo",
		"Raph Levien",
		"Rebecca Schulman",
		"Robey Pointer",
		"Robin * Slomkowski",
		"Seth Nickell",
		"Susan Kare",
		NULL
	};
	const gchar *documenters[] = {
		"GNOME Documentation Team",
		"Sun Microsystem",
		NULL
	};
	const gchar *license[] = {
		N_("Nautilus is free software; you can redistribute it and/or modify "
		   "it under the terms of the GNU General Public License as published by "
		   "the Free Software Foundation; either version 2 of the License, or "
		   "(at your option) any later version."),
		N_("Nautilus is distributed in the hope that it will be useful, "
		   "but WITHOUT ANY WARRANTY; without even the implied warranty of "
		   "MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the "
		   "GNU General Public License for more details."),
		N_("You should have received a copy of the GNU General Public License "
		   "along with Nautilus; if not, write to the Free Software Foundation, Inc., "
		   "51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA")
	};
	gchar *license_trans;

	license_trans = g_strjoin ("\n\n", _(license[0]), _(license[1]),
					     _(license[2]), NULL);

	gtk_show_about_dialog (GTK_WINDOW (user_data),
			       "program-name", _("Nautilus"),
			       "version", VERSION,
			       "comments", _("Nautilus lets you organize "
					     "files and folders, both on "
					     "your computer and online."),
			       "copyright", _("Copyright \xC2\xA9 1999-2009 "
					      "The Nautilus authors"),
			       "license", license_trans,
			       "wrap-license", TRUE,
			       "authors", authors,
			       "documenters", documenters,
				/* Translators should localize the following string
				 * which will be displayed at the bottom of the about
				 * box to give credit to the translator(s).
				 */
			      "translator-credits", _("translator-credits"),
			      "logo-icon-name", "nautilus",
			      "website", "http://live.gnome.org/Nautilus",
			      "website-label", _("Nautilus Web Site"),
			      NULL);

	g_free (license_trans);

}
Beispiel #26
0
/* the about dialog */
static void about_cb(GtkAction *action, gpointer * caller) {

  const gchar *authors[] = {
    "Andreas Loening <*****@*****.**>",
    NULL
  };

  const gchar *translators = {
    "Spanish Manual Translation: Pablo Sau <*****@*****.**>\n"
    "Chinese (Simplified) Interface Translation: [email protected]\n"
    "Chinese (Traditional) Interface Translation: William Chao <*****@*****.**>"
  };

  gchar * comments;
  comments = g_strjoin("", 
		       _("AMIDE's a Medical Image Data Examiner\n"),
		       "\n",
		       _("Email bug reports to: "), PACKAGE_BUGREPORT,"\n",
		       "\n",
#if (AMIDE_LIBECAT_SUPPORT || AMIDE_LIBGSL_SUPPORT || AMIDE_LIBMDC_SUPPORT || AMIDE_LIBDCMDATA_SUPPORT || AMIDE_LIBVOLPACK_SUPPORT || AMIDE_FFMPEG_SUPPORT || AMIDE_LIBFAME_SUPPORT)
		       _("Compiled with support for the following libraries:\n"),
#endif
#ifdef AMIDE_LIBECAT_SUPPORT
		       _("libecat: CTI File library by Merence Sibomona\n"),
#endif
#ifdef AMIDE_LIBGSL_SUPPORT
		       _("libgsl: GNU Scientific Library by the GSL Team (version "),GSL_VERSION,")\n",
#endif
#ifdef AMIDE_LIBMDC_SUPPORT
		       _("libmdc: Medical Imaging File library by Erik Nolf (version "),MDC_VERSION,")\n",
#endif
#ifdef AMIDE_LIBDCMDATA_SUPPORT
		       _("libdcmdata: OFFIS DICOM Toolkit DCMTK (C) OFFIS e.V. (version "),dcmtk_version,")\n",
#endif
#ifdef AMIDE_LIBVOLPACK_SUPPORT
		       _("libvolpack: Volume Rendering library by Philippe Lacroute (version "),VP_VERSION,")\n",
#endif
#ifdef AMIDE_FFMPEG_SUPPORT
		       _("libavcodec: media encoding library by the FFMPEG Team (version "),AV_STRINGIFY(LIBAVCODEC_VERSION), ")\n",
#endif
#ifdef AMIDE_LIBFAME_SUPPORT
		       _("libfame: Fast Assembly Mpeg Encoding library by the FAME Team (version "), LIBFAME_VERSION, ")\n",
#endif
		       NULL);

  gtk_show_about_dialog(NULL, 
			"name", PACKAGE,
			"version", VERSION,
			"copyright", "Copyright (c) 2000-2014 Andreas Loening",
			"license", "GNU General Public License, Version 2",
			"authors", authors,
			"comments", comments,
			/* "documenters", documenters, */
			/* "artists", artists, */
			/* "logo", uses default window icon we've already set*/
			"translator-credits", translators,
			/* "translator-credits, _("translator-credits"), */ /* this would mark the string for translation by the translator*/
			"website", "http://amide.sourceforge.net",
			NULL);

  g_free(comments);

  return;
}
Beispiel #27
0
void
dates_about_cb (GtkWidget *widget, DatesData *d)
{
	static GdkPixbuf *pixb;
	GError *error = NULL;

	/* NOTE: The hildon version of the about menu does not handle the
	 * credits button well (it is misplaced and not thematised), so we add
	 * the authors to the (c) string.
	 */
#ifndef WITH_HILDON
	const gchar *authors[] = {
		"Principal author: Chris Lord <*****@*****.**>",
		"Maemo port: Tomas Frydrych <*****@*****.**>",
		"Rob Bradford <*****@*****.**>",
		NULL
	};

	const gchar *licence =
		_("This program is free software; you can redistribute it and/or modify\n"
                  "it under the terms of the GNU General Public License as published by\n"
                  "the Free Software Foundation; either version 2, or (at your option)\n"
                  "any later version.\n"
                  "\n"
                  "This program is distributed in the hope that it will be useful,\n"
                  "but WITHOUT ANY WARRANTY; without even the implied warranty of\n"
                  "MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n"
                  "GNU General Public License for more details.");

        /* Translators: please translate this as your own name and optionally email
	   like so: "Your Name <*****@*****.**>" */
        const char *translator_credits = _("translator-credits");
#endif
	
	if (!pixb)
		pixb = gdk_pixbuf_new_from_file (
			PKGDATADIR G_DIR_SEPARATOR_S "oh-about-logo.png", &error);  

	if (!pixb) {
		g_assert (error);
		g_warning (error->message);
		g_clear_error (&error);
	}

	gtk_show_about_dialog (
			GTK_WINDOW (d->main_window),

			"copyright",
			"© 2006 - 2008 OpenedHand Ltd",

#ifndef WITH_HILDON
			"authors",
			authors,
			
			"license",
			licence,

                        "translator-credits",
                        translator_credits,
#endif

			"logo",
			pixb,

			"version",
			PACKAGE_VERSION,
			
			"website",
			"http://www.pimlico-project.org/",
			NULL);
}
void
ags_menu_action_about_callback(GtkWidget *menu_item, gpointer data)
{
  AgsApplicationContext *application_context;
  AgsWindow *window;

  static FILE *file = NULL;
  struct stat sb;
  static gchar *license;
  static GdkPixbuf *logo = NULL;

  gchar *license_filename;
  gchar *logo_filename;
  gchar *str;
  
  int n_read;
  
  GError *error;

  gchar *authors[] = { "Joël Krähemann", NULL }; 

#ifdef AGS_LICENSE_FILENAME
  license_filename = AGS_LICENSE_FILENAME;
#else
  if((license_filename = getenv("AGS_LICENSE_FILENAME")) == NULL){
    license_filename = "/usr/share/common-licenses/GPL-3";
  }
#endif
  
  if(g_file_test(license_filename,
		 G_FILE_TEST_EXISTS)){
    if(file == NULL){
      file = fopen(license_filename, "r");
      stat(license_filename, &sb);
      license = (gchar *) malloc((sb.st_size + 1) * sizeof(gchar));

      n_read = fread(license, sizeof(char), sb.st_size, file);

      if(n_read != sb.st_size){
	g_critical("fread() number of bytes returned doesn't match buffer size");
      }
      
      license[sb.st_size] = '\0';
      fclose(file);

#ifdef AGS_LOGO_FILENAME
      logo_filename = g_strdup(AGS_LOGO_FILENAME);
#else
      if((logo_filename = getenv("AGS_LOGO_FILENAME")) == NULL){
	logo_filename = g_strdup_printf("%s%s", DESTDIR, "/gsequencer/images/ags.png");
      }else{
	logo_filename = g_strdup(logo_filename);
      }
#endif

      error = NULL;
      logo = gdk_pixbuf_new_from_file(logo_filename,
				      &error);
  
      //g_free(logo_filename);
  
    }
  }

  application_context = ags_application_context_get_instance();

  window = (AgsWindow *) ags_ui_provider_get_window(AGS_UI_PROVIDER(application_context));

  gtk_show_about_dialog((GtkWindow *) window,
			"program-name", "gsequencer",
			"authors", authors,
			"license", license,
			"version", AGS_VERSION,
			"website", "http://nongnu.org/gsequencer",
			"title", "Advanced Gtk+ Sequencer",
			"logo", logo,
			NULL);
}
void
_gedit_cmd_help_about (GtkAction   *action,
		       GeditWindow *window)
{
	static const gchar * const authors[] = {
		"Paolo Maggi <*****@*****.**>",
		"Paolo Borelli <*****@*****.**>",
		"Steve Fr\303\251cinaux  <*****@*****.**>",
		"Jesse van den Kieboom  <*****@*****.**>",
		"Ignacio Casal Quinteiro <*****@*****.**>",
		"James Willcox <*****@*****.**>",
		"Chema Celorio",
		"Federico Mena Quintero <*****@*****.**>",
		NULL
	};

	static const gchar * const documenters[] = {
		"Sun GNOME Documentation Team <*****@*****.**>",
		"Eric Baudais <*****@*****.**>",
		NULL
	};

	static const gchar copyright[] = \
		"Copyright \xc2\xa9 1998-2000 Evan Lawrence, Alex Robert\n"
		"Copyright \xc2\xa9 2000-2002 Chema Celorio, Paolo Maggi\n"
		"Copyright \xc2\xa9 2003-2006 Paolo Maggi\n"
		"Copyright \xc2\xa9 2004-2010 Paolo Borelli, Jesse van den Kieboom\nSteve Fr\303\251cinaux, Ignacio Casal Quinteiro";

	static const gchar comments[] = \
		N_("gedit is a small and lightweight text editor for the "
		   "GNOME Desktop");

	GdkPixbuf *logo;
	gchar *data_dir;
	gchar *logo_file;

	gedit_debug (DEBUG_COMMANDS);

	data_dir = gedit_dirs_get_gedit_data_dir ();
	logo_file = g_build_filename (data_dir,
				      "logo",
				      "gedit-logo.png",
				      NULL);
	g_free (data_dir);
	logo = gdk_pixbuf_new_from_file (logo_file, NULL);
	g_free (logo_file);

	gtk_show_about_dialog (GTK_WINDOW (window),
			       "program-name", "gedit",
			       "authors", authors,
			       "comments", _(comments),
			       "copyright", copyright,
			       "documenters", documenters,
			       "logo", logo,
			       "translator-credits", _("translator-credits"),
			       "version", VERSION,
			       "website", "http://www.gedit.org",
			       NULL);

	if (logo)
		g_object_unref (logo);
}
Beispiel #30
0
/**
 * thunar_dialogs_show_about:
 * @parent : the parent #GtkWindow or %NULL.
 * @title  : the software title.
 * @format : the printf()-style format for the main text in the about dialog.
 * @...    : argument list for the @format.
 *
 * Displays the Thunar about dialog with @format as main text.
 **/
void
thunar_dialogs_show_about (GtkWindow   *parent,
                           const gchar *title,
                           const gchar *format,
                           ...)
{
  static const gchar *artists[] =
  {
    "Young Hahn <*****@*****.**>",
    NULL,
  };

  static const gchar *authors[] =
  {
    "Benedikt Meurer <*****@*****.**>",
    "Jannis Pohlmann <*****@*****.**>",
    "Nick Schermer <*****@*****.**>",
    NULL,
  };
  
  static const gchar *documenters[] =
  {
    "Benedikt Meurer <*****@*****.**>",
    "Jannis Pohlmann <*****@*****.**>",
    "Nick Schermer <*****@*****.**>",
    NULL,
  };

  GdkPixbuf *logo;
  va_list    args;
  gchar     *comments;

  _thunar_return_if_fail (parent == NULL || GTK_IS_WINDOW (parent));

  /* determine the comments */
  va_start (args, format);
  comments = g_strdup_vprintf (format, args);
  va_end (args);

  
  /* try to load the about logo */
  logo = gdk_pixbuf_new_from_file (DATADIR "/pixmaps/Thunar/Thunar-about-logo.png", NULL);

  /* open the about dialog */
  gtk_show_about_dialog (parent,
                         "artists", artists,
                         "authors", authors,
                         "comments", comments,
                         "copyright", "Copyright \302\251 2004-2011 Benedikt Meurer\n"
                                      "Copyright \302\251 2009-2011 Jannis Pohlmann\n"
                                      "Copyright \302\251 2009-2012 Nick Schermer",
                         "destroy-with-parent", TRUE,
                         "documenters", documenters,
                         "license", XFCE_LICENSE_GPL,
                         "logo", logo,
                         "program-name", title,
                         "translator-credits", _("translator-credits"),
                         "version", PACKAGE_VERSION,
                         "website", "http://thunar.xfce.org/",
                         NULL);

  /* cleanup */
  if (G_LIKELY (logo != NULL))
    g_object_unref (G_OBJECT (logo));
  g_free (comments);
}