[libgnomekbd] One more usage of deprecated APIs eliminated



commit d656bc939e915085af6737019d15c6f5128ab0a6
Author: Sergey V. Udaltsov <svu gnome org>
Date:   Wed Feb 22 00:58:10 2012 +0000

    One more usage of deprecated APIs eliminated
    
    launch_context is obtained from the current display

 capplet/gkbd-indicator-plugins-capplet.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/capplet/gkbd-indicator-plugins-capplet.c b/capplet/gkbd-indicator-plugins-capplet.c
index c2c8440..474f6ca 100644
--- a/capplet/gkbd-indicator-plugins-capplet.c
+++ b/capplet/gkbd-indicator-plugins-capplet.c
@@ -230,7 +230,9 @@ CappletResponse (GtkDialog * dialog, gint response)
 {
 	if (response == GTK_RESPONSE_HELP) {
 		GError *error = NULL;
-		GdkAppLaunchContext *ctx = gdk_app_launch_context_new ();
+		GdkAppLaunchContext *ctx =
+		    gdk_display_get_app_launch_context
+		    (gtk_widget_get_display (GTK_WIDGET (dialog)));
 
 		g_app_info_launch_default_for_uri
 		    ("ghelp:gkbd?gkb-indicator-applet-plugins",



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