diff options
author | Stefano Karapetsas <[email protected]> | 2012-12-23 11:07:10 -0800 |
---|---|---|
committer | Stefano Karapetsas <[email protected]> | 2012-12-23 11:07:10 -0800 |
commit | e6f5e94d1bff4dbf166d45d5f2d3fb81fcb6140c (patch) | |
tree | 4632f7f05c88598aeb882cace1fa7cc4a01d4b46 /plugins/keyboard/msd-keyboard-xkb.c | |
parent | f6c53419d075eb15dd952119bfc0bc9db2c30fbd (diff) | |
parent | d58a3b0f224b999e8812242e3e93091cf077a59d (diff) | |
download | mate-settings-daemon-e6f5e94d1bff4dbf166d45d5f2d3fb81fcb6140c.tar.bz2 mate-settings-daemon-e6f5e94d1bff4dbf166d45d5f2d3fb81fcb6140c.tar.xz |
Merge pull request #34 from jasmineaura/develop
Remove last remaining deprecations (GDK)
Diffstat (limited to 'plugins/keyboard/msd-keyboard-xkb.c')
-rw-r--r-- | plugins/keyboard/msd-keyboard-xkb.c | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/plugins/keyboard/msd-keyboard-xkb.c b/plugins/keyboard/msd-keyboard-xkb.c index b9b5c24..d37ea05 100644 --- a/plugins/keyboard/msd-keyboard-xkb.c +++ b/plugins/keyboard/msd-keyboard-xkb.c @@ -191,11 +191,24 @@ apply_desktop_settings_cb (GSettings *settings, gchar *key, gpointer user_data static void popup_menu_launch_capplet () { + GAppInfo *info; + GdkAppLaunchContext *context; GError *error = NULL; - gdk_spawn_command_line_on_screen (gdk_screen_get_default (), - "mate-keyboard-properties", - &error); + info = g_app_info_create_from_commandline ("mate-keyboard-properties", NULL, 0, &error); + + if (info != NULL) { +# if GTK_CHECK_VERSION (3, 0, 0) + context = gdk_display_get_app_launch_context (gdk_display_get_default ()); +# else + context = gdk_app_launch_context_new (); +# endif + g_app_info_launch (info, NULL, + G_APP_LAUNCH_CONTEXT (context), &error); + + g_object_unref (info); + g_object_unref (context); + } if (error != NULL) { g_warning |