diff options
author | Xan Lopez <xan@igalia.com> | 2012-01-01 07:09:35 +0800 |
---|---|---|
committer | Xan Lopez <xan@igalia.com> | 2012-01-02 00:30:53 +0800 |
commit | d5b4f4ba1d31e368e23ddd77774e285a13908622 (patch) | |
tree | 4940ca63c17dc4b5d3d8707c0294e2ee0023a72e /src/ephy-link-action.h | |
parent | 10c1b6a7194f8dfc7c7cca278cfb6444255caed2 (diff) | |
download | gsoc2013-epiphany-d5b4f4ba1d31e368e23ddd77774e285a13908622.tar gsoc2013-epiphany-d5b4f4ba1d31e368e23ddd77774e285a13908622.tar.gz gsoc2013-epiphany-d5b4f4ba1d31e368e23ddd77774e285a13908622.tar.bz2 gsoc2013-epiphany-d5b4f4ba1d31e368e23ddd77774e285a13908622.tar.lz gsoc2013-epiphany-d5b4f4ba1d31e368e23ddd77774e285a13908622.tar.xz gsoc2013-epiphany-d5b4f4ba1d31e368e23ddd77774e285a13908622.tar.zst gsoc2013-epiphany-d5b4f4ba1d31e368e23ddd77774e285a13908622.zip |
Fake middle clicks without gtk_button_{press,release}, which are deprecated
Factor the logic that fakes clicks from a middle click in
EphyMiddleClick(Tool)Button by forwarding a left click to GTK+ when we
receive a middle click. Since ephy_gui_is_middle_click stops working
in this case, add the minimal logic in EphyLinkAction to make it work
again (basically, cache the button that activated the action inside
the action itself).
The EphyMiddleClickable(Tool)Button classes were written by Alexandre
Mazari.
https://bugzilla.gnome.org/show_bug.cgi?id=628364
Diffstat (limited to 'src/ephy-link-action.h')
-rw-r--r-- | src/ephy-link-action.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/ephy-link-action.h b/src/ephy-link-action.h index 6dbf03728..a6b4419cc 100644 --- a/src/ephy-link-action.h +++ b/src/ephy-link-action.h @@ -44,6 +44,7 @@ G_BEGIN_DECLS typedef struct _EphyLinkAction EphyLinkAction; typedef struct _EphyLinkActionClass EphyLinkActionClass; +typedef struct _EphyLinkActionPrivate EphyLinkActionPrivate; typedef struct _EphyLinkActionGroup EphyLinkActionGroup; typedef struct _EphyLinkActionGroupClass EphyLinkActionGroupClass; @@ -51,6 +52,8 @@ typedef struct _EphyLinkActionGroupClass EphyLinkActionGroupClass; struct _EphyLinkAction { GtkAction parent_instance; + + EphyLinkActionPrivate *priv; }; struct _EphyLinkActionClass @@ -68,7 +71,8 @@ struct _EphyLinkActionGroupClass GtkActionGroupClass parent_class; }; -GType ephy_link_action_get_type (void); +GType ephy_link_action_get_type (void); +guint ephy_link_action_get_button (EphyLinkAction *action); GType ephy_link_action_group_get_type (void); |