diff options
author | keis <keijser@gmail.com> | 2011-01-15 22:15:29 +0100 |
---|---|---|
committer | keis <keijser@gmail.com> | 2011-02-15 21:17:10 +0100 |
commit | 3d658d9c10809ec4ec76fb557535a2f6383cff45 (patch) | |
tree | 574c914ee860e5a758e2f2743c85417cc1d65ffa /src/callbacks.c | |
parent | 2b7539061d8d437ef1507a8cf68d9b565d07c66e (diff) |
quote and escape strings in events
Diffstat (limited to 'src/callbacks.c')
-rw-r--r-- | src/callbacks.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/callbacks.c b/src/callbacks.c index 12bbc14..78a5090 100644 --- a/src/callbacks.c +++ b/src/callbacks.c @@ -569,9 +569,9 @@ button_press_cb (GtkWidget* window, GdkEventButton* event) { /* left click */ if(event->button == 1) { if((context & WEBKIT_HIT_TEST_RESULT_CONTEXT_EDITABLE)) - send_event(FORM_ACTIVE, NULL, TYPE_STR, "button1", NULL); + send_event(FORM_ACTIVE, NULL, TYPE_NAME, "button1", NULL); else if((context & WEBKIT_HIT_TEST_RESULT_CONTEXT_DOCUMENT)) - send_event(ROOT_ACTIVE, NULL, TYPE_STR, "button1", NULL); + send_event(ROOT_ACTIVE, NULL, TYPE_NAME, "button1", NULL); } else if(event->button == 2 && !(context & WEBKIT_HIT_TEST_RESULT_CONTEXT_EDITABLE)) { sendev = TRUE; @@ -584,7 +584,7 @@ button_press_cb (GtkWidget* window, GdkEventButton* event) { if(sendev) { details = g_strdup_printf("Button%d", event->button); - send_event(KEY_PRESS, NULL, TYPE_STR, details, NULL); + send_event(KEY_PRESS, NULL, TYPE_NAME, details, NULL); g_free (details); } } @@ -613,7 +613,7 @@ button_release_cb (GtkWidget* window, GdkEventButton* event) { if(sendev) { details = g_strdup_printf("Button%d", event->button); - send_event(KEY_RELEASE, NULL, TYPE_STR, details, NULL); + send_event(KEY_RELEASE, NULL, TYPE_NAME, details, NULL); g_free (details); } } |