diff finch/libgnt/gntwidget.c @ 22307:d270b6aebabc

Right-clicking on a widget should trigger the context-menu.
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Sun, 17 Feb 2008 17:14:29 +0000
parents add12afc3140
children 95308e1b47d1
line wrap: on
line diff
--- a/finch/libgnt/gntwidget.c	Sat Feb 16 18:17:32 2008 +0000
+++ b/finch/libgnt/gntwidget.c	Sun Feb 17 17:14:29 2008 +0000
@@ -407,6 +407,8 @@
 {
 	gboolean ret;
 	g_signal_emit(widget, signals[SIG_CLICKED], 0, event, x, y, &ret);
+	if (!ret && event == GNT_RIGHT_MOUSE_DOWN)
+		ret = gnt_bindable_perform_action_named(GNT_BINDABLE(widget), "context-menu", NULL);
 	return ret;
 }