diff options
author | raveit65 <[email protected]> | 2017-07-25 18:46:57 +0200 |
---|---|---|
committer | raveit65 <[email protected]> | 2017-07-26 13:15:27 +0200 |
commit | d6d74e272e72691626961eddc5dc2b9f8ec622f1 (patch) | |
tree | 916621eab6bf1dea3282190e8ee61461bcd8cb04 /applets | |
parent | 6cf753c38adea580af96e4af067ab08873978657 (diff) | |
download | mate-power-manager-d6d74e272e72691626961eddc5dc2b9f8ec622f1.tar.bz2 mate-power-manager-d6d74e272e72691626961eddc5dc2b9f8ec622f1.tar.xz |
don't use deprecated gtk_show_uri
use NULL where GdkScreen was NULL, use dialog when screen wasn't NULL
Diffstat (limited to 'applets')
-rw-r--r-- | applets/brightness/gpm-common.c | 4 | ||||
-rw-r--r-- | applets/inhibit/gpm-common.c | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/applets/brightness/gpm-common.c b/applets/brightness/gpm-common.c index e2ea5f6..da47610 100644 --- a/applets/brightness/gpm-common.c +++ b/applets/brightness/gpm-common.c @@ -45,7 +45,11 @@ gpm_help_display (const gchar *link_id) else uri = g_strdup ("help:mate-power-manager"); +#if GTK_CHECK_VERSION (3, 22, 0) + gtk_show_uri_on_window (NULL, uri, GDK_CURRENT_TIME, &error); +#else gtk_show_uri (NULL, uri, GDK_CURRENT_TIME, &error); +#endif if (error != NULL) { GtkWidget *d; diff --git a/applets/inhibit/gpm-common.c b/applets/inhibit/gpm-common.c index e2ea5f6..da47610 100644 --- a/applets/inhibit/gpm-common.c +++ b/applets/inhibit/gpm-common.c @@ -45,7 +45,11 @@ gpm_help_display (const gchar *link_id) else uri = g_strdup ("help:mate-power-manager"); +#if GTK_CHECK_VERSION (3, 22, 0) + gtk_show_uri_on_window (NULL, uri, GDK_CURRENT_TIME, &error); +#else gtk_show_uri (NULL, uri, GDK_CURRENT_TIME, &error); +#endif if (error != NULL) { GtkWidget *d; |