Description: fix incompatible-pointer-types warning to error introduced in gcc-14
 gcc-14 no longer allows implicitly casting all pointer types to all other pointer types. 
 The patch fixes the build error by explicitly typecasting to GtkWidget *.

Author: Ravi Kant Sharma <ravi.kant.sharma@canonical.com>
---
Bug-Debian: https://bugs.debian.org/1075243
Bug-Ubuntu: https://launchpad.net/bugs/2073963
Forwarded: https://github.com/lxde/lxpanel/pull/70
Last-Update: 2024-07-24

--- lxpanel-0.10.1.orig/plugins/tray.c
+++ lxpanel-0.10.1/plugins/tray.c
@@ -631,7 +631,7 @@ static GtkWidget *tray_constructor(LXPan
     /* Add GDK event filter. */
     gdk_window_add_filter(NULL, (GdkFilterFunc) tray_event_filter, tr);
     /* Reference the window since it is never added to a container. */
-    tr->invisible = g_object_ref_sink(G_OBJECT(invisible));
+    tr->invisible = (GtkWidget *) g_object_ref_sink(G_OBJECT(invisible));
     tr->invisible_window = GDK_WINDOW_XID(gtk_widget_get_window(invisible));
 
     /* Allocate top level widget and set into Plugin widget pointer. */
