Mercurial > pidgin.yaz
comparison src/gtkimhtml.h @ 4263:74f65a3d2a1f
[gaim-migrate @ 4514]
I wanted to get this into cvs before I went to bed. Now proto-specific
themes will work. The code's a bit crude at parts and it's not as fast
as I'd like, but I can work some more on it tomorrow. Just figured you'd
want to get a look at this.
8 penguin points to whoever finds out why gtk_smiley_tree_destroy (commented
out right now, causing leakage) segfaults on me now.
committer: Tailor Script <tailor@pidgin.im>
author | Sean Egan <seanegan@gmail.com> |
---|---|
date | Thu, 09 Jan 2003 09:41:49 +0000 |
parents | e9f243406a3d |
children | 8299114f5693 |
comparison
equal
deleted
inserted
replaced
4262:7103653dd34e | 4263:74f65a3d2a1f |
---|---|
36 #define GTK_IS_IMHTML_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), GTK_TYPE_IMHTML)) | 36 #define GTK_IS_IMHTML_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), GTK_TYPE_IMHTML)) |
37 | 37 |
38 typedef gchar** (*GtkIMHtmlImage) (gchar *url); | 38 typedef gchar** (*GtkIMHtmlImage) (gchar *url); |
39 | 39 |
40 typedef struct _GtkSmileyTree GtkSmileyTree; | 40 typedef struct _GtkSmileyTree GtkSmileyTree; |
41 typedef struct _GtkIMHtmlSmiley GtkIMHtmlSmiley; | |
41 | 42 |
42 typedef struct _GtkIMHtml GtkIMHtml; | 43 typedef struct _GtkIMHtml GtkIMHtml; |
43 typedef struct _GtkIMHtmlClass GtkIMHtmlClass; | 44 typedef struct _GtkIMHtmlClass GtkIMHtmlClass; |
44 | 45 |
45 struct _GtkIMHtml { | 46 struct _GtkIMHtml { |
58 | 59 |
59 struct _GtkIMHtmlClass { | 60 struct _GtkIMHtmlClass { |
60 GtkTextViewClass parent_class; | 61 GtkTextViewClass parent_class; |
61 | 62 |
62 void (*url_clicked) (GtkIMHtml *, const gchar *); | 63 void (*url_clicked) (GtkIMHtml *, const gchar *); |
64 }; | |
65 | |
66 struct _GtkIMHtmlSmiley { | |
67 gchar *smile; | |
68 gchar *file; | |
69 GdkPixbuf *icon; | |
70 gboolean hidden; | |
63 }; | 71 }; |
64 | 72 |
65 typedef enum | 73 typedef enum |
66 { | 74 { |
67 GTK_IMHTML_NO_COLOURS = 1 << 0, | 75 GTK_IMHTML_NO_COLOURS = 1 << 0, |
84 void gtk_imhtml_set_img_handler (GtkIMHtml *imhtml, | 92 void gtk_imhtml_set_img_handler (GtkIMHtml *imhtml, |
85 GtkIMHtmlImage handler); | 93 GtkIMHtmlImage handler); |
86 | 94 |
87 void gtk_imhtml_associate_smiley (GtkIMHtml *imhtml, | 95 void gtk_imhtml_associate_smiley (GtkIMHtml *imhtml, |
88 gchar *sml, | 96 gchar *sml, |
89 gchar *text, | 97 GtkIMHtmlSmiley *smiley); |
90 gchar *path); | |
91 | 98 |
92 void gtk_imhtml_remove_smileys (GtkIMHtml *imhtml); | 99 void gtk_imhtml_remove_smileys (GtkIMHtml *imhtml); |
93 | 100 |
94 void gtk_imhtml_show_smileys (GtkIMHtml *imhtml, | 101 void gtk_imhtml_show_smileys (GtkIMHtml *imhtml, |
95 gboolean show); | 102 gboolean show); |