diff options
author | raveit65 <[email protected]> | 2017-07-26 22:49:06 +0200 |
---|---|---|
committer | raveit65 <[email protected]> | 2017-07-26 22:49:06 +0200 |
commit | 5d919f3c1418ba2185a734cb658b0cb7efc24880 (patch) | |
tree | 3b86c38502b69908c0a2ea924d185e2d5ac16f12 | |
parent | e5950f1450be6820042c0557db3d54ca5647b6e4 (diff) | |
download | mate-session-manager-5d919f3c1418ba2185a734cb658b0cb7efc24880.tar.bz2 mate-session-manager-5d919f3c1418ba2185a734cb658b0cb7efc24880.tar.xz |
don't use deprecated gtk_show_uri
-rw-r--r-- | capplet/main.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/capplet/main.c b/capplet/main.c index aa1008f..257618f 100644 --- a/capplet/main.c +++ b/capplet/main.c @@ -38,6 +38,15 @@ static GOptionEntry options[] = { static void dialog_response(GsmPropertiesDialog* dialog, guint response_id, gpointer data) { +#if GTK_CHECK_VERSION (3, 22, 0) + GError* error; + + if (response_id == GTK_RESPONSE_HELP) + { + error = NULL; + gtk_show_uri_on_window (GTK_WINDOW (dialog), "help:mate-user-guide/gosstartsession-2", + gtk_get_current_event_time (), &error); +#else GdkScreen* screen; GError* error; @@ -47,7 +56,8 @@ static void dialog_response(GsmPropertiesDialog* dialog, guint response_id, gpoi error = NULL; gtk_show_uri (screen, "help:mate-user-guide/gosstartsession-2", - gtk_get_current_event_time (), &error); + gtk_get_current_event_time (), &error); +#endif if (error != NULL) { |