[gtkhtml] Bug #575038 - Cursor/caret mode breaks magic spacebar
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtkhtml] Bug #575038 - Cursor/caret mode breaks magic spacebar
- Date: Wed, 28 Apr 2010 18:03:11 +0000 (UTC)
commit 1a395fb5e65685a71049991b3f5b028914aef079
Author: Milan Crha <mcrha redhat com>
Date: Wed Apr 28 20:02:37 2010 +0200
Bug #575038 - Cursor/caret mode breaks magic spacebar
gtkhtml/gtkhtml.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gtkhtml/gtkhtml.c b/gtkhtml/gtkhtml.c
index 1a85841..f666fc0 100644
--- a/gtkhtml/gtkhtml.c
+++ b/gtkhtml/gtkhtml.c
@@ -1030,7 +1030,7 @@ update_mouse_cursor (GtkWidget *widget, guint state)
motion_notify_event (widget, &event);
}
-static gint
+static gboolean
key_press_event (GtkWidget *widget, GdkEventKey *event)
{
GtkHTML *html = GTK_HTML (widget);
@@ -1114,7 +1114,7 @@ key_press_event (GtkWidget *widget, GdkEventKey *event)
return retval;
}
-static gint
+static gboolean
key_release_event (GtkWidget *widget, GdkEventKey *event)
{
GtkHTML *html = GTK_HTML (widget);
@@ -4773,7 +4773,7 @@ scroll_command (GtkHTML *html,
gdouble page_size;
/* we dont want scroll in editable (move cursor instead) */
- if (html_engine_get_editable (html->engine) || html->engine->caret_mode)
+ if (html_engine_get_editable (html->engine))
return FALSE;
adjustment = gtk_layout_get_vadjustment (GTK_LAYOUT (html));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]