[balsa/wip/gmime3: 35/197] Check that a child is a GtkLabel
- From: Peter Bloomfield <peterb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [balsa/wip/gmime3: 35/197] Check that a child is a GtkLabel
- Date: Wed, 23 May 2018 21:15:18 +0000 (UTC)
commit c5b364097ccb546556e3c8024792a6779887155d
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date: Mon Jul 17 10:26:59 2017 -0400
Check that a child is a GtkLabel
* src/balsa-mime-widget-message.c (foreach_label): the only
children that have a "populate-popup" signal are GtkLabels.
src/balsa-mime-widget-message.c | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/src/balsa-mime-widget-message.c b/src/balsa-mime-widget-message.c
index 08bcf4c..9f82377 100644
--- a/src/balsa-mime-widget-message.c
+++ b/src/balsa-mime-widget-message.c
@@ -680,10 +680,9 @@ foreach_label(GtkWidget * widget, LibBalsaMessageBody * part)
g_assert(widget != NULL);
if (GTK_IS_CONTAINER(widget))
- gtk_container_foreach(GTK_CONTAINER(widget),
+ gtk_container_foreach((GtkContainer *) widget,
(GtkCallback) foreach_label, part);
- else if (g_signal_lookup("populate-popup",
- G_TYPE_FROM_INSTANCE(widget)))
+ else if (GTK_IS_LABEL(widget))
g_signal_connect(widget, "populate-popup",
G_CALLBACK(bm_header_extend_popup), part);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]