]> git.0d.be Git - empathy.git/blobdiff - libempathy-gtk/empathy-smiley-manager.h
Updated Spanish Translation
[empathy.git] / libempathy-gtk / empathy-smiley-manager.h
index dae022dfa27f4fd37dba8e140108a39cfe6a496e..b9e753bf689957316246ad989930912a37dbb1c7 100644 (file)
@@ -15,7 +15,7 @@
  * You should have received a copy of the GNU Lesser General Public
  * License along with this library; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
- * 
+ *
  * Authors: Dafydd Harrie <dafydd.harries@collabora.co.uk>
  *          Xavier Claessens <xclaesse@gmail.com>
  */
@@ -23,7 +23,6 @@
 #ifndef __EMPATHY_SMILEY_MANAGER__H__
 #define __EMPATHY_SMILEY_MANAGER_H__
 
-#include <glib-object.h>
 #include <gtk/gtk.h>
 
 G_BEGIN_DECLS
@@ -48,10 +47,17 @@ struct _EmpathySmileyManagerClass {
 };
 
 typedef struct {
-       GdkPixbuf *pixbuf;
-       gchar     *str;
+       GdkPixbuf   *pixbuf;
+       gchar       *str;
 } EmpathySmiley;
 
+typedef struct {
+       GdkPixbuf   *pixbuf; /* Pixbuf of the smiley */
+       const gchar *path;   /* Filename of the smiley image */
+       guint        start;  /* text[start:end] should be replaced by pixbuf */
+       guint        end;
+} EmpathySmileyHit;
+
 typedef void (*EmpathySmileyMenuFunc) (EmpathySmileyManager *manager,
                                       EmpathySmiley        *smiley,
                                       gpointer              user_data);
@@ -63,17 +69,14 @@ void                  empathy_smiley_manager_add             (EmpathySmileyManag
                                                              const gchar          *icon_name,
                                                              const gchar          *first_str,
                                                              ...);
-void                  empathy_smiley_manager_add_from_pixbuf (EmpathySmileyManager *manager,
-                                                             GdkPixbuf            *smiley,
-                                                             const gchar          *first_str,
-                                                             ...);
 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