[gtk+] widget-factory: Make the About dialog actually transient



commit 4aa101b2c6becb904804f492b8759efaf4e44b1a
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Wed Nov 6 12:50:31 2013 -0500

    widget-factory: Make the About dialog actually transient
    
    It's an app action, not a window action.

 demos/widget-factory/widget-factory.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/demos/widget-factory/widget-factory.c b/demos/widget-factory/widget-factory.c
index df301e7..ba12b7e 100644
--- a/demos/widget-factory/widget-factory.c
+++ b/demos/widget-factory/widget-factory.c
@@ -55,14 +55,14 @@ activate_about (GSimpleAction *action,
                 GVariant      *parameter,
                 gpointer       user_data)
 {
-  GtkWidget *window = user_data;
+  GtkApplication *app = user_data;
   const gchar *authors[] = {
     "Andrea Cimitan",
     "Cosimo Cecchi",
     NULL
   };
 
-  gtk_show_about_dialog (GTK_WINDOW (window),
+  gtk_show_about_dialog (GTK_WINDOW (gtk_application_get_active_window (app)),
                          "program-name", "GTK+ Widget Factory",
                          "version", g_strdup_printf ("%s,\nRunning against GTK+ %d.%d.%d",
                                                      PACKAGE_VERSION,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]