Mercurial > pidgin.yaz
comparison pidgin/gtkimhtml.h @ 18061:226b9109179c
propagate from branch 'im.pidgin.pidgin' (head 4d9e228029b9b7850d000c2edadc108c40f9e59a)
to branch 'im.pidgin.pidgin.2.1.0' (head 50475bfc4ddcde1db8533c1b41c7b4342d773e21)
author | Richard Laager <rlaager@wiktel.com> |
---|---|
date | Thu, 07 Jun 2007 04:31:02 +0000 |
parents | 6b7b13adb9b1 |
children | 1f6599cd2d2b |
comparison
equal
deleted
inserted
replaced
17765:89adae2f1a6e | 18061:226b9109179c |
---|---|
25 | 25 |
26 #include <gdk/gdk.h> | 26 #include <gdk/gdk.h> |
27 #include <gtk/gtktextview.h> | 27 #include <gtk/gtktextview.h> |
28 #include <gtk/gtktooltips.h> | 28 #include <gtk/gtktooltips.h> |
29 #include <gtk/gtkimage.h> | 29 #include <gtk/gtkimage.h> |
30 #include "gtksourceundomanager.h" | |
31 | |
32 #include "connection.h" | |
30 | 33 |
31 #ifdef __cplusplus | 34 #ifdef __cplusplus |
32 extern "C" { | 35 extern "C" { |
33 #endif | 36 #endif |
34 | 37 |
124 char *clipboard_text_string; | 127 char *clipboard_text_string; |
125 char *clipboard_html_string; | 128 char *clipboard_html_string; |
126 | 129 |
127 GSList *im_images; | 130 GSList *im_images; |
128 GtkIMHtmlFuncs *funcs; | 131 GtkIMHtmlFuncs *funcs; |
132 GtkSourceUndoManager *undo_manager; | |
129 }; | 133 }; |
130 | 134 |
131 struct _GtkIMHtmlClass { | 135 struct _GtkIMHtmlClass { |
132 GtkTextViewClass parent_class; | 136 GtkTextViewClass parent_class; |
133 | 137 |
135 void (*buttons_update)(GtkIMHtml *, GtkIMHtmlButtons); | 139 void (*buttons_update)(GtkIMHtml *, GtkIMHtmlButtons); |
136 void (*toggle_format)(GtkIMHtml *, GtkIMHtmlButtons); | 140 void (*toggle_format)(GtkIMHtml *, GtkIMHtmlButtons); |
137 void (*clear_format)(GtkIMHtml *); | 141 void (*clear_format)(GtkIMHtml *); |
138 void (*update_format)(GtkIMHtml *); | 142 void (*update_format)(GtkIMHtml *); |
139 gboolean (*message_send)(GtkIMHtml *); | 143 gboolean (*message_send)(GtkIMHtml *); |
144 void (*undo)(GtkIMHtml *); | |
145 void (*redo)(GtkIMHtml *); | |
140 }; | 146 }; |
141 | 147 |
142 struct _GtkIMHtmlFontDetail { | 148 struct _GtkIMHtmlFontDetail { |
143 gushort size; | 149 gushort size; |
144 gchar *face; | 150 gchar *face; |
784 * | 790 * |
785 * @return A string containing the unformatted text. | 791 * @return A string containing the unformatted text. |
786 */ | 792 */ |
787 char *gtk_imhtml_get_text(GtkIMHtml *imhtml, GtkTextIter *start, GtkTextIter *stop); | 793 char *gtk_imhtml_get_text(GtkIMHtml *imhtml, GtkTextIter *start, GtkTextIter *stop); |
788 | 794 |
795 /** | |
796 * Setup formatting for an imhtml depending on the flags specified. | |
797 * | |
798 * @param imhtml The GTK+ IM/HTML. | |
799 * @param flags The connection flag which describes the allowed types of formatting. | |
800 */ | |
801 void gtk_imhtml_setup_entry(GtkIMHtml *imhtml, PurpleConnectionFlags flags); | |
802 | |
789 /*@}*/ | 803 /*@}*/ |
790 | 804 |
791 #ifdef __cplusplus | 805 #ifdef __cplusplus |
792 } | 806 } |
793 #endif | 807 #endif |