From 3241ea896ff4f8939c038ab65f03948d026ed520 Mon Sep 17 00:00:00 2001 From: Marco Pesenti Gritti Date: Sun, 15 Jun 2003 23:47:33 +0000 Subject: Remove some obsolete entries. 2003-06-16 Marco Pesenti Gritti * data/ui/nautilus-epiphany-view.xml.in: Remove some obsolete entries. * embed/Makefile.am: * embed/ephy-embed-event.c: (ephy_embed_event_init), (ephy_embed_event_get_event_type): * embed/ephy-embed-event.h: Make more generic and allow to make distinction between mouse and key events. * embed/ephy-embed-popup-bw.c: * embed/ephy-embed-popup-bw.h: Remove, unused. * embed/ephy-embed.c: (ephy_embed_base_init): * embed/ephy-embed.h: * embed/mozilla/mozilla-embed.cpp: Emit context signals only when necessary, get rid of unused mouse_down signal. * embed/ephy-embed-popup-control.c: (ephy_embed_popup_control_show_impl): * embed/mozilla/EventContext.cpp: * src/ephy-nautilus-view.c: (ephy_nautilus_view_instance_init), (gnv_embed_dom_mouse_click_cb), (gnv_embed_context_menu_cb): * src/ephy-tab.c: (ephy_tab_dom_mouse_click_cb), (ephy_tab_context_menu_cb): Use new event api. --- embed/ephy-embed-event.h | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'embed/ephy-embed-event.h') diff --git a/embed/ephy-embed-event.h b/embed/ephy-embed-event.h index 44448cce6..40eb15c55 100644 --- a/embed/ephy-embed-event.h +++ b/embed/ephy-embed-event.h @@ -50,6 +50,14 @@ typedef enum EMBED_CONTEXT_EMAIL_LINK = 1 << 8 } EmbedEventContext; +typedef enum +{ + EPHY_EMBED_EVENT_MOUSE_BUTTON1, + EPHY_EMBED_EVENT_MOUSE_BUTTON2, + EPHY_EMBED_EVENT_MOUSE_BUTTON3, + EPHY_EMBED_EVENT_KEY +} EphyEmbedEventType; + struct EphyEmbedEvent { GObject parent; @@ -57,7 +65,7 @@ struct EphyEmbedEvent /* Public to the embed implementations */ guint modifier; - guint mouse_button; + EphyEmbedEventType type; guint context; guint x, y; guint keycode; @@ -74,8 +82,8 @@ EphyEmbedEvent *ephy_embed_event_new (void); guint ephy_embed_event_get_modifier (EphyEmbedEvent *event); -gresult ephy_embed_event_get_mouse_button (EphyEmbedEvent *event, - guint *mouse_button); +gresult ephy_embed_event_get_event_type (EphyEmbedEvent *event, + EphyEmbedEventType *type); gresult ephy_embed_event_get_coords (EphyEmbedEvent *event, guint *x, guint *y); -- cgit v1.2.3