diff options
author | Philip Langdale <philipl@mail.utexas.edu> | 2005-10-17 02:59:45 +0800 |
---|---|---|
committer | Philip Langdale <philipl@src.gnome.org> | 2005-10-17 02:59:45 +0800 |
commit | fdb745c1c9f97a2f60c84397e6e160912eec0430 (patch) | |
tree | 534ae50d00bb452c247a9805ff5da9b7a3909cba /src/ephy-toolbar.c | |
parent | 803df66ce8311b4630402a5c6efad3922af8dd6b (diff) | |
download | gsoc2013-epiphany-fdb745c1c9f97a2f60c84397e6e160912eec0430.tar gsoc2013-epiphany-fdb745c1c9f97a2f60c84397e6e160912eec0430.tar.gz gsoc2013-epiphany-fdb745c1c9f97a2f60c84397e6e160912eec0430.tar.bz2 gsoc2013-epiphany-fdb745c1c9f97a2f60c84397e6e160912eec0430.tar.lz gsoc2013-epiphany-fdb745c1c9f97a2f60c84397e6e160912eec0430.tar.xz gsoc2013-epiphany-fdb745c1c9f97a2f60c84397e6e160912eec0430.tar.zst gsoc2013-epiphany-fdb745c1c9f97a2f60c84397e6e160912eec0430.zip |
Exten the EphyLinkAction to attach a mouse-release-event handler which
2005-10-16 Philip Langdale <philipl@mail.utexas.edu>
* src/ephy-link-action.c:
(proxy_button_release_event_cb), (get_event_widget),
(ephy_link_action_connect_proxy), (ephy_link_action_disconnect_proxy),
(ephy_link_action_class_init), (ephy_link_action_get_type):
Exten the EphyLinkAction to attach a mouse-release-event handler
which turns around and calls gtk_action_activate in response to a
middle-click even on the proxy. This allows us to fully encapsulate
the extra work needed to catch middle clicks.
The GoHome action will automatically start working correctly now
that it is getting activated in this case.
* src/ephy-navigation-action.c:
(activate_by_history_index), (activate_back_or_forward_menu_item_cb),
(ephy_navigation_action_activate), (ephy_navigation_action_class_init):
Fully enscapsulate 'activate' handling inside the action. This is more
consistent because the menus are already handled internally. Also
add support for middle-click on back/forward/up.
* src/ephy-toolbar.c:
(ephy_toolbar_set_window): Don't attach 'activate' signal handlers
to the navigate actions because activation is now handled internally
to the action.
I intend to make a followup change that removes the separate actions
for GoUp/Back/Forward in the menu and replace them with the main
actions already used in the toolbar. This means the menu items will
get middle-click support for free.
* lib/ephy-gui.c: (ephy_gui_is_middle_click):
Only consider an unmodified middle-click to be a middle-click.
Diffstat (limited to 'src/ephy-toolbar.c')
-rwxr-xr-x | src/ephy-toolbar.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/ephy-toolbar.c b/src/ephy-toolbar.c index b74f397ea..eb31c1ed3 100755 --- a/src/ephy-toolbar.c +++ b/src/ephy-toolbar.c @@ -274,8 +274,6 @@ ephy_toolbar_set_window (EphyToolbar *toolbar, "direction", EPHY_NAVIGATION_DIRECTION_BACK, "is_important", TRUE, NULL); - g_signal_connect (action, "activate", - G_CALLBACK (window_cmd_go_back), priv->window); g_signal_connect_swapped (action, "open-link", G_CALLBACK (ephy_link_open), toolbar); gtk_action_group_add_action (priv->action_group, action); @@ -294,8 +292,6 @@ ephy_toolbar_set_window (EphyToolbar *toolbar, "window", priv->window, "direction", EPHY_NAVIGATION_DIRECTION_FORWARD, NULL); - g_signal_connect (action, "activate", - G_CALLBACK (window_cmd_go_forward), priv->window); g_signal_connect_swapped (action, "open-link", G_CALLBACK (ephy_link_open), toolbar); gtk_action_group_add_action (priv->action_group, action); @@ -314,8 +310,6 @@ ephy_toolbar_set_window (EphyToolbar *toolbar, "window", priv->window, "direction", EPHY_NAVIGATION_DIRECTION_UP, NULL); - g_signal_connect (action, "activate", - G_CALLBACK (window_cmd_go_up), priv->window); g_signal_connect_swapped (action, "open-link", G_CALLBACK (ephy_link_open), toolbar); gtk_action_group_add_action (priv->action_group, action); |