[gnome-software/gnome-3-30] details page: Fix a compiler warning
- From: Kalev Lember <klember src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/gnome-3-30] details page: Fix a compiler warning
- Date: Wed, 3 Oct 2018 07:35:47 +0000 (UTC)
commit 4f2a4293fac864c889f03e60951c59b1cbce8a19
Author: Kalev Lember <klember redhat com>
Date: Wed Sep 26 15:30:56 2018 +0200
details page: Fix a compiler warning
I disagree with the compiler here, but let's just make it happy so that
the warning noise doesn't drown real issues.
src/gs-details-page.c | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
---
diff --git a/src/gs-details-page.c b/src/gs-details-page.c
index cd201d92..3e7d3196 100644
--- a/src/gs-details-page.c
+++ b/src/gs-details-page.c
@@ -2042,12 +2042,18 @@ gs_details_page_app_removed (GsPage *page, GsApp *app)
gs_details_page_reload (page);
}
+static void
+show_all_cb (GtkWidget *widget, gpointer user_data)
+{
+ gtk_widget_show (widget);
+}
+
static void
gs_details_page_more_reviews_button_cb (GtkWidget *widget, GsDetailsPage *self)
{
self->show_all_reviews = TRUE;
gtk_container_foreach (GTK_CONTAINER (self->list_box_reviews),
- (GtkCallback) gtk_widget_show, NULL);
+ show_all_cb, NULL);
gtk_widget_set_visible (self->button_more_reviews, FALSE);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]