diff options
| author | Joakim Verona | 2011-08-19 10:03:28 +0200 |
|---|---|---|
| committer | Joakim Verona | 2011-08-19 10:03:28 +0200 |
| commit | de4d3934cb9838ac138718a4236ad631863c681d (patch) | |
| tree | 1f404649bb1407908e8de7bc6dc57b74bcb3a47e | |
| parent | c65b5f16736436ac97466c2a38b23cb70c06811a (diff) | |
| download | emacs-de4d3934cb9838ac138718a4236ad631863c681d.tar.gz emacs-de4d3934cb9838ac138718a4236ad631863c681d.zip | |
minor docs
| -rw-r--r-- | README.xwidget | 10 | ||||
| -rw-r--r-- | src/xwidget.c | 10 |
2 files changed, 17 insertions, 3 deletions
diff --git a/README.xwidget b/README.xwidget index 598ef229353..90dbf2f5d2b 100644 --- a/README.xwidget +++ b/README.xwidget | |||
| @@ -1208,5 +1208,13 @@ Added: [2011-08-11 Thu 10:53] | |||
| 1208 | 1208 | ||
| 1209 | 1209 | ||
| 1210 | ** TODO SEB | 1210 | ** TODO SEB |
| 1211 | the SEB site does something funny so I can't insert text in fields | 1211 | the SEB site does something funny so I can't insert text in |
| 1212 | fields. aparently document.activeElement.value doesn't work with framesets. | ||
| 1213 | |||
| 1214 | maybe: | ||
| 1215 | for (var i=0; i<frames.length; i++) | ||
| 1216 | { | ||
| 1217 | frames[i].document.activeElement.value | ||
| 1218 | } | ||
| 1219 | |||
| 1212 | 1220 | ||
diff --git a/src/xwidget.c b/src/xwidget.c index f5854239d09..92eef5c2e8f 100644 --- a/src/xwidget.c +++ b/src/xwidget.c | |||
| @@ -493,8 +493,8 @@ xwidget_init_view ( | |||
| 493 | g_signal_connect (G_OBJECT (xv->widget), "clicked", | 493 | g_signal_connect (G_OBJECT (xv->widget), "clicked", |
| 494 | G_CALLBACK (buttonclick_handler), xww); //the model rather than the view | 494 | G_CALLBACK (buttonclick_handler), xww); //the model rather than the view |
| 495 | } else if (EQ(xww->type, Qtoggle)) { | 495 | } else if (EQ(xww->type, Qtoggle)) { |
| 496 | //xv->widget = gtk_toggle_button_new_with_label (XSTRING(xww->title)->data); | 496 | xv->widget = gtk_toggle_button_new_with_label (XSTRING(xww->title)->data); |
| 497 | xv->widget = gtk_entry_new ();//temp hack to experiment with key propagation | 497 | //xv->widget = gtk_entry_new ();//temp hack to experiment with key propagation TODO entry widget is useful for testing |
| 498 | } else if (EQ(xww->type, Qsocket)) { | 498 | } else if (EQ(xww->type, Qsocket)) { |
| 499 | xv->widget = gtk_socket_new (); | 499 | xv->widget = gtk_socket_new (); |
| 500 | g_signal_connect_after(xv->widget, "plug-added", G_CALLBACK(xwidget_plug_added), "plug added"); | 500 | g_signal_connect_after(xv->widget, "plug-added", G_CALLBACK(xwidget_plug_added), "plug added"); |
| @@ -929,6 +929,7 @@ DEFUN ("xwidget-send-keyboard-event", Fxwidget_send_keyboard_event, Sxwidget_sen | |||
| 929 | window = FRAME_SELECTED_WINDOW (SELECTED_FRAME ()); | 929 | window = FRAME_SELECTED_WINDOW (SELECTED_FRAME ()); |
| 930 | GtkWidget* widget; | 930 | GtkWidget* widget; |
| 931 | 931 | ||
| 932 | //TODO maybe we also need to special case sockets by picking up the plug rather than the socket | ||
| 932 | if(xw->widget_osr) | 933 | if(xw->widget_osr) |
| 933 | widget = xw->widget_osr; | 934 | widget = xw->widget_osr; |
| 934 | else | 935 | else |
| @@ -954,6 +955,11 @@ DEFUN ("xwidget-send-keyboard-event", Fxwidget_send_keyboard_event, Sxwidget_sen | |||
| 954 | gdk_event_put((GdkEvent*)ev); | 955 | gdk_event_put((GdkEvent*)ev); |
| 955 | //g_signal_emit_by_name(ev->window,"key-release-event", ev); | 956 | //g_signal_emit_by_name(ev->window,"key-release-event", ev); |
| 956 | //gtk_main_do_event(ev); | 957 | //gtk_main_do_event(ev); |
| 958 | |||
| 959 | //TODO | ||
| 960 | //if I delete the event the receiving component eventually crashes. | ||
| 961 | //it ough TDTRT since event_put is supposed to copy the event | ||
| 962 | //so probably this leaks events now | ||
| 957 | //gdk_event_free((GdkEvent*)ev); | 963 | //gdk_event_free((GdkEvent*)ev); |
| 958 | 964 | ||
| 959 | return Qnil; | 965 | return Qnil; |