summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey V. Udaltsov <svu@gnome.org>2012-02-22 00:58:10 +0000
committerSergey V. Udaltsov <svu@gnome.org>2012-02-22 00:58:10 +0000
commitd656bc939e915085af6737019d15c6f5128ab0a6 (patch)
tree59518fa67cf7be9215640e4e2a544aa01e562c18
parent589837d7196ef0dedf628b5f978a5be05c296692 (diff)
downloadlibgnomekbd-d656bc939e915085af6737019d15c6f5128ab0a6.tar.gz
One more usage of deprecated APIs eliminated
launch_context is obtained from the current display
-rw-r--r--capplet/gkbd-indicator-plugins-capplet.c4
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",