[balsa/gtk4: 59/311] balsa-mime-widget-image: Set popover relative to
- From: Peter Bloomfield <peterb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [balsa/gtk4: 59/311] balsa-mime-widget-image: Set popover relative to
- Date: Fri, 17 Dec 2021 19:53:20 +0000 (UTC)
commit 36c679b1d4f80677933ed03c6c10dc30ee16ff8c
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date: Sun Jun 21 17:34:18 2020 -0400
balsa-mime-widget-image: Set popover relative to
Set popover relative to the image.
src/balsa-mime-widget-image.c | 6 ++++++
1 file changed, 6 insertions(+)
---
diff --git a/src/balsa-mime-widget-image.c b/src/balsa-mime-widget-image.c
index 33a6e6aac..7e8ad0823 100644
--- a/src/balsa-mime-widget-image.c
+++ b/src/balsa-mime-widget-image.c
@@ -207,6 +207,12 @@ balsa_mime_widget_new_image(BalsaMessage * bm,
gesture = gtk_gesture_multi_press_new(widget);
gtk_gesture_single_set_button(GTK_GESTURE_SINGLE(gesture), 0);
+
+ if (GTK_IS_POPOVER(data)) {
+ GtkPopover *popover = data;
+ gtk_popover_set_relative_to(popover, widget);
+ }
+
g_signal_connect(gesture, "pressed",
G_CALLBACK(balsa_image_button_press_cb), data);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]