diff src/gtkimhtml.h @ 7346:15155dbc768a

[gaim-migrate @ 7937] GtkIMHtmlCopyable allows non-text items in gtkimhtml to have alternate text associated with it. Right now only smileys use it, but it can easily be extended to <hr>s or images or whatnot. committer: Tailor Script <tailor@pidgin.im>
author Sean Egan <seanegan@gmail.com>
date Mon, 27 Oct 2003 06:54:50 +0000
parents c7f0a4397d9e
children 6a9acef3b867
line wrap: on
line diff
--- a/src/gtkimhtml.h	Mon Oct 27 05:02:51 2003 +0000
+++ b/src/gtkimhtml.h	Mon Oct 27 06:54:50 2003 +0000
@@ -37,6 +37,7 @@
 #define GTK_IS_IMHTML(obj)         (GTK_CHECK_TYPE ((obj), GTK_TYPE_IMHTML))
 #define GTK_IS_IMHTML_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), GTK_TYPE_IMHTML))
 #define GTK_IMHTML_SCALABLE(obj)   ((GtkIMHtmlScalable *)obj)
+#define GTK_IMHTML_COPYABLE(obj)   ((GtkIMHtmlCopyable *)obj)
 
 typedef struct _GtkIMHtml			GtkIMHtml;
 typedef struct _GtkIMHtmlClass		GtkIMHtmlClass;
@@ -46,6 +47,7 @@
 typedef struct _GtkIMHtmlScalable	GtkIMHtmlScalable;
 typedef struct _GtkIMHtmlImage		GtkIMHtmlImage;
 typedef struct _GtkIMHtmlHr			GtkIMHtmlHr;
+typedef struct _GtkIMHtmlCopyable       GtkIMHtmlCopyable;
 
 struct _GtkIMHtml {
 	GtkTextView text_view;
@@ -67,6 +69,8 @@
 	GList *scalables;
 	GdkRectangle old_rect;
 
+	GSList *copyables;
+
 	gchar *search_string;
 };
 
@@ -103,6 +107,11 @@
 	void (*free)(struct _GtkIMHtmlScalable *);
 };
 
+struct _GtkIMHtmlCopyable {
+	GtkTextMark *mark;
+	char *text;
+};
+
 struct _GtkIMHtmlImage {
 	GtkIMHtmlScalable scalable;
 	GtkImage *image;