[balsa] emitting "popup-menu" requires the address of the return value



commit aa4b13032772e5e44ff5eb1cc5d4728d8862d139
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date:   Wed May 27 21:30:41 2009 -0400

    emitting "popup-menu" requires the address of the return value
---
 ChangeLog                         |    6 ++++++
 src/balsa-mime-widget-callbacks.c |   10 +++++++---
 2 files changed, 13 insertions(+), 3 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index b95b225..b358a80 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2009-05-27  Peter Bloomfield
+
+	* src/balsa-mime-widget-callbacks.c
+	(balsa_mime_widget_key_press_event): emitting "popup-menu"
+	requires the address of the return value.
+
 2006-05-23  Pawel Salek
 
 	* src/balsa-index.[ch]: switch between full and narrow index views.
diff --git a/src/balsa-mime-widget-callbacks.c b/src/balsa-mime-widget-callbacks.c
index 7a4fa5f..675bad5 100644
--- a/src/balsa-mime-widget-callbacks.c
+++ b/src/balsa-mime-widget-callbacks.c
@@ -235,9 +235,13 @@ balsa_mime_widget_key_press_event(GtkWidget * widget, GdkEventKey * event,
         if (event->state & GDK_SHIFT_MASK) {
 	    GtkWidget *current_widget = balsa_message_current_part_widget(bm);
 
-	    if (current_widget)
-		g_signal_emit_by_name(current_widget, "popup-menu");
-	    else
+	    if (current_widget) {
+                gboolean retval;
+
+                g_signal_emit_by_name(current_widget, "popup-menu", &retval);
+
+                return retval;
+            } else
 		return FALSE;
         } else
             return FALSE;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]