[gnome-settings-daemon] color: fix the build
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon] color: fix the build
- Date: Tue, 31 May 2011 13:21:43 +0000 (UTC)
commit 79b9e5ae90ecbf2461f3039ec64e58592cc4c224
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Tue May 31 09:18:46 2011 -0400
color: fix the build
- use a non-deprecated method to create the GdkAppLaunchContext
- don't forget to include gdk.h
plugins/color/gsd-color-manager.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/plugins/color/gsd-color-manager.c b/plugins/color/gsd-color-manager.c
index 6746ad1..8fda8e0 100644
--- a/plugins/color/gsd-color-manager.c
+++ b/plugins/color/gsd-color-manager.c
@@ -24,6 +24,7 @@
#include <glib/gi18n.h>
#include <colord.h>
#include <libnotify/notify.h>
+#include <gdk/gdk.h>
#ifdef HAVE_LIBCANBERRA
#include <canberra-gtk.h>
@@ -119,7 +120,7 @@ gcm_session_exec_control_center (GsdColorManager *manager)
GdkAppLaunchContext *launch_context;
/* setup the launch context so the startup notification is correct */
- launch_context = gdk_app_launch_context_new ();
+ launch_context = gdk_display_get_app_launch_context (gdk_display_get_default ());
app_info = g_app_info_create_from_commandline (BINDIR "/gnome-control-center color",
"gnome-control-center",
G_APP_INFO_CREATE_SUPPORTS_STARTUP_NOTIFICATION,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]