diff options
author | Emilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk> | 2011-01-11 01:12:47 +0800 |
---|---|---|
committer | Emilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk> | 2011-01-11 19:37:19 +0800 |
commit | 2392932b2eed456f7d5b39d0a9eb839194dfb0e1 (patch) | |
tree | 39c6e25cda9b8d2a9aa266207d5e2207e9d66d52 /src/empathy-accounts-dialog.c | |
parent | 41274d6973eef4628c1a1e26c281b703ecf8f980 (diff) | |
download | gsoc2013-empathy-2392932b2eed456f7d5b39d0a9eb839194dfb0e1.tar gsoc2013-empathy-2392932b2eed456f7d5b39d0a9eb839194dfb0e1.tar.gz gsoc2013-empathy-2392932b2eed456f7d5b39d0a9eb839194dfb0e1.tar.bz2 gsoc2013-empathy-2392932b2eed456f7d5b39d0a9eb839194dfb0e1.tar.lz gsoc2013-empathy-2392932b2eed456f7d5b39d0a9eb839194dfb0e1.tar.xz gsoc2013-empathy-2392932b2eed456f7d5b39d0a9eb839194dfb0e1.tar.zst gsoc2013-empathy-2392932b2eed456f7d5b39d0a9eb839194dfb0e1.zip |
Don't use deprecated gdk_app_launch_context_new()
Diffstat (limited to 'src/empathy-accounts-dialog.c')
-rw-r--r-- | src/empathy-accounts-dialog.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/empathy-accounts-dialog.c b/src/empathy-accounts-dialog.c index 196ffceb5..f1a21140b 100644 --- a/src/empathy-accounts-dialog.c +++ b/src/empathy-accounts-dialog.c @@ -2389,6 +2389,7 @@ empathy_accounts_dialog_show_application (GdkScreen *screen, gboolean hidden) { GError *error = NULL; + GdkDisplay *display; GString *cmd; gchar *path; GAppInfo *app_info; @@ -2435,8 +2436,8 @@ empathy_accounts_dialog_show_application (GdkScreen *screen, goto out; } - context = gdk_app_launch_context_new (); - gdk_app_launch_context_set_display (context, gdk_screen_get_display (screen)); + display = gdk_screen_get_display (screen); + context = gdk_display_get_app_launch_context (display); if (!g_app_info_launch (app_info, NULL, (GAppLaunchContext *) context, &error)) |