[balsa/gtk4: 62/311] balsa-mime-widget-text: Simplify popping down
- From: Peter Bloomfield <peterb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [balsa/gtk4: 62/311] balsa-mime-widget-text: Simplify popping down
- Date: Fri, 17 Dec 2021 19:53:20 +0000 (UTC)
commit 83d5f01d90bb612ab2527644c93a64cff04ece0e
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date: Mon Jun 22 11:41:11 2020 -0400
balsa-mime-widget-text: Simplify popping down
src/balsa-mime-widget-text.c | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/src/balsa-mime-widget-text.c b/src/balsa-mime-widget-text.c
index 567685576..d758d6f77 100644
--- a/src/balsa-mime-widget-text.c
+++ b/src/balsa-mime-widget-text.c
@@ -1174,13 +1174,12 @@ bmwt_html_open_with_change_state(GSimpleAction *action,
{
GtkWidget *html = user_data;
gpointer mime_body = g_object_get_data(G_OBJECT(html), "mime-body");
+ GtkWidget *popup_widget = g_object_get_data(G_OBJECT(html), "popup-widget");
open_with_change_state(action, parameter, mime_body);
- if (libbalsa_use_popover()) {
- GtkPopover *popover = g_object_get_data(G_OBJECT(html), "popup-widget");
- gtk_popover_popdown(popover);
- }
+ if (GTK_IS_POPOVER(popup_widget))
+ gtk_popover_popdown((GtkPopover *) popup_widget);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]