]> granicus.if.org Git - transmission/commitdiff
(trunk gtk) #4553 "Set about dialog to modal when compiled with GTK+-3" -- fixed.
authorJordan Lee <jordan@transmissionbt.com>
Tue, 11 Oct 2011 14:36:03 +0000 (14:36 +0000)
committerJordan Lee <jordan@transmissionbt.com>
Tue, 11 Oct 2011 14:36:03 +0000 (14:36 +0000)
gtk/main.c

index 3a518cc701893379c48446130454365b48d04beb..8b2854d63c95ca209bd587544bd61262983f2be7 100644 (file)
@@ -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