[gnome-panel] fish: avoid deprecated gtk_show_uri
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-panel] fish: avoid deprecated gtk_show_uri
- Date: Thu, 11 Jan 2018 17:41:16 +0000 (UTC)
commit efe5cee8834a35ed078e53daa510af780e0ee46d
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Thu Jan 11 19:08:57 2018 +0200
fish: avoid deprecated gtk_show_uri
modules/fish/fish-applet.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/modules/fish/fish-applet.c b/modules/fish/fish-applet.c
index 783c1ea..104e539 100644
--- a/modules/fish/fish-applet.c
+++ b/modules/fish/fish-applet.c
@@ -121,7 +121,9 @@ get_image_path (FishApplet *fish)
}
static void
-show_help (FishApplet *fish, const char *link_id)
+show_help (FishApplet *fish,
+ const gchar *link_id,
+ GtkWindow *parent)
{
GError *error = NULL;
char *uri;
@@ -132,9 +134,7 @@ show_help (FishApplet *fish, const char *link_id)
else
uri = g_strdup_printf ("help:%s", FISH_HELP_DOC);
- gtk_show_uri (gtk_widget_get_screen (GTK_WIDGET (fish)), uri,
- gtk_get_current_event_time (), &error);
-
+ gtk_show_uri_on_window (parent, uri, gtk_get_current_event_time (), &error);
g_free (uri);
if (error &&
@@ -235,7 +235,7 @@ handle_response (GtkWidget *widget,
FishApplet *fish)
{
if (id == GTK_RESPONSE_HELP) {
- show_help (fish, "fish-settings");
+ show_help (fish, "fish-settings", GTK_WINDOW (fish->preferences_dialog));
return;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]