From fb9a15960ab8001fa51ecb794afda2738e8de4b0 Mon Sep 17 00:00:00 2001 From: Christian Persch Date: Thu, 16 Dec 2004 20:52:58 +0000 Subject: Implement context menu on tray icon, as per HIG. Fixes bug #152903. 2004-12-16 Christian Persch * embed/downloader-view.c: (show_downloader_cb), (status_icon_popup_menu_cb), (show_status_icon): * lib/egg/eggstatusicon.c: (egg_status_icon_class_init), (egg_status_icon_init), (egg_status_icon_finalize), (emit_activate_signal), (emit_popup_menu_signal), (egg_status_icon_size_allocate), (egg_status_icon_button_press), (egg_status_icon_set_tooltip): * lib/egg/eggstatusicon.h: * lib/ephy-gui.c: (ephy_gui_menu_position_under_widget), (ephy_gui_menu_position_on_panel): * lib/ephy-gui.h: Implement context menu on tray icon, as per HIG. Fixes bug #152903. --- lib/egg/eggstatusicon.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'lib/egg/eggstatusicon.h') diff --git a/lib/egg/eggstatusicon.h b/lib/egg/eggstatusicon.h index cde7ae9df..58bb59319 100644 --- a/lib/egg/eggstatusicon.h +++ b/lib/egg/eggstatusicon.h @@ -44,6 +44,9 @@ struct _EggStatusIcon { GObject parent_instance; + /*< public >*/ + GtkWidget *tray_icon; + /*< private >*/ EggStatusIconPrivate *priv; }; @@ -52,9 +55,7 @@ struct _EggStatusIconClass GObjectClass parent_class; void (* activate) (EggStatusIcon *status_icon); - void (* popup_menu) (EggStatusIcon *status_icon, - guint buttton, - guint32 activate_time); + gboolean (* popup_menu) (EggStatusIcon *status_icon); gboolean (* size_changed) (EggStatusIcon *status_icon, gint size); }; -- cgit v1.2.3