mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-11-27 16:59:36 +03:00
Clicking in the draw area now deselects the URL bar.
svn path=/trunk/netsurf/; revision=6306
This commit is contained in:
parent
0de8393358
commit
4789d3c09d
@ -282,6 +282,11 @@ void nsgtk_attach_menu_handlers(GladeXML *xml, gpointer g)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
GtkWindow *nsgtk_get_window_for_scaffold(struct gtk_scaffolding *g)
|
||||||
|
{
|
||||||
|
return g->window;
|
||||||
|
}
|
||||||
|
|
||||||
/* event handlers and support functions for them */
|
/* event handlers and support functions for them */
|
||||||
|
|
||||||
gboolean nsgtk_window_delete_event(GtkWidget *widget, gpointer data)
|
gboolean nsgtk_window_delete_event(GtkWidget *widget, gpointer data)
|
||||||
|
@ -25,6 +25,8 @@
|
|||||||
|
|
||||||
typedef struct gtk_scaffolding nsgtk_scaffolding;
|
typedef struct gtk_scaffolding nsgtk_scaffolding;
|
||||||
|
|
||||||
|
GtkWindow *nsgtk_get_window_for_scaffold(struct gtk_scaffolding *g);
|
||||||
|
|
||||||
nsgtk_scaffolding *nsgtk_new_scaffolding(struct gui_window *toplevel);
|
nsgtk_scaffolding *nsgtk_new_scaffolding(struct gui_window *toplevel);
|
||||||
|
|
||||||
gboolean nsgtk_scaffolding_is_busy(nsgtk_scaffolding *scaffold);
|
gboolean nsgtk_scaffolding_is_busy(nsgtk_scaffolding *scaffold);
|
||||||
|
@ -365,6 +365,9 @@ gboolean nsgtk_window_button_press_event(GtkWidget *widget,
|
|||||||
GdkEventButton *event, gpointer data)
|
GdkEventButton *event, gpointer data)
|
||||||
{
|
{
|
||||||
struct gui_window *g = data;
|
struct gui_window *g = data;
|
||||||
|
GtkWindow *window = nsgtk_get_window_for_scaffold(g->scaffold);
|
||||||
|
|
||||||
|
gtk_window_set_focus(window, NULL);
|
||||||
|
|
||||||
g->mouse->pressed_x = event->x / g->bw->scale;
|
g->mouse->pressed_x = event->x / g->bw->scale;
|
||||||
g->mouse->pressed_y = event->y / g->bw->scale;
|
g->mouse->pressed_y = event->y / g->bw->scale;
|
||||||
|
Loading…
Reference in New Issue
Block a user