commit: 59d42ae38dbd9aa10abd829fc8749d73e0ef695a Author: Marek Szuba <marecki <AT> gentoo <DOT> org> AuthorDate: Wed Jan 31 13:07:12 2024 +0000 Commit: Marek Szuba <marecki <AT> gentoo <DOT> org> CommitDate: Wed Jan 31 13:07:12 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=59d42ae3
net-misc/connman-gtk: add missing Gtk+ type cast Looks like upstream have missed this one, as they generally do use the macro GTK_WIDGET(). Closes: https://bugs.gentoo.org/919235 Signed-off-by: Marek Szuba <marecki <AT> gentoo.org> net-misc/connman-gtk/connman-gtk-1.1.1-r1.ebuild | 6 +++++- .../connman-gtk/files/connman-gtk-1.1.1-gtk_typecasts.patch | 11 +++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/net-misc/connman-gtk/connman-gtk-1.1.1-r1.ebuild b/net-misc/connman-gtk/connman-gtk-1.1.1-r1.ebuild index c950b57ae3c2..467860e1aae2 100644 --- a/net-misc/connman-gtk/connman-gtk-1.1.1-r1.ebuild +++ b/net-misc/connman-gtk/connman-gtk-1.1.1-r1.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2020 Gentoo Authors +# Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 @@ -28,6 +28,10 @@ DEPEND="${CDEOEND} virtual/pkgconfig " +PATCHES=( + "${FILESDIR}"/${PN}-1.1.1-gtk_typecasts.patch +) + src_prepare() { default sed -i -e '/^Categories/ s/$/;/' connman-gtk.desktop.in || die diff --git a/net-misc/connman-gtk/files/connman-gtk-1.1.1-gtk_typecasts.patch b/net-misc/connman-gtk/files/connman-gtk-1.1.1-gtk_typecasts.patch new file mode 100644 index 000000000000..25f29649404f --- /dev/null +++ b/net-misc/connman-gtk/files/connman-gtk-1.1.1-gtk_typecasts.patch @@ -0,0 +1,11 @@ +--- a/src/status.c ++++ b/src/status.c +@@ -119,7 +119,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); + + } +
