Mercurial > pidgin.yaz
comparison pidgin/gtkimhtml.h @ 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 | d25cbbea7fe5 |
children | 1a94a964bddf |
comparison
equal
deleted
inserted
replaced
25426:7942287364c2 | 25427:2cf7d6a20e68 |
---|---|
946 * | 946 * |
947 * @since 2.6.0 | 947 * @since 2.6.0 |
948 */ | 948 */ |
949 gboolean gtk_imhtml_link_activate(GtkIMHtmlLink *link); | 949 gboolean gtk_imhtml_link_activate(GtkIMHtmlLink *link); |
950 | 950 |
951 /** | |
952 * By default this widget intercepts presses of the "return" key and | |
953 * emits the "message_send" signal instead. If you don't want this | |
954 * behavior, and you want the standard GtkTextView behavior of | |
955 * inserting a newline into the buffer, then call this function. | |
956 * | |
957 * @param imhtml The GtkIMHtml where you want the "return" key to add | |
958 * newline and not emit the "message_send" signal. | |
959 */ | |
960 void gtk_imhtml_set_return_inserts_newline(GtkIMHtml *imhtml); | |
961 | |
951 /*@}*/ | 962 /*@}*/ |
952 | 963 |
953 #ifdef __cplusplus | 964 #ifdef __cplusplus |
954 } | 965 } |
955 #endif | 966 #endif |