GtkWidget* create_about1 (void) { const gchar *authors[] = { "Amaya Rodrigo Sastre <*****@*****.**>", "Pablo Sánchez Torralba <*****@*****.**>", NULL }; const gchar *documenters[] = { NULL }; /* TRANSLATORS: Replace this string with your names, one name per line. */ gchar *translators = _("translator_credits"); GtkWidget *about1; if (!strcmp (translators, "translator_credits")) translators = NULL; about1 = gnome_about_new ("Women", VERSION, _("(C) 2002 Amaya Rodrigo Sastre"), _("Women is distributed under the terms og the GPL."), authors, documenters, translators, "women/women.png"); gtk_container_set_border_width (GTK_CONTAINER (about1), 10); /* Store pointers to all widgets, for use by lookup_widget(). */ GLADE_HOOKUP_OBJECT_NO_REF (about1, about1, "about1"); return about1; }
void gmdb_about_cb(GtkWidget *button, gpointer data) { const gchar *authors[] = { "Brian Bruns", NULL }; const gchar *documenters[] = { "Brian Bruns", NULL }; GdkPixbuf *pixbuf; pixbuf = gdk_pixbuf_new_from_file (GMDB_ICONDIR "logo.xpm", NULL); gtk_widget_show (gnome_about_new ("Gnome MDB Viewer", MDB_VERSION_NO, "Copyright 2002-2004 Brian Bruns", _("The Gnome-MDB Viewer is the grapical interface to " "MDB Tools. It lets you view and export data and schema" "from MDB files produced by MS Access 97/2000/XP."), (const gchar **) authors, (const gchar **) documenters, NULL, pixbuf)); }
gint about(GtkWidget *window, gpointer data) { static GtkWidget *dialog = NULL; const char *authors[] = { "David Trowbridge", "Dan Kuester", "Jeff Myers", NULL }; const char *other[] = { "These people helped with random", "things (not documentation). So,", "special thanks goes out to", "m0nkey_b0y, Gerbil, Quinn Buchanan", "Steve Houston, and others", NULL }; if(dialog) { gdk_window_show(dialog->window); gdk_window_raise(dialog->window); return TRUE; } dialog = gnome_about_new("bzedit", "2.1", "(c) 2002 David Trowbridge", "\"panic while you still can\"", authors, other, NULL, NULL); // TODO: set parent (necessary?) gtk_signal_connect(GTK_OBJECT(dialog), "destroy", GTK_SIGNAL_FUNC(gtk_widget_destroyed), &dialog); gtk_widget_show(dialog); return TRUE; }
/* [ show_about ] * Creates the about dialog */ void show_about (GtkWidget *widget, gpointer data) { GdkPixbuf *pixbuf; static GtkWidget *dialog = NULL; /* Don't create more than one about box */ if (dialog != NULL) { g_assert (GTK_WIDGET_REALIZED (dialog)); gdk_window_show (dialog->window); gdk_window_raise (dialog->window); } else { const gchar *authors[] = { "Tomas Junnonen <*****@*****.**> - Main Developer, Maintainer", "Paul Drain <*****@*****.**> - Developer", NULL}; pixbuf = gdk_pixbuf_new_from_inline (-1, pengo, FALSE, NULL); dialog = gnome_about_new ( "Fortified", VERSION, "(C) 2000-2005 Tomas Junnonen", _("An all-in-one Linux firewall utility for GNOME.\n"), authors, NULL, NULL, pixbuf); g_signal_connect (G_OBJECT (dialog), "destroy", G_CALLBACK (gtk_widget_destroyed), &dialog); g_object_unref (G_OBJECT(pixbuf)); gtk_widget_show (dialog); } }
/* * The real About show func: It appears that the GnomeAbout widget * is always destroyed when closed, so I have to create it every * time...that sucks! */ void on_about_activate(GtkWidget *widget) { if(GTK_IS_WIDGET(widget)) { GtkWidget *about_gwp; const gchar *authors[] = { "Lucas Di Pentima <*****@*****.**>", "Sven Wergandt <*****@*****.**>", "Cristian Abalos <*****@*****.**>", "Nicolas Cesar <*****@*****.**>", "François Orieux <*****@*****.**>", NULL }; const gchar *documenters[] = { "Lucas Di Pentima <*****@*****.**>", NULL }; const gchar *translators = _("translator-name"); /* const gchar *translators = "Lucas Di Pentima <*****@*****.**> (Spanish)\nStefan Reuther <*****@*****.**> (German)\nFrançois Orieux <*****@*****.**> (French)\nCarlos Paulino <*****@*****.**> (Brazilian Portuguese)"; */ about_gwp = gnome_about_new(PACKAGE_NAME, PACKAGE_VERSION, _("(C) 2002-2005 Lucas Di Pentima\nThis software is released under the GNU GPL License"), _("A VGA Planets client for the GNOME platform.\nhttp://gwp.lunix.com.ar"), (const gchar **)authors, (const gchar **)documenters, (const gchar *)translators, gdk_pixbuf_new_from_file(DATADIR"/gwp/logo.png", NULL)); gtk_window_set_transient_for(GTK_WINDOW(about_gwp), GTK_WINDOW(widget)); gtk_widget_show(about_gwp); } }
static void ghack_about_cb(GtkWidget *widget, gpointer data) { char buf[BUFSZ]="\0"; char buf1[BUFSZ]="\0"; const gchar *authors[] = {"Erik Andersen", "Anthony Taylor", "Jeff Garzik", "The Nethack Dev Team", NULL }; if (about) { gdk_window_raise (about->window); return; } getversionstring(buf); strcat( buf1, VERSION_STRING); strcat( buf, _("\nSend comments and bug reports to: [email protected]\n" "This game is free software. See License for details.")); about = gnome_about_new(_("Nethack"), buf1, "Copyright (C) 1985-2002 Mike Stephenson", (const char **)authors, buf, NULL); gtk_signal_connect (GTK_OBJECT (about), "destroy", (GtkSignalFunc) about_destroy_callback, NULL); gtk_widget_show(about); }
void inkblot_about_dialog ( GtkWidget *widget, gpointer data ) { GdkPixbuf *pixbuf; static GtkWidget *dialog = NULL; /* Don't create more than one about box */ if (dialog != NULL) { g_assert (GTK_WIDGET_REALIZED (dialog)); gdk_window_show (dialog->window); gdk_window_raise (dialog->window); } else { const gchar *authors[]={"Mike Newman <*****@*****.**>", "Thierry Merle <*****@*****.**>", NULL}; pixbuf = gdk_pixbuf_new_from_file (PACKAGE_DATA_DIR "/inkblot/pixmaps/printer_multi_48.png", NULL); dialog = gnome_about_new ( "Inkblot", VERSION, "© 2004-2007 Mike Newman", _("Reports on your printer ink levels.\n"), authors, NULL, NULL, pixbuf); g_signal_connect (G_OBJECT (dialog), "destroy", G_CALLBACK (gtk_widget_destroyed), &dialog); g_object_unref (G_OBJECT(pixbuf)); gtk_widget_show (dialog); } }
void onAboutActivate (GtkMenuItem * menuItem, gpointer userData) { const char * authors[] = {"Petter L", NULL}; GtkWidget *about = gnome_about_new( "Tema 11", "1.0", "(c) Petter", "LiUM", (const char ** ) authors, NULL, "Bertil Johansson", NULL); gtk_widget_show(about); }
void dialog_about (void) { GdkPixbuf *logo; GError *error = NULL; const gchar *authors[] = { "Margarita Manterola", "Andres de Barbara", "Gustavo M. Pereyra", "Maximiliano Curia", "Ricardo Markiewicz", /* TODO : What should we do with the Richard Hult credits? */ /*"Richard Hult <*****@*****.**>",*/ /* maxy> I believe it should stay, and it should be the first on the * list */ NULL }; const char *docs[] = { "Ricardo Markiewicz <*****@*****.**> (es)", "Jordi Mallach <*****@*****.**> (ca)", NULL }; const gchar *copy = _("(c) 2003-2006 LUGFi\n(c) 1999-2001 Richard Hult"); /* Allow only one about box at a time. */ if (about){ gdk_window_raise (about->window); return; } error = NULL; logo = gdk_pixbuf_new_from_xpm_data ((const char **) logo_xpm); about = gnome_about_new ( "Oregano", VERSION, copy, _("Schematic capture and circuit simulation.\n"), authors, docs, NULL, logo); g_signal_connect ( G_OBJECT (about), "destroy", G_CALLBACK(about_destroy_event), NULL); gtk_widget_show (about); }
static void wireless_applet_about_cb (BonoboUIComponent *uic, WirelessApplet *applet) { GdkPixbuf *pixbuf; char *file; const gchar *authors[] = { "Eskil Heyn Olsen <*****@*****.**>", "Bastien Nocera <*****@*****.**> (Gnome2 port)", NULL }; const gchar *documenters[] = { "Sun GNOME Documentation Team <*****@*****.**>", NULL }; const gchar *translator_credits = _("translator_credits"); if (applet->about_dialog != NULL) { gtk_window_set_screen (GTK_WINDOW (applet->about_dialog), gtk_widget_get_screen (GTK_WIDGET (&applet->base))); gtk_window_present (GTK_WINDOW (applet->about_dialog)); return; } file = gnome_program_locate_file (NULL, GNOME_FILE_DOMAIN_PIXMAP, "wireless-applet/wireless-applet.png", FALSE, NULL); pixbuf = gdk_pixbuf_new_from_file (file, NULL); g_free (file); applet->about_dialog = gnome_about_new ( _("Wireless Link Monitor"), VERSION, _("(C) 2001, 2002 Free Software Foundation "), _("This utility shows the status of a wireless link."), authors, documenters, strcmp (translator_credits, "translator_credits") != 0 ? translator_credits : NULL, pixbuf); g_object_unref (pixbuf); g_signal_connect (applet->about_dialog, "destroy", G_CALLBACK (gtk_widget_destroyed), &applet->about_dialog); gtk_widget_show (applet->about_dialog); return; }
static void create_about_box (void) { const char *documentors[] = { "Documentor1", "Documentor2", NULL }; GtkWidget *about_box = gnome_about_new ("Test GNOME", VERSION, "(c) 2001 Foo, Inc.\n(c) 2001 Bar, Inc.", "This is the testing gnome application about box", authors, documentors, "Translation credits", NULL /* logo pixbuf */); gtk_widget_show (about_box); }
static void about_cb (GtkWidget *widget, gpointer data) { GtkWidget *about; gchar *authors[] = { N_("Yu Mingjian"), NULL }; about = gnome_about_new("Gnome 编程风格", VERSION, N_("(C) 2000 the OpenCJK Organization"), (const char **)authors, N_("Simple demonstration for Gnome programming"), NULL); gtk_widget_show (about); }
/* Show the about box. I wonder, does the about box dialog free itself? */ void cb_show_about_box(GtkWidget *widget, gpointer data) { static GtkWidget *dlg; GuiInfo *gui; const gchar *authors[] = { "Development:", "Michael Pearson <*****@*****.**>", "", "Additional Levels:", "Marisa Mack <*****@*****.**>", "Mathieu Dutour <*****@*****.**>", "", "Additional Graphics:", "N0mada <*****@*****.**>", NULL }; const gchar comment[] = N_( "The classic arcade game Breakout." ); const gchar *translator_credits = _("translator credits"); gchar *use_tc = NULL; if(strcmp(translator_credits, "translator credits")) { /* This is a translation, show appropriate credits */ use_tc = (gchar *) translator_credits; } if(dlg) { gdk_window_show(dlg->window); gdk_window_raise(dlg->window); gtk_widget_grab_focus(GTK_WIDGET(dlg)); } else { dlg = gnome_about_new( _("GNOME Breakout"), // name VERSION, // version _("Copyright (c) 2000-2003 Michael Pearson"), // cp _(comment), // comments authors, // authors NULL, // documenters use_tc, // translator credits NULL); // logo gui = (GuiInfo *) data; g_signal_connect(GTK_OBJECT(dlg), "destroy", GTK_SIGNAL_FUNC(cb_null), &dlg); gtk_widget_show(dlg); } }
static void gnocam_applet_about_cb (BonoboUIComponent *uic, GnocamApplet *a, const char *verbname) { static GtkWidget *about = NULL; GdkPixbuf *pixbuf; GError *e = NULL; g_return_if_fail (GNOCAM_IS_APPLET (a)); static const gchar *authors[] = { "Lutz Mueller <*****@*****.**>", NULL }; const gchar *documenters[] = {NULL}; const gchar *translator_credits = _("translator_credits"); /* Do we already have the widget? */ if (about) { gtk_window_present (GTK_WINDOW (about)); return; } /* Create the widget. */ pixbuf = gdk_pixbuf_new_from_file (IMAGEDIR "gnocam-camera1.png", &e); about = gnome_about_new ( _("Camera Applet"), VERSION, _("Copyright © 2002 Lutz Mueller"), _("Access your digital camera."), authors, documenters, (strcmp (translator_credits, "translator_credits") ? translator_credits : NULL), pixbuf); if (pixbuf) g_object_unref (pixbuf); /* Set up the widget. */ gtk_window_set_wmclass (GTK_WINDOW (about), "gnocam-applet", "Camera Applet"); gnome_window_icon_set_from_file (GTK_WINDOW (about), IMAGEDIR "gnocam-camera1.png"); g_signal_connect (about, "destroy", G_CALLBACK (gtk_widget_destroyed), &about); /* Show the widget. */ gtk_widget_show (about); }
void gnome_about_cmd (void) { GtkWidget *about; const gchar *authors[] = { "The Midnight Commander Team", "http://www.gnome.org/mc/", "bug reports: [email protected]", NULL }; about = gnome_about_new (_("GNU Midnight Commander"), VERSION, "(C) 1994-1998 the Free Software Fundation", authors, _("The GNOME edition of the Midnight Commander file manager."), NULL); gtk_widget_show (about); }
GtkWidget* create_about (void) { const gchar *authors[] = { "Daniel Balster <*****@*****.**>", NULL }; GtkWidget *about; about = gnome_about_new ("Curvegen", VERSION, _("Copyright (C) 1999, 2000 by Daniel Balster"), authors, _("A very simple curve generator"), "psxcurvegen/logo.png"); gtk_object_set_data (GTK_OBJECT (about), "about", about); gtk_window_set_modal (GTK_WINDOW (about), TRUE); return about; }
static void showabout(GtkWidget *widget, gpointer data) { GtkWidget *aboutBox; const gchar *documentedBy[] = {NULL}; const gchar *writtenBy[] = { "Eric Mader", NULL }; aboutBox = gnome_about_new("Gnome Layout Sample", "0.1", "Copyright (C) 2016 and later: Unicode, Inc. and others. License & terms of use: http://www.unicode.org/copyright.html", "A simple demo of the ICU LayoutEngine.", writtenBy, documentedBy, "", NULL); gtk_widget_show(aboutBox); }
static void showabout(GtkWidget *widget, gpointer data) { GtkWidget *aboutBox; const gchar *documentedBy[] = {NULL}; const gchar *writtenBy[] = { "Eric Mader", NULL }; aboutBox = gnome_about_new("Gnome Layout Sample", "0.1", "Copyright (C) 1998-2006 By International Business Machines Corporation and others. All Rights Reserved.", "A simple demo of the ICU LayoutEngine.", writtenBy, documentedBy, "", NULL); gtk_widget_show(aboutBox); }
void menu_about (GtkWidget * wid, gpointer sess) { char buf[512]; const gchar *author[] = { "Peter Zelezny <*****@*****.**>", 0 }; snprintf (buf, sizeof (buf), _("An IRC Client for UNIX.\n\n" "This binary was compiled on "__DATE__"\n" "Using GTK %d.%d.%d X %d\n" "Running on %s"), gtk_major_version, gtk_minor_version, gtk_micro_version, #ifdef USE_XLIB VendorRelease (GDK_DISPLAY ()), get_cpu_str()); #else 666, get_cpu_str()); #endif gtk_widget_show (gnome_about_new ("X-Chat", VERSION, "(C) 1998-2001 Peter Zelezny", author, buf, 0)); }
void on_about (PppStatus *s, gpointer data) { GtkWidget *about_dlg = NULL; const char *authors[] = { "Tiago Cogumbreiro <*****@*****.**>", "Milton Moura <*****@*****.**>", NULL }; const char *translators[] = {NULL}; about_dlg = GTK_WIDGET(gnome_about_new( "GNOME PPPoE", "1.0", "Copyright (C) 2004 Tiago Cogumbreiro\nCopyright (C) 2004 Milton Moura", _("PPPoE Dialer"), authors, translators, NULL, NULL)); g_return_if_fail(about_dlg); gtk_widget_show_all(about_dlg); }
static int game_about_callback (GtkWidget *widget, void *data) { GtkWidget *about; const gchar *authors[] = { "Miguel de Icaza.", "Federico Mena.", "Horacio J. Peña.", NULL }; about = gnome_about_new (_("The Same Gnome"), VERSION, "(C) 1997-1998 the Free Software Foundation", (const char **)authors, _("Original idea from KDE's same game program."), /*"gnome-same-gnome.xpm"*/ NULL); gnome_dialog_set_parent(GNOME_DIALOG(about), GTK_WINDOW(app)); gtk_widget_show (about); return TRUE; }
GtkWidget *about_dialog_new(void) { const gchar *authors[] = { "Dongsu Jang <*****@*****.**>", "Jaeman Jang <*****@*****.**>", NULL }; const gchar *documenters[] = { NULL }; gchar *translators = _("translator_credits"); GtkWidget *dialog; GdkPixbuf *logo_pixbuf; GdkPixbuf *icon_pixbuf; if (!strcmp(translators, "translator_credits")) translators = NULL; logo_pixbuf = gdk_pixbuf_new_from_file(PKGDATADIR "/pixmaps/liteamp-logo.png", NULL); dialog = gnome_about_new(PACKAGE, VERSION, _("(C) 2002 Dongsu Jang"), _("A Light-Weight Music Player for GNOME"), authors, documenters, translators, logo_pixbuf); icon_pixbuf = gdk_pixbuf_new_from_file(PKGDATADIR "/pixmaps/liteamp.png", NULL); if (icon_pixbuf) { gtk_window_set_icon(GTK_WINDOW(dialog), icon_pixbuf); gdk_pixbuf_unref(icon_pixbuf); } return dialog; }
static void action_about (GtkAction *action, gpointer callback_data) { GtkamMain *m = GTKAM_MAIN (callback_data); GtkWidget *d; const gchar *comments = N_("gtkam is a program that lets you download\n" "images from many digital cameras. It uses\n" "libgphoto2. More info is available at\n" "http://www.gphoto.org.\n" "\n" "Enjoy the wonderful world of gphoto!"); #ifdef HAVE_GNOME GtkWidget *w; const gchar *authors[] = { "Scott Fritzinger <*****@*****.**>", "Lutz Mueller <*****@*****.**>", _("Many others"), NULL }; const gchar *documenters[] = { "Michael J. Rensing <*****@*****.**>", NULL }; const gchar *translator_credits = "Keld Simonsen <*****@*****.**>\n" "Marcus Meissner <*****@*****.**>\n" "Fabian Mandelbaum <*****@*****.**>\n" "Kjartan Maraas <*****@*****.**>\n" "Andraz Tori <*****@*****.**>"; GdkPixbuf *p; #else gchar *buf; #endif gchar *gcomments = NULL; int n; for (n = 0; module_versions[n].name != NULL; n++) { gchar *features; const char **v = NULL; char *name = module_versions[n].name; GPVersionFunc func = module_versions[n].version_func; CHECK_NULL (name); CHECK_NULL (func); v = func(GP_VERSION_SHORT); CHECK_NULL (v); CHECK_NULL (v[0]); CHECK_NULL (v[1]); /* FIXME: implicit conversion from char to gchar */ features = g_strjoinv(", ", &v[1]); if (gcomments == NULL) { gcomments = g_strdup_printf(_("%s\n\n%s %s with options:\n %s\n"), _(comments), name, v[0], features); } else { gchar *old = gcomments; gcomments = g_strdup_printf(_("%s\n%s %s with options:\n %s\n"), gcomments, name, v[0], features); free(old); } free(features); } #ifdef HAVE_GNOME p = gdk_pixbuf_new_from_file (IMAGE_DIR "/gtkam-camera.png", NULL); d = gnome_about_new (PACKAGE, VERSION, "GPL", gcomments, authors, documenters, translator_credits, p); g_object_unref (G_OBJECT (p)); w = gnome_href_new ("http://www.gphoto.org", "http://www.gphoto.org"); gtk_widget_show (w); gtk_box_pack_end (GTK_BOX (GTK_DIALOG (d)->vbox), w, FALSE, FALSE, 0); #else buf = g_strdup_printf ("%s-%s\n\n%s", PACKAGE, VERSION, gcomments); d = gtkam_close_new (buf); g_free (buf); #endif gtk_window_set_transient_for (GTK_WINDOW (d), GTK_WINDOW (m)); gtk_widget_show (d); /* FIXME free(gcomments); */ }
void on_about_activate(GtkMenuItem *menuitem, gpointer user_data) { static GtkWidget *about = NULL; GtkWidget *href, *hbox; GdkPixbuf *pixbuf = NULL; const gchar *documenters[] = { "Ricardo Quesada, english", "Arkadiusz Lipiec, polish", NULL }; const gchar *translator_credits = _("translator_credits"); const char *authors[] = { "Main Authors:", " Ricardo Quesada, main coder", " Wolfgang Morawetz, main artist", "", "Main Contributors:", " Thomas R. Koll", " Raymond Ostertag", "", "Detailed info in the PEOPLE file or in the homepage", NULL }; { gchar* logo_filename = NULL; logo_filename = g_strdup(PIXMAPDIR"/teg_icono.png"); if (logo_filename != NULL) { pixbuf = gdk_pixbuf_new_from_file(logo_filename, NULL); g_free (logo_filename); } } if (!about) { about = gnome_about_new ( _("Tenes Empanadas Graciela"), VERSION, _("Copyright (C) 2000, 2002 Ricardo Quesada"), _("A clone of T.E.G. (a Risk clone)."), (const char**) authors, (const char**) documenters, strcmp (translator_credits, "translator_credits") != 0 ? translator_credits : NULL, pixbuf); gtk_signal_connect (GTK_OBJECT (about), "destroy", GTK_SIGNAL_FUNC (gtk_widget_destroyed), &about); hbox = gtk_hbox_new (TRUE, 0); href = gnome_href_new ("http://teg.sourceforge.net", _("TEG Home Page")); gtk_box_pack_start (GTK_BOX (hbox), href, FALSE, FALSE, 0); gtk_box_pack_start (GTK_BOX (GTK_DIALOG (about)->vbox), hbox, TRUE, FALSE, 0); gtk_widget_show_all (hbox); } gtk_widget_show_now (about); raise_and_focus (about); }