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

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