]> git.0d.be Git - empathy.git/blobdiff - libempathy-gtk/gossip-chat.h
[darcs-to-svn @ Use icon-name API instead of stock icons and update tango icons]
[empathy.git] / libempathy-gtk / gossip-chat.h
index 9a0a0c317c408610e20c77f5800282e9a8b18269..8cbcee0b6fde3ddff7e7d2d2f810b6ef265e1319 100644 (file)
@@ -1,6 +1,7 @@
 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
 /*
  * Copyright (C) 2002-2007 Imendio AB
+ * Copyright (C) 2007 Collabora Ltd.
  *
  * This program is free software; you can redistribute it and/or
  * modify it under the terms of the GNU General Public License as
@@ -21,6 +22,7 @@
  *          Richard Hult <richard@imendio.com>
  *          Martyn Russell <martyn@imendio.com>
  *          Geert-Jan Van den Bogaerde <geertjan@gnome.org>
+ *          Xavier Claessens <xclaesse@gmail.com>
  */
 
 #ifndef __GOSSIP_CHAT_H__
@@ -64,27 +66,26 @@ struct _GossipChatClass {
        GObjectClass parent;
 
        /* VTable */
-       const gchar *    (*get_name)         (GossipChat  *chat);
-       gchar *          (*get_tooltip)      (GossipChat  *chat);
-       GdkPixbuf *      (*get_status_pixbuf)(GossipChat  *chat);
-       GossipContact *  (*get_contact)      (GossipChat  *chat);
-       GtkWidget *      (*get_widget)       (GossipChat  *chat);
-
-       gboolean         (*get_show_contacts)(GossipChat  *chat);
-       void             (*set_show_contacts)(GossipChat  *chat,
-                                             gboolean     show);
-
-       gboolean         (*is_group_chat)    (GossipChat  *chat);
-       void             (*save_geometry)    (GossipChat  *chat,
-                                             gint         x,
-                                             gint         y,
-                                             gint         w,
-                                             gint         h);
-       void             (*load_geometry)    (GossipChat  *chat,
-                                             gint        *x,
-                                             gint        *y,
-                                             gint        *w,
-                                             gint        *h);
+       const gchar *    (*get_name)            (GossipChat  *chat);
+       gchar *          (*get_tooltip)         (GossipChat  *chat);
+       const gchar *    (*get_status_icon_name)(GossipChat  *chat);
+       GossipContact *  (*get_contact)         (GossipChat  *chat);
+       GtkWidget *      (*get_widget)          (GossipChat  *chat);
+
+       gboolean         (*get_show_contacts)   (GossipChat  *chat);
+       void             (*set_show_contacts)   (GossipChat  *chat,
+                                                gboolean     show);
+       gboolean         (*is_group_chat)       (GossipChat  *chat);
+       void             (*save_geometry)       (GossipChat  *chat,
+                                                gint         x,
+                                                gint         y,
+                                                gint         w,
+                                                gint         h);
+       void             (*load_geometry)       (GossipChat  *chat,
+                                                gint        *x,
+                                                gint        *y,
+                                                gint        *w,
+                                                gint        *h);
 };
 
 GType             gossip_chat_get_type              (void);
@@ -101,14 +102,13 @@ void              gossip_chat_copy                  (GossipChat       *chat);
 void              gossip_chat_paste                 (GossipChat       *chat);
 const gchar *     gossip_chat_get_name              (GossipChat       *chat);
 gchar *           gossip_chat_get_tooltip           (GossipChat       *chat);
-GdkPixbuf *       gossip_chat_get_status_pixbuf     (GossipChat       *chat);
+const gchar *     gossip_chat_get_status_icon_name  (GossipChat       *chat);
 GossipContact *   gossip_chat_get_contact           (GossipChat       *chat);
 GossipContact *   gossip_chat_get_own_contact       (GossipChat       *chat);
 GtkWidget *       gossip_chat_get_widget            (GossipChat       *chat);
 gboolean          gossip_chat_get_show_contacts     (GossipChat       *chat);
 void              gossip_chat_set_show_contacts     (GossipChat       *chat,
                                                     gboolean          show);
-
 gboolean          gossip_chat_is_group_chat         (GossipChat       *chat);
 gboolean          gossip_chat_is_connected          (GossipChat       *chat);
 
@@ -124,6 +124,7 @@ void              gossip_chat_load_geometry         (GossipChat       *chat,
                                                     gint             *h);
 void              gossip_chat_set_tp_chat           (GossipChat       *chat,
                                                     EmpathyTpChat    *tp_chat);
+const gchar *     gossip_chat_get_id                (GossipChat       *chat);
 
 /* For spell checker dialog to correct the misspelled word. */
 gboolean          gossip_chat_get_is_command        (const gchar      *str);