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:
parent
4a05b4c3e6
commit
ac588c4835
1 changed files with 23 additions and 25 deletions
48
gtk/main.c
48
gtk/main.c
|
@ -1407,41 +1407,39 @@ onUriClicked( GtkAboutDialog * u UNUSED, const gchar * uri, gpointer u2 UNUSED )
|
|||
}
|
||||
|
||||
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+)",
|
||||
"Mitchell Livingston (Backend; OS X)",
|
||||
"Kevin Glowacz (Web client)",
|
||||
NULL
|
||||
};
|
||||
|
||||
const char * website_uri = "http://www.transmissionbt.com/";
|
||||
|
||||
gtk_about_dialog_set_url_hook( onUriClicked, NULL, NULL );
|
||||
|
||||
gtk_show_about_dialog( parent,
|
||||
"name", g_get_application_name( ),
|
||||
"comments",
|
||||
_( "A fast and easy BitTorrent client" ),
|
||||
"version", LONG_VERSION_STRING,
|
||||
"website", website_uri,
|
||||
"website-label", website_uri,
|
||||
"copyright",
|
||||
_( "Copyright (c) The Transmission Project" ),
|
||||
"logo-icon-name", MY_CONFIG_NAME,
|
||||
d = g_object_new( GTK_TYPE_ABOUT_DIALOG,
|
||||
"authors", authors,
|
||||
"comments", _( "A fast and easy BitTorrent client" ),
|
||||
"copyright", _( "Copyright (c) The Transmission Project" ),
|
||||
"logo-icon-name", MY_CONFIG_NAME,
|
||||
"name", g_get_application_name( ),
|
||||
/* Translators: translate "translator-credits" as your name
|
||||
to have it appear in the credits in the "About"
|
||||
dialog */
|
||||
"translator-credits", _( "translator-credits" ),
|
||||
"version", LONG_VERSION_STRING,
|
||||
"website", website_uri,
|
||||
"website-label", website_uri,
|
||||
#ifdef SHOW_LICENSE
|
||||
"license", LICENSE,
|
||||
"wrap-license", TRUE,
|
||||
"license", LICENSE,
|
||||
"wrap-license", TRUE,
|
||||
#endif
|
||||
"authors", authors,
|
||||
/* Translators: translate "translator-credits" as
|
||||
your name
|
||||
to have it appear in the credits in the "About"
|
||||
dialog */
|
||||
"translator-credits", _( "translator-credits" ),
|
||||
NULL );
|
||||
NULL );
|
||||
|
||||
gtk_dialog_run( GTK_DIALOG( d ) );
|
||||
gtk_widget_destroy( d );
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
Loading…
Reference in a new issue