当前位置: 首页>>代码示例>>C++>>正文


C++ GTK_ABOUT_DIALOG函数代码示例

本文整理汇总了C++中GTK_ABOUT_DIALOG函数的典型用法代码示例。如果您正苦于以下问题:C++ GTK_ABOUT_DIALOG函数的具体用法?C++ GTK_ABOUT_DIALOG怎么用?C++ GTK_ABOUT_DIALOG使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了GTK_ABOUT_DIALOG函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: create_aboutdialog_gshpvoronoi

GtkWidget*
create_aboutdialog_gshpvoronoi (void)
{
  GtkWidget *aboutdialog_gshpvoronoi;
  const gchar *authors[] = {
    "Steffen Macke <[email protected]>",
    "Maher Abdel Karim <[email protected]>",
    NULL
  };
  /* TRANSLATORS: Replace this string with your names, one name per line. */
  gchar *translators = _("translator-credits");
  GdkPixbuf *aboutdialog_gshpvoronoi_logo_pixbuf;

  aboutdialog_gshpvoronoi = gtk_about_dialog_new ();
  gtk_about_dialog_set_version (GTK_ABOUT_DIALOG (aboutdialog_gshpvoronoi), VERSION);
  gtk_about_dialog_set_name (GTK_ABOUT_DIALOG (aboutdialog_gshpvoronoi), _("gshpvoronoi"));
  gtk_about_dialog_set_copyright (GTK_ABOUT_DIALOG (aboutdialog_gshpvoronoi), _("Copyright (c) 2006 DC Water and Enviroment"));
  gtk_about_dialog_set_comments (GTK_ABOUT_DIALOG (aboutdialog_gshpvoronoi), _("Create Voronoi polygons from point shapfiles.\nGraphical frontend to qvoronoi."));
  gtk_about_dialog_set_license (GTK_ABOUT_DIALOG (aboutdialog_gshpvoronoi), _(" gshpvoronoi - Create Voronoi polygons from point shapefiles Graphical frontend to qvoronoi\n    Copyright (C) 2006  DC Water and Environment\n\n    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 of the License, or\n    (at your option) 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.\n\n    You should have received a copy of the GNU General Public License\n    along with this program; if not, write to the Free Software\n    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA"));
  gtk_about_dialog_set_website (GTK_ABOUT_DIALOG (aboutdialog_gshpvoronoi), "http://dcwaterdesign.sourceforge.net");
  gtk_about_dialog_set_website_label (GTK_ABOUT_DIALOG (aboutdialog_gshpvoronoi), _("http://dcwaterdesign.sourceforge.net"));
  gtk_about_dialog_set_authors (GTK_ABOUT_DIALOG (aboutdialog_gshpvoronoi), authors);
  gtk_about_dialog_set_translator_credits (GTK_ABOUT_DIALOG (aboutdialog_gshpvoronoi), translators);
  aboutdialog_gshpvoronoi_logo_pixbuf = create_pixbuf ("dc.png");
  gtk_about_dialog_set_logo (GTK_ABOUT_DIALOG (aboutdialog_gshpvoronoi), aboutdialog_gshpvoronoi_logo_pixbuf);

  /* Store pointers to all widgets, for use by lookup_widget(). */
  GLADE_HOOKUP_OBJECT_NO_REF (aboutdialog_gshpvoronoi, aboutdialog_gshpvoronoi, "aboutdialog_gshpvoronoi");

  return aboutdialog_gshpvoronoi;
}
开发者ID:sdteffen,项目名称:dcwaterdesign,代码行数:31,代码来源:interface.c

示例2: about_dialog_create

