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

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