[gnome-initial-setup] Avoid a critical warning when changing language



commit d23ff30b6780582b885a3784b2667f3810474f05
Author: Matthias Clasen <mclasen redhat com>
Date:   Fri Nov 16 20:10:32 2012 -0500

    Avoid a critical warning when changing language
    
    The ::prepare signal handler was called after the page was
    already finalized. We can avoid this by using g_signal_connect_object.

 .../pages/summary/gis-summary-page.c               |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gnome-initial-setup/pages/summary/gis-summary-page.c b/gnome-initial-setup/pages/summary/gis-summary-page.c
index e9c9fe1..d893786 100644
--- a/gnome-initial-setup/pages/summary/gis-summary-page.c
+++ b/gnome-initial-setup/pages/summary/gis-summary-page.c
@@ -283,7 +283,7 @@ gis_summary_page_constructed (GObject *object)
 
   gtk_container_add (GTK_CONTAINER (page), WID ("summary-page"));
 
-  g_signal_connect (assistant, "prepare", G_CALLBACK (prepare_cb), page);
+  g_signal_connect_object (assistant, "prepare", G_CALLBACK (prepare_cb), page, 0);
 
   g_signal_connect (WID("summary-start-button"), "clicked", G_CALLBACK (byebye_cb), page);
   g_signal_connect (WID("summary-tour-button"), "clicked", G_CALLBACK (tour_cb), page);



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