Do middle click and menu on tabs on button press
Doing close on middle click on a tab can cause the new tab to be immediately closed because the mouse pointer happens to be released under the tab after it appears.
This commit is contained in:
parent
2f3a016b21
commit
70de71d6a3
1 changed files with 5 additions and 5 deletions
|
@ -4348,7 +4348,7 @@ midori_view_get_tab_menu (MidoriView* view)
|
||||||
}
|
}
|
||||||
|
|
||||||
static gboolean
|
static gboolean
|
||||||
midori_view_tab_label_button_release_event (GtkWidget* tab_label,
|
midori_view_tab_label_button_press_event (GtkWidget* tab_label,
|
||||||
GdkEventButton* event,
|
GdkEventButton* event,
|
||||||
GtkWidget* widget)
|
GtkWidget* widget)
|
||||||
{
|
{
|
||||||
|
@ -4581,8 +4581,8 @@ midori_view_get_proxy_tab_label (MidoriView* view)
|
||||||
if (!view->close_buttons_on_tabs)
|
if (!view->close_buttons_on_tabs)
|
||||||
gtk_widget_hide (view->tab_close);
|
gtk_widget_hide (view->tab_close);
|
||||||
|
|
||||||
g_signal_connect (event_box, "button-release-event",
|
g_signal_connect (event_box, "button-press-event",
|
||||||
G_CALLBACK (midori_view_tab_label_button_release_event), view);
|
G_CALLBACK (midori_view_tab_label_button_press_event), view);
|
||||||
g_signal_connect (view->tab_close, "style-set",
|
g_signal_connect (view->tab_close, "style-set",
|
||||||
G_CALLBACK (midori_view_tab_icon_style_set_cb), NULL);
|
G_CALLBACK (midori_view_tab_icon_style_set_cb), NULL);
|
||||||
g_signal_connect (view->tab_close, "clicked",
|
g_signal_connect (view->tab_close, "clicked",
|
||||||
|
|
Loading…
Reference in a new issue