diff options
author | Marek Szuba <marecki@gentoo.org> | 2024-01-31 13:07:12 +0000 |
---|---|---|
committer | Marek Szuba <marecki@gentoo.org> | 2024-01-31 13:07:12 +0000 |
commit | 59d42ae38dbd9aa10abd829fc8749d73e0ef695a (patch) | |
tree | 2b1c2fc16ecdc44285c81a65a46390ccafade66d /net-misc/connman-gtk | |
parent | app-crypt/chntpw: force -std=gnu90 (diff) | |
download | gentoo-59d42ae38dbd9aa10abd829fc8749d73e0ef695a.tar.gz gentoo-59d42ae38dbd9aa10abd829fc8749d73e0ef695a.tar.bz2 gentoo-59d42ae38dbd9aa10abd829fc8749d73e0ef695a.zip |
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@gentoo.org>
Diffstat (limited to 'net-misc/connman-gtk')
-rw-r--r-- | net-misc/connman-gtk/connman-gtk-1.1.1-r1.ebuild | 6 | ||||
-rw-r--r-- | net-misc/connman-gtk/files/connman-gtk-1.1.1-gtk_typecasts.patch | 11 |
2 files changed, 16 insertions, 1 deletions
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); + + } + |