[gnome-control-center] application: Use gtk_show_uri_on_window
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] application: Use gtk_show_uri_on_window
- Date: Sun, 21 Jan 2018 12:33:09 +0000 (UTC)
commit 682bec8dd1fa2ab314d862ec3da05aa472a0899e
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Sun Jan 21 10:24:18 2018 -0200
application: Use gtk_show_uri_on_window
Instead of the deprecated gtk_show_uri.
shell/cc-application.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/shell/cc-application.c b/shell/cc-application.c
index 43795a7..79632b4 100644
--- a/shell/cc-application.c
+++ b/shell/cc-application.c
@@ -66,9 +66,10 @@ help_activated (GSimpleAction *action,
uri = cc_panel_get_help_uri (panel);
window = cc_shell_get_toplevel (CC_SHELL (self->priv->window));
- gtk_show_uri (gtk_widget_get_screen (window),
- uri ? uri : "help:gnome-help/prefs",
- GDK_CURRENT_TIME, NULL);
+ gtk_show_uri_on_window (GTK_WINDOW (window),
+ uri ? uri : "help:gnome-help/prefs",
+ GDK_CURRENT_TIME,
+ NULL);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]