Mercurial > pidgin
diff src/gtkimhtml.h @ 7714:3d9d3d21e600
[gaim-migrate @ 8359]
I rock so hard! This is just too easy. WYSIWYG foreground and background
colors.
The observant commit watcher will note that I'm not really paying too close
attention to the toolbar UI yet. And as a result, it doesn't really work too
great. The plan is to make the toolbar its own GtkWidget, which will attach
to a GtkIMHtml. The GtkIMHtml will emit signals to it, telling it what state
it should be in, and the toolbar will manipulate the GtkIMHtml accordingly.
This way, anything that has text entry can have a toolbar with which to edit
it.
committer: Tailor Script <tailor@pidgin.im>
author | Sean Egan <seanegan@gmail.com> |
---|---|
date | Wed, 03 Dec 2003 04:17:42 +0000 |
parents | 17756d5dcfdf |
children | db3bdae1761e |
line wrap: on
line diff
--- a/src/gtkimhtml.h Wed Dec 03 02:03:44 2003 +0000 +++ b/src/gtkimhtml.h Wed Dec 03 04:17:42 2003 +0000 @@ -56,6 +56,7 @@ char *start_tag; char *end_tag; GtkTextBuffer *buffer; + GtkTextTag *tag; } GtkIMHtmlFormatSpan; struct _GtkIMHtml { @@ -88,6 +89,8 @@ GtkIMHtmlFormatSpan *bold; GtkIMHtmlFormatSpan *italic; GtkIMHtmlFormatSpan *underline; + GtkIMHtmlFormatSpan *forecolor; + GtkIMHtmlFormatSpan *backcolor; } edit; GList *format_spans; }; @@ -206,6 +209,9 @@ gboolean gtk_imhtml_toggle_bold(GtkIMHtml *imhtml); gboolean gtk_imhtml_toggle_italic(GtkIMHtml *imhtml); gboolean gtk_imhtml_toggle_underline(GtkIMHtml *imhtml); +gboolean gtk_imhtml_toggle_forecolor(GtkIMHtml *imhtml, const char *color); +gboolean gtk_imhtml_toggle_backcolor(GtkIMHtml *imhtml, const char *color); + void gtk_imhtml_insert_link(GtkIMHtml *imhtml, const char *url, const char *text); char *gtk_imhtml_get_markup(GtkIMHtml *imhtml);