[gnome-user-share] all: don't use deprecated GDK methods



commit 7b51e6c85653095e8989ee8e05853f3a98b00879
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Mon May 21 13:20:19 2012 -0400

    all: don't use deprecated GDK methods
    
    https://bugzilla.gnome.org/show_bug.cgi?id=676443
    
    https://bugzilla.gnome.org/show_bug.cgi?id=676515

 src/obexpush.c |    7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/src/obexpush.c b/src/obexpush.c
index f8c1145..481cc7e 100644
--- a/src/obexpush.c
+++ b/src/obexpush.c
@@ -72,7 +72,7 @@ notification_launch_action_on_file_cb (NotifyNotification *notification,
 				       const char *action,
 				       const char *file_uri)
 {
-	GdkScreen *screen;
+	GdkDisplay *display;
 	GAppLaunchContext *ctx;
 	GTimeVal val;
 
@@ -80,9 +80,8 @@ notification_launch_action_on_file_cb (NotifyNotification *notification,
 
 	g_get_current_time (&val);
 
-	ctx = G_APP_LAUNCH_CONTEXT (gdk_app_launch_context_new ());
-	screen = gdk_screen_get_default ();
-	gdk_app_launch_context_set_screen (GDK_APP_LAUNCH_CONTEXT (ctx), screen);
+	display = gdk_display_get_default ();
+	ctx = G_APP_LAUNCH_CONTEXT (gdk_display_get_app_launch_context (display));
 	gdk_app_launch_context_set_timestamp (GDK_APP_LAUNCH_CONTEXT (ctx), val.tv_sec);
 
 	/* We launch the file viewer for the file */



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