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

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