Mercurial > pidgin.yaz
comparison pidgin/gtkimhtml.h @ 17411:674d8bc2b980
Undo/Redo in GtkImHtml from GtkSourceView. This may not be adaquate enough for us.
author | Sean Egan <seanegan@gmail.com> |
---|---|
date | Fri, 25 May 2007 21:53:49 +0000 |
parents | a32325c04158 |
children | 6b7b13adb9b1 |
comparison
equal
deleted
inserted
replaced
17410:fe8a1051aa0a | 17411:674d8bc2b980 |
---|---|
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" | |
30 | 31 |
31 #ifdef __cplusplus | 32 #ifdef __cplusplus |
32 extern "C" { | 33 extern "C" { |
33 #endif | 34 #endif |
34 | 35 |
124 char *clipboard_text_string; | 125 char *clipboard_text_string; |
125 char *clipboard_html_string; | 126 char *clipboard_html_string; |
126 | 127 |
127 GSList *im_images; | 128 GSList *im_images; |
128 GtkIMHtmlFuncs *funcs; | 129 GtkIMHtmlFuncs *funcs; |
130 GtkSourceUndoManager *undo_manager; | |
129 }; | 131 }; |
130 | 132 |
131 struct _GtkIMHtmlClass { | 133 struct _GtkIMHtmlClass { |
132 GtkTextViewClass parent_class; | 134 GtkTextViewClass parent_class; |
133 | 135 |
135 void (*buttons_update)(GtkIMHtml *, GtkIMHtmlButtons); | 137 void (*buttons_update)(GtkIMHtml *, GtkIMHtmlButtons); |
136 void (*toggle_format)(GtkIMHtml *, GtkIMHtmlButtons); | 138 void (*toggle_format)(GtkIMHtml *, GtkIMHtmlButtons); |
137 void (*clear_format)(GtkIMHtml *); | 139 void (*clear_format)(GtkIMHtml *); |
138 void (*update_format)(GtkIMHtml *); | 140 void (*update_format)(GtkIMHtml *); |
139 gboolean (*message_send)(GtkIMHtml *); | 141 gboolean (*message_send)(GtkIMHtml *); |
142 void (*undo)(GtkIMHtml *); | |
143 void (*redo)(GtkIMHtml *); | |
140 }; | 144 }; |
141 | 145 |
142 struct _GtkIMHtmlFontDetail { | 146 struct _GtkIMHtmlFontDetail { |
143 gushort size; | 147 gushort size; |
144 gchar *face; | 148 gchar *face; |