Mercurial > pidgin.yaz
comparison pidgin/gtkimhtml.h @ 32827:4a34689eeb33 default tip
merged from im.pidgin.pidgin
author | Yoshiki Yazawa <yaz@honeyplanet.jp> |
---|---|
date | Sat, 19 Nov 2011 14:42:54 +0900 |
parents | 1cec4425d0cc |
children |
comparison
equal
deleted
inserted
replaced
32692:0f94ec89f0bc | 32827:4a34689eeb33 |
---|---|
146 void (*undo)(GtkIMHtml *); | 146 void (*undo)(GtkIMHtml *); |
147 void (*redo)(GtkIMHtml *); | 147 void (*redo)(GtkIMHtml *); |
148 GList *protocols; /* List of GtkIMHtmlProtocol's */ | 148 GList *protocols; /* List of GtkIMHtmlProtocol's */ |
149 }; | 149 }; |
150 | 150 |
151 struct _GtkSmileyTree { | |
152 GString *values; | |
153 GtkSmileyTree **children; | |
154 GtkIMHtmlSmiley *image; | |
155 }; | |
156 | |
157 struct _GtkIMHtmlSmiley { | 151 struct _GtkIMHtmlSmiley { |
158 gchar *smile; | 152 gchar *smile; |
159 gchar *file; | 153 gchar *file; |
160 GdkPixbufAnimation *icon; | 154 GdkPixbufAnimation *icon; |
161 gboolean hidden; | 155 gboolean hidden; |
163 GSList *anchors; | 157 GSList *anchors; |
164 GtkIMHtmlSmileyFlags flags; | 158 GtkIMHtmlSmileyFlags flags; |
165 GtkIMHtml *imhtml; | 159 GtkIMHtml *imhtml; |
166 gpointer data; | 160 gpointer data; |
167 gsize datasize; | 161 gsize datasize; |
168 }; | |
169 | |
170 struct _GtkIMHtmlScalable { | |
171 void (*scale)(struct _GtkIMHtmlScalable *, int, int); | |
172 void (*add_to)(struct _GtkIMHtmlScalable *, GtkIMHtml *, GtkTextIter *); | |
173 void (*free)(struct _GtkIMHtmlScalable *); | |
174 }; | |
175 | |
176 struct _GtkIMHtmlImage { | |
177 GtkIMHtmlScalable scalable; | |
178 GtkImage *image; /**< Contains the scaled version of this pixbuf. */ | |
179 GdkPixbuf *pixbuf; /**< The original pixbuf, before any scaling. */ | |
180 GtkTextMark *mark; | |
181 gchar *filename; | |
182 int width; | |
183 int height; | |
184 int id; | |
185 GtkWidget *filesel; | |
186 }; | |
187 | |
188 struct _GtkIMHtmlAnimation { | |
189 GtkIMHtmlImage imhtmlimage; | |
190 GdkPixbufAnimation *anim; /**< The original animation, before any scaling. */ | |
191 GdkPixbufAnimationIter *iter; | |
192 guint timer; | |
193 }; | |
194 | |
195 struct _GtkIMHtmlHr { | |
196 GtkIMHtmlScalable scalable; | |
197 GtkWidget *sep; | |
198 }; | 162 }; |
199 | 163 |
200 typedef enum { | 164 typedef enum { |
201 GTK_IMHTML_NO_COLOURS = 1 << 0, | 165 GTK_IMHTML_NO_COLOURS = 1 << 0, |
202 GTK_IMHTML_NO_FONTS = 1 << 1, | 166 GTK_IMHTML_NO_FONTS = 1 << 1, |