From 1d7f379bf23089ee1ddbeb8572e1c789e1c8f0e4 Mon Sep 17 00:00:00 2001 From: Jason Conti Date: Sat, 8 Jun 2019 14:22:10 -0400 Subject: * Replace deprecated gtk_show_uri with gtk_show_uri_on_window --- src/notification-menuitem.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src') 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); } -- cgit v1.2.3