[brasero] Fix use of deprecated signal for GApplication



commit 16e30385fdeb57fe9895f66843759b2404445737
Author: Philippe Rouquier <bonfire-app wanadoo fr>
Date:   Thu Nov 11 14:12:20 2010 +0100

    Fix use of deprecated signal for GApplication

 src/brasero-app.c |   12 +++++-------
 1 files changed, 5 insertions(+), 7 deletions(-)
---
diff --git a/src/brasero-app.c b/src/brasero-app.c
index 8569fa0..3bd1cd3 100644
--- a/src/brasero-app.c
+++ b/src/brasero-app.c
@@ -1999,16 +1999,14 @@ brasero_app_create_mainwin (BraseroApp *app)
 }
 
 static void
-brasero_app_prepare_activation (GApplication *gapp,
-                                GVariant *arguments,
-                                GVariant *platform_data,
-                                BraseroApp *app)
+brasero_app_activate (GApplication *gapp,
+                      BraseroApp *app)
 {
 	BraseroAppPrivate *priv;
 
 	priv = BRASERO_APP_PRIVATE (app);
 
-	/* Except if we are supposed to quit show the window */
+	/* Except if we are supposed to quit, show the window */
 	if (priv->mainwin_running) {
 		gtk_widget_show (priv->mainwin);
 		gtk_window_present (GTK_WINDOW (priv->mainwin));
@@ -2030,8 +2028,8 @@ brasero_app_run_mainwin (BraseroApp *app)
 
 	if (priv->gapp)
 		g_signal_connect (priv->gapp,
-				  "prepare-activation",
-				  G_CALLBACK (brasero_app_prepare_activation),
+				  "activate",
+				  G_CALLBACK (brasero_app_activate),
 				  app);
 	gtk_main ();
 	return TRUE;



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