1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-25 09:13:06 +00:00

(trunk gtk) #3644 'about dialog keeps reappearing' - fixed.

This commit is contained in:
Charles Kerr 2010-10-18 11:43:30 +00:00
parent 4a05b4c3e6
commit ac588c4835

View file

@ -1407,41 +1407,39 @@ onUriClicked( GtkAboutDialog * u UNUSED, const gchar * uri, gpointer u2 UNUSED )
} }
static void static void
about( GtkWindow * parent ) about( GtkWindow * parent UNUSED )
{ {
const char *authors[] = GtkWidget * d;
{ const char * website_uri = "http://www.transmissionbt.com/";
const char * authors[] = {
"Charles Kerr (Backend; GTK+)", "Charles Kerr (Backend; GTK+)",
"Mitchell Livingston (Backend; OS X)", "Mitchell Livingston (Backend; OS X)",
"Kevin Glowacz (Web client)",
NULL NULL
}; };
const char * website_uri = "http://www.transmissionbt.com/";
gtk_about_dialog_set_url_hook( onUriClicked, NULL, NULL ); gtk_about_dialog_set_url_hook( onUriClicked, NULL, NULL );
gtk_show_about_dialog( parent, d = g_object_new( GTK_TYPE_ABOUT_DIALOG,
"name", g_get_application_name( ), "authors", authors,
"comments", "comments", _( "A fast and easy BitTorrent client" ),
_( "A fast and easy BitTorrent client" ), "copyright", _( "Copyright (c) The Transmission Project" ),
"version", LONG_VERSION_STRING, "logo-icon-name", MY_CONFIG_NAME,
"website", website_uri, "name", g_get_application_name( ),
"website-label", website_uri, /* Translators: translate "translator-credits" as your name
"copyright", to have it appear in the credits in the "About"
_( "Copyright (c) The Transmission Project" ), dialog */
"logo-icon-name", MY_CONFIG_NAME, "translator-credits", _( "translator-credits" ),
"version", LONG_VERSION_STRING,
"website", website_uri,
"website-label", website_uri,
#ifdef SHOW_LICENSE #ifdef SHOW_LICENSE
"license", LICENSE, "license", LICENSE,
"wrap-license", TRUE, "wrap-license", TRUE,
#endif #endif
"authors", authors, NULL );
/* Translators: translate "translator-credits" as
your name gtk_dialog_run( GTK_DIALOG( d ) );
to have it appear in the credits in the "About" gtk_widget_destroy( d );
dialog */
"translator-credits", _( "translator-credits" ),
NULL );
} }
static void static void