Gitweb links:
...log
http://git.netsurf-browser.org/netsurf.git/shortlog/86f73b767a00dc4a78d86c3225583970149e2905
...commit
http://git.netsurf-browser.org/netsurf.git/commit/86f73b767a00dc4a78d86c3225583970149e2905
...tree
http://git.netsurf-browser.org/netsurf.git/tree/86f73b767a00dc4a78d86c3225583970149e2905
The branch, master has been updated
via 86f73b767a00dc4a78d86c3225583970149e2905 (commit)
from 69236590d08edc9722f48753ebe52f7315cb6b69 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commitdiff
http://git.netsurf-browser.org/netsurf.git/commit/?id=86f73b767a00dc4a78d86c3225583970149e2905
commit 86f73b767a00dc4a78d86c3225583970149e2905
Author: Vincent Sanders <[email protected]>
Commit: Vincent Sanders <[email protected]>
ensure caret is handled correctly on gtk when focus is removed from layout
diff --git a/frontends/gtk/window.c b/frontends/gtk/window.c
index 3c9f6d6..39bd06b 100644
--- a/frontends/gtk/window.c
+++ b/frontends/gtk/window.c
@@ -303,6 +303,22 @@ nsgtk_window_motion_notify_event(GtkWidget *widget,
}
/**
+ * GTK signal handler for focus-out-event on layout
+ *
+ * when focus leaves the layout widget ensure the caret is cleared
+ */
+static gboolean
+nsgtk_window_focus_out_event(GtkWidget *widget,
+ GdkEvent *event,
+ gpointer data)
+{
+ struct gui_window *g = data;
+
+ browser_window_remove_caret(g->bw, true);
+ return FALSE;
+}
+
+/**
* GTK signal handler for button-press-event on layout
*/
static gboolean
@@ -914,6 +930,8 @@ gui_window_create(struct browser_window *bw,
nsgtk_window_size_allocate_event, g);
CONNECT(g->layout, "scroll-event",
nsgtk_window_scroll_event, g);
+ CONNECT(g->layout, "focus-out-event",
+ nsgtk_window_focus_out_event, g);
/* status pane signals */
CONNECT(g->paned, "size-allocate",
-----------------------------------------------------------------------
Summary of changes:
frontends/gtk/window.c | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
diff --git a/frontends/gtk/window.c b/frontends/gtk/window.c
index 3c9f6d6..39bd06b 100644
--- a/frontends/gtk/window.c
+++ b/frontends/gtk/window.c
@@ -303,6 +303,22 @@ nsgtk_window_motion_notify_event(GtkWidget *widget,
}
/**
+ * GTK signal handler for focus-out-event on layout
+ *
+ * when focus leaves the layout widget ensure the caret is cleared
+ */
+static gboolean
+nsgtk_window_focus_out_event(GtkWidget *widget,
+ GdkEvent *event,
+ gpointer data)
+{
+ struct gui_window *g = data;
+
+ browser_window_remove_caret(g->bw, true);
+ return FALSE;
+}
+
+/**
* GTK signal handler for button-press-event on layout
*/
static gboolean
@@ -914,6 +930,8 @@ gui_window_create(struct browser_window *bw,
nsgtk_window_size_allocate_event, g);
CONNECT(g->layout, "scroll-event",
nsgtk_window_scroll_event, g);
+ CONNECT(g->layout, "focus-out-event",
+ nsgtk_window_focus_out_event, g);
/* status pane signals */
CONNECT(g->paned, "size-allocate",
--
NetSurf Browser
_______________________________________________
netsurf-commits mailing list
[email protected]
http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/netsurf-commits-netsurf-browser.org