diff options
author | Xavier Claessens <xclaesse@gmail.com> | 2009-10-26 18:52:27 +0800 |
---|---|---|
committer | Xavier Claessens <xclaesse@gmail.com> | 2009-11-25 01:29:06 +0800 |
commit | c2a7ae14574cd90f98f97cf84966152ab6023ace (patch) | |
tree | f2e742d515cc285cb183235dcc631d59083e2596 /libempathy-gtk/empathy-smiley-manager.h | |
parent | 783fe36cb4d096a9ed17078e8ddc36b3542b638b (diff) | |
download | gsoc2013-empathy-c2a7ae14574cd90f98f97cf84966152ab6023ace.tar gsoc2013-empathy-c2a7ae14574cd90f98f97cf84966152ab6023ace.tar.gz gsoc2013-empathy-c2a7ae14574cd90f98f97cf84966152ab6023ace.tar.bz2 gsoc2013-empathy-c2a7ae14574cd90f98f97cf84966152ab6023ace.tar.lz gsoc2013-empathy-c2a7ae14574cd90f98f97cf84966152ab6023ace.tar.xz gsoc2013-empathy-c2a7ae14574cd90f98f97cf84966152ab6023ace.tar.zst gsoc2013-empathy-c2a7ae14574cd90f98f97cf84966152ab6023ace.zip |
Introduce a new smiley parser that can parse only a part of a string.
Diffstat (limited to 'libempathy-gtk/empathy-smiley-manager.h')
-rw-r--r-- | libempathy-gtk/empathy-smiley-manager.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/libempathy-gtk/empathy-smiley-manager.h b/libempathy-gtk/empathy-smiley-manager.h index dc7428c3b..7d37c592a 100644 --- a/libempathy-gtk/empathy-smiley-manager.h +++ b/libempathy-gtk/empathy-smiley-manager.h @@ -53,6 +53,13 @@ typedef struct { const gchar *path; } EmpathySmiley; +typedef struct { + GdkPixbuf *pixbuf; + const gchar *path; + gint start; + gint end; +} EmpathySmileyHit; + typedef void (*EmpathySmileyMenuFunc) (EmpathySmileyManager *manager, EmpathySmiley *smiley, gpointer user_data); @@ -67,10 +74,14 @@ void empathy_smiley_manager_add (EmpathySmileyManag GSList * empathy_smiley_manager_get_all (EmpathySmileyManager *manager); GSList * empathy_smiley_manager_parse (EmpathySmileyManager *manager, const gchar *text); +GSList * empathy_smiley_manager_parse_len (EmpathySmileyManager *manager, + const gchar *text, + gssize len); GtkWidget * empathy_smiley_menu_new (EmpathySmileyManager *manager, EmpathySmileyMenuFunc func, gpointer user_data); void empathy_smiley_free (EmpathySmiley *smiley); +void empathy_smiley_hit_free (EmpathySmileyHit *hit); G_END_DECLS |