/*
This function creates a pop-up dialog about window, which contains instructions on how
to play our game, as well as citations for graphics and a little blurb about the project
*/
void about_dialog_create(MainWindow* main_window)
{
	GdkPixbuf *pixbuf;
	
	// Initialize main_window struct about_dialog member
	main_window->about_dialog = gtk_about_dialog_new();
	gtk_window_set_modal(GTK_WINDOW(main_window->about_dialog), TRUE);
	
	// Set logo of about dialog
	pixbuf = gdk_pixbuf_new_from_file_at_size("icons/about_image.png", 300, 200, NULL);
	gtk_about_dialog_set_logo(GTK_ABOUT_DIALOG(main_window->about_dialog), pixbuf);
	g_object_unref(pixbuf), pixbuf = NULL;
	
	// Set attributes of about dialog
	gtk_about_dialog_set_program_name(GTK_ABOUT_DIALOG(main_window->about_dialog), "Team 5: Screamin* Green");
	gtk_about_dialog_set_copyright(GTK_ABOUT_DIALOG(main_window->about_dialog), "(c) Screamin* Green");
	
	// set comments of about dialog to show credits
	gtk_about_dialog_set_comments(GTK_ABOUT_DIALOG(main_window->about_dialog), 
	"CS 50 Winter 2013 Final Project\nAuthors:\nJoyce Chung\nEliza Hanson\nMichelle Shu\nJacob Weiss\n\nCredits:\nHamster graphics: Molang (c)FEELBug.Yoon\nIcon graphics: http://freebiesbooth.com/wp-content/uploads/downloads/2011/06/025_hand_drawn_icons.zip");

	// run about dialog, then hide
	gtk_dialog_run(GTK_DIALOG (main_window->about_dialog));
	gtk_widget_hide(main_window->about_dialog);
}
开发者ID:michelleshu,项目名称:Physics-Game,代码行数:29,代码来源:AboutDialogWindow.c

示例3: praat_showLogo

void praat_showLogo (bool autoPopDown) {
	#if gtk
		static const gchar *authors [3] = { "Paul Boersma", "David Weenink", nullptr };

		GuiObject dialog = gtk_about_dialog_new ();
		#define xstr(s) str(s)
		#define str(s) #s
		gtk_about_dialog_set_version (GTK_ABOUT_DIALOG (dialog), xstr (PRAAT_VERSION_STR));
		gtk_about_dialog_set_copyright (GTK_ABOUT_DIALOG (dialog), "Copyright © 1992–" xstr(PRAAT_YEAR) " by Paul Boersma and David Weenink");
		gtk_about_dialog_set_license (GTK_ABOUT_DIALOG (dialog), "GPL");
		gtk_about_dialog_set_website (GTK_ABOUT_DIALOG (dialog), "http://www.praat.org");
		//gtk_about_dialog_set_authors (GTK_ABOUT_DIALOG (dialog), authors);
		g_signal_connect (GTK_DIALOG (dialog), "response", G_CALLBACK (gtk_widget_destroy), nullptr);

		gtk_dialog_run (GTK_DIALOG (dialog));

	#else
		if (theCurrentPraatApplication -> batch || ! theLogo.draw) return;
		if (! theLogo.dia) {
			int width  = theLogo.width_mm  / 25.4 * Gui_getResolution (nullptr);
			int height = theLogo.height_mm / 25.4 * Gui_getResolution (nullptr);
			theLogo.dia = GuiDialog_create (theCurrentPraatApplication -> topShell, 100, 100, width, height,
				U"About", gui_cb_goAway, nullptr, 0);
			theLogo.form = theLogo.dia;
			theLogo.drawingArea = GuiDrawingArea_createShown (theLogo.form, 0, width, 0, height,
				gui_drawingarea_cb_expose, gui_drawingarea_cb_click, nullptr, nullptr, nullptr, 0);
		}
		GuiThing_show (theLogo.form);
		GuiThing_show (theLogo.dia);
		#if motif
			if (autoPopDown)
				GuiAddTimeOut (2000, logo_timeOut, (XtPointer) nullptr);
		#endif
	#endif
}
开发者ID:guilhermegarcia,项目名称:praat-1,代码行数:35,代码来源:praat_logo.cpp

示例4: init_about_window

