Blame SOURCES/0004-Remove-hack-which-is-apparently-not-useful-anymore.patch

f5c53a
From 8d696376c0f044507575e933b3e438e104f3ecd2 Mon Sep 17 00:00:00 2001
f5c53a
From: Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
f5c53a
Date: Fri, 10 Jul 2020 03:40:04 +0200
f5c53a
Subject: [PATCH 04/18] Remove hack which is apparently not useful anymore
f5c53a
f5c53a
---
f5c53a
 src/gui/stock.c | 7 -------
f5c53a
 1 file changed, 7 deletions(-)
f5c53a
f5c53a
diff --git a/src/gui/stock.c b/src/gui/stock.c
f5c53a
index 08675db8f037..46dfbe7173b5 100644
f5c53a
--- a/src/gui/stock.c
f5c53a
+++ b/src/gui/stock.c
f5c53a
@@ -89,7 +89,6 @@ lshw_gtk_stock_init(void)
f5c53a
   static int stock_initted = 0;
f5c53a
   GtkIconFactory *icon_factory;
f5c53a
   int i;
f5c53a
-  GtkWidget *win;
f5c53a
 
f5c53a
   if (stock_initted)
f5c53a
     return;
f5c53a
@@ -101,10 +100,6 @@ lshw_gtk_stock_init(void)
f5c53a
 
f5c53a
   gtk_icon_factory_add_default(icon_factory);
f5c53a
 
f5c53a
-/* Er, yeah, a hack, but it works. :) */
f5c53a
-  win = gtk_window_new(GTK_WINDOW_TOPLEVEL);
f5c53a
-  gtk_widget_realize(win);
f5c53a
-
f5c53a
   for (i = 0; i < G_N_ELEMENTS(stock_icons); i++)
f5c53a
   {
f5c53a
     GdkPixbuf *pixbuf;
f5c53a
@@ -128,8 +123,6 @@ lshw_gtk_stock_init(void)
f5c53a
       }
f5c53a
   }
f5c53a
 
f5c53a
-  gtk_widget_destroy(win);
f5c53a
-
f5c53a
 /* register logo icon size */
f5c53a
   gtk_icon_size_register(LSHW_ICON_SIZE_LOGO, LSHW_DEFAULT_ICON_SIZE, LSHW_DEFAULT_ICON_SIZE);
f5c53a
 
f5c53a
-- 
f5c53a
2.17.1
f5c53a