[balsa/popover] mime-widget-text: Remove some dead code
- From: Peter Bloomfield <peterb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [balsa/popover] mime-widget-text: Remove some dead code
- Date: Fri, 5 Jun 2020 15:06:12 +0000 (UTC)
commit 0512c30360d3f4f6b482937e4283ebc7a6a3f23d
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date: Fri Jun 5 11:05:20 2020 -0400
mime-widget-text: Remove some dead code
and set the gesture's button to 0.
src/balsa-mime-widget-text.c | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
---
diff --git a/src/balsa-mime-widget-text.c b/src/balsa-mime-widget-text.c
index 911057e2f..8678ffe8a 100644
--- a/src/balsa-mime-widget-text.c
+++ b/src/balsa-mime-widget-text.c
@@ -1356,14 +1356,11 @@ bm_widget_new_html(BalsaMessage * bm, LibBalsaMessageBody * mime_body)
g_signal_connect(key_controller, "key-pressed",
G_CALLBACK(balsa_mime_widget_key_pressed), bm);
-#if 0
- g_signal_connect(widget, "button-press-event",
- G_CALLBACK(balsa_gtk_html_button_press_cb), bm);
-#else
gesture = gtk_gesture_multi_press_new(widget);
+ gtk_gesture_single_set_button(GTK_GESTURE_SINGLE(gesture), 0);
g_signal_connect(gesture, "pressed",
G_CALLBACK(balsa_gtk_html_button_press_cb), bm);
-#endif
+
g_signal_connect(widget, "popup-menu",
G_CALLBACK(balsa_gtk_html_popup), bm);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]