From: Jordan Lee Date: Tue, 11 Oct 2011 14:36:03 +0000 (+0000) Subject: (trunk gtk) #4553 "Set about dialog to modal when compiled with GTK+-3" -- fixed. X-Git-Tag: 2.50b1~232 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=72a021a9f3b42b854c76f417a041cc7dde5bd7fe;p=transmission (trunk gtk) #4553 "Set about dialog to modal when compiled with GTK+-3" -- fixed. --- diff --git a/gtk/main.c b/gtk/main.c index 3a518cc70..8b2854d63 100644 --- a/gtk/main.c +++ b/gtk/main.c @@ -1285,35 +1285,29 @@ update_model_loop( gpointer gdata ) static void show_about_dialog( GtkWindow * parent ) { - GtkWidget * d; - const char * website_uri = "http://www.transmissionbt.com/"; - const char * authors[] = { - "Jordan Lee (Backend; GTK+)", - "Mitchell Livingston (Backend; OS X)", - NULL - }; - - 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, + const char * uri = "http://www.transmissionbt.com/"; + const char * authors[] = { "Jordan Lee (Backend; GTK+)", + "Mitchell Livingston (Backend; OS X)", + NULL }; + + gtk_show_about_dialog( parent, + "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", uri, + "website-label", uri, #ifdef SHOW_LICENSE - "license", LICENSE, - "wrap-license", TRUE, + "license", LICENSE, + "wrap-license", TRUE, #endif - NULL ); - gtk_window_set_transient_for( GTK_WINDOW( d ), parent ); - g_signal_connect_swapped( d, "response", G_CALLBACK (gtk_widget_destroy), d ); - gtk_widget_show( d ); + NULL ); } static void