1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
|
Description: Fix FTBFS with GCC-14 (incompatible pointer types)
GCC-14 no longer allows implicitly casting all pointer types to all other
pointer types. This now causes an error when compiling src/status.c
.
Therefore, explicitly cast the first argument in gtk_widget_set_sensitive()
call to GTK_WIDGET, which is what it expects.
.
Upstream project is archived, so we do not upstream the patch.
Author: Nick Morrott <nickm@debian.org>
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1074889
Forwarded: not-needed
Last-Update: 2024-08-23
---
--- a/src/status.c
+++ b/src/status.c
@@ -120,7 +120,7 @@
gtk_menu_item_set_submenu(item, GTK_WIDGET(submenu));
gtk_container_add(GTK_CONTAINER(menu), GTK_WIDGET(item));
- gtk_widget_set_sensitive(item, has_items);
+ gtk_widget_set_sensitive(GTK_WIDGET(item), has_items);
}
|