[gnome-settings-daemon] keyboard: don't use gdk_spawn API to fix build with GTK+ 2.91.7



commit 24271e620ab095ebdd4c618df74d015efa0d0a91
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Thu Dec 23 19:40:40 2010 +0100

    keyboard: don't use gdk_spawn API to fix build with GTK+ 2.91.7

 plugins/keyboard/gsd-keyboard-xkb.c |   16 +++++++++++++---
 1 files changed, 13 insertions(+), 3 deletions(-)
---
diff --git a/plugins/keyboard/gsd-keyboard-xkb.c b/plugins/keyboard/gsd-keyboard-xkb.c
index 6f0e3d7..e9f0f0e 100644
--- a/plugins/keyboard/gsd-keyboard-xkb.c
+++ b/plugins/keyboard/gsd-keyboard-xkb.c
@@ -145,11 +145,21 @@ apply_desktop_settings (void)
 static void
 popup_menu_launch_capplet ()
 {
+	GAppInfo *info;
+	GdkAppLaunchContext *ctx;
 	GError *error = NULL;
 
-	gdk_spawn_command_line_on_screen (gdk_screen_get_default (),
-					  "gnome-keyboard-properties",
-					  &error);
+	info = g_app_info_create_from_commandline ("gnome-keyboard-properties", NULL, 0, &error);
+
+	if (info != NULL) {
+		ctx = gdk_display_get_app_launch_context (gdk_display_get_default ());
+
+		g_app_info_launch (info, NULL,
+				   G_APP_LAUNCH_CONTEXT (ctx), &error);
+
+		g_object_unref (info);
+		g_object_unref (ctx);
+	}
 
 	if (error != NULL) {
 		g_warning



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