[dev] [surf][PATCH] Remove call to gtk_window_set_wmclass

From: <iff_AT_escondida.tk>
Date: Sun, 19 Nov 2017 21:12:21 -0600

From: Ivy Foster <iff_AT_escondida.tk>

The function is deprecated. Also, GTK automatically sets the class to
what surf was manually setting it to.
---
Hello! I thought that the best greeting would be a patch, so here's a
tiny one.
Specifically, gtk_window_set_wmclass is deprecated as of gtk 3.22.
 surf.c | 4 ----
 1 file changed, 4 deletions(-)
diff --git a/surf.c b/surf.c
index 0f8b9c9..d513a01 100644
--- a/surf.c
+++ b/surf.c
_AT_@ -1342,10 +1342,6 @@ createwindow(Client *c)
 	} else {
 		w = gtk_window_new(GTK_WINDOW_TOPLEVEL);
 
-		wmstr = g_path_get_basename(argv0);
-		gtk_window_set_wmclass(GTK_WINDOW(w), wmstr, "Surf");
-		g_free(wmstr);
-
 		wmstr = g_strdup_printf("%s[%lu]", "Surf",
 		        webkit_web_view_get_page_id(c->view));
 		gtk_window_set_role(GTK_WINDOW(w), wmstr);
-- 
2.15.0
Received on Mon Nov 20 2017 - 04:12:21 CET

This archive was generated by hypermail 2.3.0 : Mon Nov 20 2017 - 04:24:21 CET