Exemplo n.º 1
0
void GUI::show_about(void) {
 
   Gtk::AboutDialog  dialog ;
 
   dialog.set_program_name(PRGNAME_STRING) ;
 
   dialog.set_version(VERSION_STRING) ;
 
   dialog.set_website("http://www.open-source-projects.net/Edip/Edip_presentation.html") ;
 
   dialog.set_website_label("Edip Website") ;
 
   dialog.set_wrap_license(true) ;
 
   dialog.set_copyright(LICENSE_STRING) ;
 
   dialog.set_license(Glib::file_get_contents(PATH_TO_EDIP_LICENSE)) ;
 
   dialog.set_logo_default() ;
 
   vector<Glib::ustring> authors = {AUTHOR_STRING "<*****@*****.**>"} ;
 
   dialog.set_authors(authors) ;
 
   vector<Glib::ustring> artists = {AUTHOR_STRING "<*****@*****.**>"} ;
 
   dialog.set_artists(artists) ;
 
   dialog.set_comments("Thanks to my beloved mother, my family and to the doctors.\nStay away from drugs: drugs destroy your brain and your life.") ;
 
   dialog.run() ;
 
   dialog.close() ;

} 
Exemplo n.º 2
0
void MainWindow::_on_about_activate()
{
  Gtk::AboutDialog dialog;
  dialog.set_program_name(PACKAGE_NAME);
  dialog.set_version(PACKAGE_VERSION);
  dialog.set_authors(list<string>(1, PACKAGE_AUTHORS));
  // dialog.set_license(PACKAGE_LICENSE);
  dialog.set_copyright(PACKAGE_COPYRIGHT);

  dialog.run();
}
Exemplo n.º 3
0
void MainWindow::onAction_About()
{
	Gtk::AboutDialog dlg;

	dlg.set_transient_for(*m_window);
	dlg.set_program_name(PACKAGE_NAME);
	dlg.set_version(PACKAGE_VERSION);
	dlg.set_logo_icon_name("gnethogs"),
	dlg.set_comments(_("Per-application bandwidth usage statistics."));
	dlg.set_authors({"<a href=\"mailto:[email protected]\">Mohamed Boussaffa</a>"});
	dlg.set_license_type(Gtk::LICENSE_GPL_3_0);
	dlg.run();
}
Exemplo n.º 4
0
 void SmartChessWindow::onAbout() {
     Gtk::AboutDialog dialog;
     dialog.set_program_name("Smart chess");
 }