From a139ddb6cd6a294c58fec3f8f821ef235b4b8eb6 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Tue, 1 Jan 2019 20:36:42 +0200 Subject: [PATCH] browser: Replace deprecated gtk_window_set_wmclass() Use gtk_window_set_role() instead of the deprecated gtk_window_set_wmclass(). Signed-off-by: Jouni Malinen --- src/utils/browser.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/utils/browser.c b/src/utils/browser.c index 9cf6152d6..ad0b382fb 100644 --- a/src/utils/browser.c +++ b/src/utils/browser.c @@ -166,8 +166,7 @@ int hs20_web_browser(const char *url) g_object_set(G_OBJECT(s), "ssl-strict", FALSE, NULL); ctx.win = gtk_window_new(GTK_WINDOW_TOPLEVEL); - gtk_window_set_wmclass(GTK_WINDOW(ctx.win), "Hotspot 2.0 client", - "Hotspot 2.0 client"); + gtk_window_set_role(GTK_WINDOW(ctx.win), "Hotspot 2.0 client"); gtk_window_set_default_size(GTK_WINDOW(ctx.win), 800, 600); scroll = gtk_scrolled_window_new(NULL, NULL);