GtkWidget*
init_about_window(GtkWidget *)
{
	GtkWidget *about_window = NULL;
	GdkPixbuf *about_logo = NULL;
	const gchar *authors[] = {"Andy Lo A Foe\t\t\t<[email protected]>",
								"Dominique Michel\t\t<[email protected]>",
								"Erik de Castro Lopo\t\thttp://www.mega-nerd.com",
								"Madej",
								"\nPatches:",
								"Hubert Chan",
								"Viktor Radnai and Paul Brossier",
								"\nCheck AUTHORS file for a more complete list",
								NULL};
//	const gchar *artists[] = {"", NULL};
	const gchar *documenters[] = {"Yvo Timmermans",
									"Dominique Michel",
									"Andy Lo A Foe",
									NULL};
	const gchar *license = _("AlsaPlayer is free software; you can redistribute it and/or modify\n\
it under the terms of the GNU General Public Licence as published by\n\
the Free Software Foundation; either version 3 of the Licence, or\n\
(at your option) any later version.\n\
\n\
AlsaPlayer 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 Licence for more details.\n\
\n\
You should have received a copy of the GNU General Public Licence\n\
along with AlsaPlayer; if not, see <http://www.gnu.org/licenses/>.");

	about_logo = gdk_pixbuf_new_from_xpm_data((const char **)logo_xpm);

	about_window = gtk_about_dialog_new();

	gtk_about_dialog_set_name(GTK_ABOUT_DIALOG(about_window), "AlsaPlayer");
	gtk_about_dialog_set_version(GTK_ABOUT_DIALOG(about_window), VERSION);
	gtk_about_dialog_set_website(GTK_ABOUT_DIALOG(about_window), "http://alsaplayer.sourceforge.net");
	gtk_about_dialog_set_copyright(GTK_ABOUT_DIALOG(about_window), "Copyright © 1998-2014");
	gtk_about_dialog_set_comments(GTK_ABOUT_DIALOG(about_window), _("You like it, please contribute."));
	gtk_about_dialog_set_license(GTK_ABOUT_DIALOG(about_window), license);
	gtk_about_dialog_set_authors(GTK_ABOUT_DIALOG(about_window), authors);
//	gtk_about_dialog_set_artists(GTK_ABOUT_DIALOG(about_window), artists);
	gtk_about_dialog_set_documenters(GTK_ABOUT_DIALOG(about_window), documenters);
	gtk_about_dialog_set_translator_credits(GTK_ABOUT_DIALOG(about_window), _("translator-credits"));
	gtk_about_dialog_set_logo(GTK_ABOUT_DIALOG(about_window), about_logo);

	g_signal_connect(G_OBJECT(about_window), "delete-event", G_CALLBACK(about_delete_event), NULL);
	g_signal_connect(G_OBJECT(about_window), "response", G_CALLBACK(about_response), NULL);

	g_object_unref(G_OBJECT(about_logo));

	return about_window;
}
开发者ID:RafaelRMachado,项目名称:alsaplayer,代码行数:55,代码来源:AboutWindow.cpp

示例5: on_about_clicked

void
on_about_clicked(GtkButton* button, gpointer user_data) {
  GtkWidget *about;
  const gchar *authors[] = {
    "Sergey Zorin <[email protected]>",
    NULL
  };
  
  /* TRANSLATORS: Replace this string with your names, one name per line. */
  gchar *translators = "Sergey Zorin <[email protected]>\n"
    "Mathias Weinert\n"
    "Hayashi Kentaro";
  GdkPixbuf *about_logo_pixbuf;

  about = gtk_about_dialog_new();
  gtk_widget_set_name(about, "about");
  gtk_window_set_destroy_with_parent(GTK_WINDOW(about), TRUE);
  gtk_about_dialog_set_version(GTK_ABOUT_DIALOG(about), VERSION);
  gtk_about_dialog_set_name(GTK_ABOUT_DIALOG(about), _("diff-ext setup"));
  gtk_about_dialog_set_copyright(GTK_ABOUT_DIALOG(about), _("(c) 2007 Sergey Zorin. All rights reserved."));
  gtk_about_dialog_set_license(GTK_ABOUT_DIALOG(about), _("Copyright (c) 2007, Sergey Zorin\nAll rights reserved.\n\nRedistribution and use in source and binary forms, with or without\nmodification, are permitted provided that the following conditions\nare met:\n   1. Redistributions  of  source  code   must  retain  the  above\n      copyright notice,  this list of conditions and the following\n      disclaimer.\n   2. Redistributions in binary  form  must  reproduce  the  above\n      copyright notice,  this list of conditions and the following\n      disclaimer  in  the  documentation  and/or  other  materials\n      provided with the distribution.\n\nTHIS SOFTWARE  IS  PROVIDED  BY  THE  COPYRIGHT  HOLDERS  AND  CONTRIBUTORS\n\"AS IS\" AND ANY EXPRESS OR IMPLIED  WARRANTIES, INCLUDING,  BUT NOT LIMITED\nTO, THE IMPLIED WARRANTIES  OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\nPURPOSE  ARE  DISCLAIMED.  IN  NO  EVENT  SHALL  THE  COPYRIGHT   OWNER  OR\nCONTRIBUTORS  BE  LIABLE  FOR  ANY DIRECT,  INDIRECT, INCIDENTAL,  SPECIAL,\nEXEMPLARY,  OR  CONSEQUENTIAL  DAMAGES  (INCLUDING,  BUT  NOT  LIMITED  TO,\nPROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;\nOR BUSINESS INTERRUPTION)  HOWEVER CAUSED AND ON ANY THEORY  OF  LIABILITY,\nWHETHER IN CONTRACT,  STRICT LIABILITY,  OR  TORT  (INCLUDING NEGLIGENCE OR\nOTHERWISE) ARISING  IN  ANY WAY OUT OF THE USE  OF THIS  SOFTWARE,  EVEN IF\nADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n"));
  gtk_about_dialog_set_website(GTK_ABOUT_DIALOG(about), "http://diff-ext.sourceforge.net");
  gtk_about_dialog_set_website_label(GTK_ABOUT_DIALOG(about), _("diff-ext"));
  gtk_about_dialog_set_authors(GTK_ABOUT_DIALOG(about), authors);
  gtk_about_dialog_set_translator_credits(GTK_ABOUT_DIALOG(about), translators);
  about_logo_pixbuf = create_pixbuf("de.png");
  gtk_about_dialog_set_logo(GTK_ABOUT_DIALOG(about), about_logo_pixbuf);

  g_object_set_data(G_OBJECT(about), "about", about);
  
  gtk_widget_show(about); 
}
开发者ID:jmenashe,项目名称:diff-ext,代码行数:32,代码来源:callbacks.c

