diff options
author | Jason Conti <jason.conti@gmail.com> | 2019-06-08 14:22:10 -0400 |
---|---|---|
committer | Jason Conti <jason.conti@gmail.com> | 2019-06-08 14:22:10 -0400 |
commit | 1d7f379bf23089ee1ddbeb8572e1c789e1c8f0e4 (patch) | |
tree | 4545fa5e3827efc5a9c9c132c68c315a2bbe7b6f | |
parent | dec6923d3d0ae2ce635b6779420c1395c5956010 (diff) | |
download | ayatana-indicator-notifications-1d7f379bf23089ee1ddbeb8572e1c789e1c8f0e4.tar.gz ayatana-indicator-notifications-1d7f379bf23089ee1ddbeb8572e1c789e1c8f0e4.tar.bz2 ayatana-indicator-notifications-1d7f379bf23089ee1ddbeb8572e1c789e1c8f0e4.zip |
* Replace deprecated gtk_show_uri with gtk_show_uri_on_window
-rw-r--r-- | src/notification-menuitem.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/notification-menuitem.c b/src/notification-menuitem.c index 69bb064..9fe5edb 100644 --- a/src/notification-menuitem.c +++ b/src/notification-menuitem.c @@ -321,8 +321,7 @@ notification_menuitem_activate_link_cb(GtkLabel *label, gchar *uri, gpointer use /* Show the link */ GError *error = NULL; - if (!gtk_show_uri(gtk_widget_get_screen(GTK_WIDGET(label)), - uri, gtk_get_current_event_time(), &error)) { + if (!gtk_show_uri_on_window(NULL, uri, gtk_get_current_event_time(), &error)) { g_warning("Unable to show '%s': %s", uri, error->message); g_error_free(error); } |