Mercurial > pidgin.yaz
comparison pidgin/gtkrequest.c @ 25427:2cf7d6a20e68
Add a GtkIMHtml function that causes the widget to actually insert a
newline when the user presses the return key. This is used in the
saved status editor and the gtkrequest html input box.
Implementing this was kind of a pain. I think it would be better if
gtkimhtml.c didn't do anything with return and we changed gtkconv to
watch for that key press and send the message.
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Wed, 28 Jan 2009 08:57:55 +0000 |
parents | 3d8c53f3108e |
children | 8a46d5528c3c 5391094529c6 d0588e403877 |
comparison
equal
deleted
inserted
replaced
25426:7942287364c2 | 25427:2cf7d6a20e68 |
---|---|
382 gtk_widget_set_name(entry, "pidgin_request_imhtml"); | 382 gtk_widget_set_name(entry, "pidgin_request_imhtml"); |
383 if (default_value != NULL) | 383 if (default_value != NULL) |
384 gtk_imhtml_append_text(GTK_IMHTML(entry), default_value, GTK_IMHTML_NO_SCROLL); | 384 gtk_imhtml_append_text(GTK_IMHTML(entry), default_value, GTK_IMHTML_NO_SCROLL); |
385 gtk_box_pack_start(GTK_BOX(vbox), frame, TRUE, TRUE, 0); | 385 gtk_box_pack_start(GTK_BOX(vbox), frame, TRUE, TRUE, 0); |
386 gtk_widget_show(frame); | 386 gtk_widget_show(frame); |
387 | |
388 gtk_imhtml_set_return_inserts_newline(GTK_IMHTML(entry)); | |
387 } | 389 } |
388 else { | 390 else { |
389 if (multiline) { | 391 if (multiline) { |
390 GtkWidget *sw; | 392 GtkWidget *sw; |
391 | 393 |