diff options
author | Laurent Deniel <laurent.deniel@free.fr> | 2000-08-21 12:33:22 +0000 |
---|---|---|
committer | Laurent Deniel <laurent.deniel@free.fr> | 2000-08-21 12:33:22 +0000 |
commit | a3d48f09726bf56afabe694958b3f05cad58a9c1 (patch) | |
tree | 560b44a021b79008e8cd9d618a7657db1952f234 /gtk/menu.h | |
parent | aeaaaf65f4eb2db3012743dfff9c8484ed95c7b1 (diff) |
Make work better the (hexdump) popup menus.
- have popup_menu_handler return TRUE or FALSE according
to the fact that the event is really processed or not.
- use gtk_signal_connect instead of gtk_signal_connect_object
to have the widget that emitted the signal _and_ the popup
menu widget.
- call gtk_signal_emit_stop_by_name to abort the propagation
if the signal was processed.
svn path=/trunk/; revision=2318
Diffstat (limited to 'gtk/menu.h')
-rw-r--r-- | gtk/menu.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/menu.h b/gtk/menu.h index 70eb2666b7..b1e91719c4 100644 --- a/gtk/menu.h +++ b/gtk/menu.h @@ -1,7 +1,7 @@ /* menu.h * Menu definitions * - * $Id: menu.h,v 1.5 2000/04/06 06:52:10 guy Exp $ + * $Id: menu.h,v 1.6 2000/08/21 12:33:21 deniel Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@zing.org> @@ -32,7 +32,7 @@ extern "C" { void get_main_menu (GtkWidget **, GtkAccelGroup **); void set_menu_object_data (gchar *path, gchar *key, gpointer data); -void popup_menu_handler(GtkWidget *widget, GdkEvent *event); +gint popup_menu_handler(GtkWidget *widget, GdkEvent *event, gpointer data); extern GtkWidget *popup_menu_object; |