示例6: about_dialog_open

void about_dialog_open (void) {
	GtkWidget *about_dialog;
	gchar *license_trans;

	const gchar *authors[] = {"Jente Hidskes", NULL};
	const gchar *license[] = {
		N_("Gcolor3 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_("Gcolor3 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 this program. If not, see http://www.gnu.org/licenses/.")
	};
	license_trans = g_strjoin ("\n\n", _(license[0]), _(license[1]), _(license[2]), NULL);

	about_dialog = gtk_about_dialog_new ();
	gtk_about_dialog_set_program_name (GTK_ABOUT_DIALOG (about_dialog), "Gcolor3");
	gtk_about_dialog_set_comments (GTK_ABOUT_DIALOG (about_dialog), _("A simple color selection dialog in GTK3")),
	gtk_about_dialog_set_copyright (GTK_ABOUT_DIALOG (about_dialog), "Copyright \xc2\xa9 2013 Jente Hidskes");
	gtk_about_dialog_set_license (GTK_ABOUT_DIALOG (about_dialog), license_trans);
	gtk_about_dialog_set_wrap_license (GTK_ABOUT_DIALOG (about_dialog), TRUE);
	gtk_about_dialog_set_authors (GTK_ABOUT_DIALOG (about_dialog), authors);
	gtk_about_dialog_set_website_label (GTK_ABOUT_DIALOG (about_dialog), "GitHub");
	gtk_about_dialog_set_website (GTK_ABOUT_DIALOG (about_dialog), "https://github.com/Unia/gcolor3");
	gtk_about_dialog_set_logo_icon_name (GTK_ABOUT_DIALOG (about_dialog), "gcolor2");

	g_signal_connect (GTK_DIALOG (about_dialog), "response", G_CALLBACK (about_dialog_close), NULL);

	gtk_widget_show (about_dialog);
	g_free(license_trans);
}
开发者ID:binarycodes,项目名称:gcolor3,代码行数:35,代码来源:ui.c

示例7: on_help_about_activate

extern void
on_help_about_activate(void)
{
	GtkWidget *about;
	GdkPixbuf *logo;

	const gchar *authors[] = {"Sebastien Tricaud", 
				  "Jerome Marrec", 
				  "Frederic Motte", 
				  "Alastair Porter", 
				  NULL};
	
	const gchar *artists[] = {"Damien Cante (logos)", 
				  "Audrey Maurin (pixmaps from lilypond)",
				  NULL};

	gchar *filename;
	filename = get_file_from_data_dir("pixmaps/gscore.xpm");
	logo = gtk_image_get_pixbuf((GtkImage *)gtk_image_new_from_file(filename));

	about = gtk_about_dialog_new();

	gtk_about_dialog_set_name(GTK_ABOUT_DIALOG(about), "Gscore");
	gtk_about_dialog_set_version(GTK_ABOUT_DIALOG(about), VERSION);
	gtk_about_dialog_set_logo(GTK_ABOUT_DIALOG(about), logo);
	gtk_about_dialog_set_copyright(GTK_ABOUT_DIALOG(about), "Copyright (C) Sebastien Tricaud 2001-2005");
	gtk_about_dialog_set_license(GTK_ABOUT_DIALOG(about), LICENSE_TEXT);
	gtk_about_dialog_set_website(GTK_ABOUT_DIALOG(about), "http://www.gscore.org");
	gtk_about_dialog_set_comments(GTK_ABOUT_DIALOG(about), "A musical score editor");
	gtk_about_dialog_set_authors(GTK_ABOUT_DIALOG(about), authors);
	gtk_about_dialog_set_artists(GTK_ABOUT_DIALOG(about), artists);

	gtk_widget_show(about);

}
开发者ID:BackupTheBerlios,项目名称:gscore-svn,代码行数:35,代码来源:help.c

示例8: gtk_about_dialog_new

GtkWidget *trg_about_window_new(GtkWindow * parent)
{
    GtkWidget *dialog;
    GdkPixbuf *logo;
    const gchar *trgAuthors[] = { "Alan Fitton <[email protected]>", NULL };

    dialog = gtk_about_dialog_new();
    gtk_window_set_transient_for(GTK_WINDOW(dialog), parent);
    gtk_window_set_destroy_with_parent(GTK_WINDOW(dialog), TRUE);

    logo =
        gtk_icon_theme_load_icon(gtk_icon_theme_get_default(),
                                 PACKAGE_NAME, 48,
                                 GTK_ICON_LOOKUP_USE_BUILTIN, NULL);

    if (logo != NULL) {
        gtk_about_dialog_set_logo(GTK_ABOUT_DIALOG(dialog), logo);
        g_object_unref(logo);
    }

	gtk_about_dialog_set_license_type (GTK_ABOUT_DIALOG(dialog), GTK_LICENSE_GPL_2_0);

    gtk_about_dialog_set_program_name(GTK_ABOUT_DIALOG(dialog),
                                      PACKAGE_NAME);
    gtk_about_dialog_set_version(GTK_ABOUT_DIALOG(dialog),
                                 PACKAGE_VERSION);
    gtk_about_dialog_set_copyright(GTK_ABOUT_DIALOG(dialog),
                                   "(C) 2011-2013 Alan Fitton");
    gtk_about_dialog_set_comments(GTK_ABOUT_DIALOG(dialog),
                                  _
                                  ("A remote client to transmission-daemon."));

    gtk_about_dialog_set_website(GTK_ABOUT_DIALOG(dialog),
                                 "https://github.com/transmission-remote-gtk/transmission-remote-gtk");
    gtk_about_dialog_set_website_label(GTK_ABOUT_DIALOG(dialog),
                                       "https://github.com/transmission-remote-gtk/transmission-remote-gtk");

    gtk_about_dialog_set_authors(GTK_ABOUT_DIALOG(dialog), trgAuthors);
    /*gtk_about_dialog_set_documenters(GTK_ABOUT_DIALOG(dialog), documenters); */
    gtk_about_dialog_set_translator_credits(GTK_ABOUT_DIALOG(dialog),
                                            "translations kindly contributed by\n\n"
                                            "* Pierre Rudloff (French)\n"
                                            "* Julian Held (German)\n"
                                            "* Algimantas Margevičius (Lithuanian)\n"
                                            "* Youn sok Choi (Korean)\n"
                                            "* Piotr (Polish)\n"
                                            "* Y3AVD (Russian)\n"
                                            "* aspidzent (Spanish)\n"
                                            "* Åke Svensson (Swedish)\n"
                                            "* ROR191 (Ukranian)\n");


    return dialog;
}
开发者ID:transmission-remote-gtk,项目名称:transmission-remote-gtk,代码行数:54,代码来源:trg-about-window.c

示例9: on_about

void on_about(GtkAction* act, FmMainWin* win)
{
    const char* authors[]={"Hong Jen Yee <[email protected]>", NULL};
    GtkWidget* dlg = gtk_about_dialog_new();
    gtk_about_dialog_set_program_name(GTK_ABOUT_DIALOG(dlg), "libfm-demo");
    gtk_about_dialog_set_authors(GTK_ABOUT_DIALOG(dlg), authors);
    gtk_about_dialog_set_comments(GTK_ABOUT_DIALOG(dlg), "A demo program for libfm");
    gtk_about_dialog_set_website(GTK_ABOUT_DIALOG(dlg), "http://pcmanfm.sf.net/");
    gtk_dialog_run(GTK_DIALOG(dlg));
    gtk_widget_destroy(dlg);
}
开发者ID:gilir,项目名称:libfm-debian,代码行数:11,代码来源:main-win.c

示例10: cb_about

void cb_about()
{
    GtkWidget *about;
    const gchar *authors[] = {
        "Author:",
        "Leandro A. F. Pereira",
        "",
        "Contributors:",
        "Agney Lopes Roth Ferraz",
        "SCSI support by Pascal F. Martin",
        "",
        "Based on work by:",
        "MD5 implementation by Colin Plumb (see md5.c for details)",
        "SHA1 implementation by Steve Raid (see sha1.c for details)",
        "Blowfish implementation by Paul Kocher (see blowfich.c for details)",
        "Raytracing benchmark by John Walker (see fbench.c for details)",
        "Some code partly based on x86cpucaps by Osamu Kayasono",
        "Vendor list based on GtkSysInfo by Pissens Sebastien",
        NULL
    };
    const gchar *artists[] = {
        "The GNOME Project",
        "Tango Project",
        NULL
    };

    about = gtk_about_dialog_new();
    gtk_about_dialog_set_name(GTK_ABOUT_DIALOG(about), "HardInfo");
    gtk_about_dialog_set_version(GTK_ABOUT_DIALOG(about), VERSION);
    gtk_about_dialog_set_copyright(GTK_ABOUT_DIALOG(about),
				   "Copyright \302\251 2003-2007 " 
				   "Leandro A. F. Pereira");
    gtk_about_dialog_set_comments(GTK_ABOUT_DIALOG(about),
				  "System information and benchmark tool");
    gtk_about_dialog_set_logo(GTK_ABOUT_DIALOG(about),
			      icon_cache_get_pixbuf("logo.png"));

    gtk_about_dialog_set_license(GTK_ABOUT_DIALOG(about),
       "HardInfo 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, version 2.\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., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA");
#if GTK_CHECK_VERSION(2,8,0)
    gtk_about_dialog_set_wrap_license(GTK_ABOUT_DIALOG(about), TRUE);
#endif
    
    gtk_about_dialog_set_authors(GTK_ABOUT_DIALOG(about), authors);
    gtk_about_dialog_set_artists(GTK_ABOUT_DIALOG(about), artists);

    gtk_dialog_run(GTK_DIALOG(about));
    gtk_widget_destroy(about);
}
开发者ID:BackupTheBerlios,项目名称:hardinfo-svn,代码行数:58,代码来源:callbacks.c

示例11: aboutClicked

void aboutClicked()
{
    GtkWidget *dialog = gtk_about_dialog_new();
    gtk_about_dialog_set_program_name(GTK_ABOUT_DIALOG(dialog), "Βαθμός πτυχίου!");
//    gtk_about_dialog_set_version(GTK_ABOUT_DIALOG(dialog), "1.0");
    gtk_about_dialog_set_copyright(GTK_ABOUT_DIALOG(dialog), "(c) Βασιλάκος Γεώργιος");
    gtk_about_dialog_set_comments(GTK_ABOUT_DIALOG(dialog),
                                  "Υπολογίζει το βαθμό πτυχίου σύμφωνα με το νέο πρόγραμμα σπουδών (>2005Χ) του Τμήματος Τεχνολογίας Πληροφορικής και Τηλεπικοινωνιών ΤΕΙ Λάρισας.");
    gtk_about_dialog_set_logo(GTK_ABOUT_DIALOG(dialog),  gdk_pixbuf_new_from_xpm_data((const char **) icon()));
    gtk_dialog_run(GTK_DIALOG (dialog));
    gtk_widget_destroy(dialog);
}
开发者ID:LinuxTeam-teilar,项目名称:Bathmoi,代码行数:12,代码来源:bathmoi.c

示例12: show_about

void show_about () {
  GtkWidget *dialog = gtk_about_dialog_new();

  gtk_about_dialog_set_program_name(GTK_ABOUT_DIALOG(dialog), "Text Editor");
  //gtk_window_set_title(GTK_WINDOW(dialog), "About Text Editor");
  
  gtk_about_dialog_set_comments(GTK_ABOUT_DIALOG(dialog), 
     "Text Editor for IPP exercises\n");
    
  gtk_dialog_run(GTK_DIALOG (dialog));
  gtk_widget_destroy(dialog);
}
开发者ID:agaX,项目名称:SpellChecker,代码行数:12,代码来源:extra.c

示例13: CFGabout

void CFGabout() {
	const char *authors[]= {"linuzappz <[email protected]>", "Wei Mingzhi <[email protected]>", NULL};
	GtkWidget *widget;

	widget = gtk_about_dialog_new();
	gtk_about_dialog_set_program_name(GTK_ABOUT_DIALOG(widget), "Socket NetPlay Driver");
	gtk_about_dialog_set_version(GTK_ABOUT_DIALOG(widget), "0.21");
	gtk_about_dialog_set_authors(GTK_ABOUT_DIALOG(widget), authors);
	gtk_about_dialog_set_website(GTK_ABOUT_DIALOG(widget), "http://www.codeplex.com/pcsxr/");

	gtk_dialog_run(GTK_DIALOG(widget));
	gtk_widget_destroy(widget);
}
开发者ID:Asmodean-,项目名称:PCSXR,代码行数:13,代码来源:gui.c

示例14: cb_about_module

void cb_about_module(GtkAction * action)
{
    Shell *shell = shell_get_main_shell();
    GSList *modules = shell->tree->modules;
    ModuleAbout *ma;
    gchar *name;

    g_object_get(G_OBJECT(action), "tooltip", &name, NULL);

    for (; modules; modules = modules->next) {
	ShellModule *sm = (ShellModule *) modules->data;

	if (!g_str_equal(sm->name, name))
	    continue;

	if ((ma = module_get_about(sm))) {
	    GtkWidget *about;
	    gchar *text;

	    about = gtk_about_dialog_new();

	    text = g_strdup_printf("%s Module", sm->name);
	    gtk_about_dialog_set_name(GTK_ABOUT_DIALOG(about), text);
	    g_free(text);

	    gtk_about_dialog_set_version(GTK_ABOUT_DIALOG(about),
					 ma->version);

	    text = g_strdup_printf("Written by %s\nLicensed under %s",
				   ma->author, ma->license);
	    gtk_about_dialog_set_copyright(GTK_ABOUT_DIALOG(about), text);
	    g_free(text);

	    if (ma->description)
		gtk_about_dialog_set_comments(GTK_ABOUT_DIALOG(about),
					      ma->description);

	    gtk_about_dialog_set_logo(GTK_ABOUT_DIALOG(about), sm->icon);
	    gtk_dialog_run(GTK_DIALOG(about));
	    gtk_widget_destroy(about);
	} else {
	    g_warning
		("No about information is associated with the %s module.",
		 name);
	}

	break;
    }

    g_free(name);
}
开发者ID:ltcabral,项目名称:hardinfo,代码行数:51,代码来源:callbacks.c

示例15: about

static
void about() {
	const char *authors[]= {"edgbla <[email protected]>", NULL};
	GtkWidget *widget;

	widget = gtk_about_dialog_new();
	gtk_about_dialog_set_program_name(GTK_ABOUT_DIALOG(widget), "Link Cable");
	gtk_about_dialog_set_version(GTK_ABOUT_DIALOG(widget), "1.0");
	gtk_about_dialog_set_authors(GTK_ABOUT_DIALOG(widget), authors);
	gtk_about_dialog_set_website(GTK_ABOUT_DIALOG(widget), "http://www.codeplex.com/pcsxr/");

	gtk_dialog_run(GTK_DIALOG(widget));
	gtk_widget_destroy(widget);
}
开发者ID:DAOWAce,项目名称:pcsxr,代码行数:14,代码来源:gui.c


注:本文中的GTK_ABOUT_DIALOG函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。