aboutsummaryrefslogtreecommitdiffstats
path: root/src/empathy-main-window.c
diff options
context:
space:
mode:
authorEmilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk>2011-01-11 01:12:47 +0800
committerEmilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk>2011-01-11 19:37:19 +0800
commit2392932b2eed456f7d5b39d0a9eb839194dfb0e1 (patch)
tree39c6e25cda9b8d2a9aa266207d5e2207e9d66d52 /src/empathy-main-window.c
parent41274d6973eef4628c1a1e26c281b703ecf8f980 (diff)
downloadgsoc2013-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-main-window.c')
-rw-r--r--src/empathy-main-window.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/empathy-main-window.c b/src/empathy-main-window.c
index 88335b654..740220b2f 100644
--- a/src/empathy-main-window.c
+++ b/src/empathy-main-window.c
@@ -1479,14 +1479,12 @@ static void
main_window_help_debug_cb (GtkAction *action,
EmpathyMainWindow *window)
{
- GdkScreen *screen = gdk_screen_get_default ();
+ GdkDisplay *display;
GError *error = NULL;
gchar *path;
GAppInfo *app_info;
GdkAppLaunchContext *context = NULL;
- g_return_if_fail (GDK_IS_SCREEN (screen));
-
/* Try to run from source directory if possible */
path = g_build_filename (g_getenv ("EMPATHY_SRCDIR"), "src",
"empathy-debugger", NULL);
@@ -1503,8 +1501,8 @@ main_window_help_debug_cb (GtkAction *action,
goto out;
}
- context = gdk_app_launch_context_new ();
- gdk_app_launch_context_set_display (context, gdk_screen_get_display (screen));
+ display = gdk_display_get_default ();
+ context = gdk_display_get_app_launch_context (display);
if (!g_app_info_launch (app_info, NULL, (GAppLaunchContext *) context,
&error)) {