aboutsummaryrefslogtreecommitdiff
path: root/libmessaging-menu/messaging-menu.h
diff options
context:
space:
mode:
authorSebastien Bacher <seb128@ubuntu.com>2012-09-01 12:35:36 +0200
committerSebastien Bacher <seb128@ubuntu.com>2012-09-01 12:35:36 +0200
commit38c23eb353e046bed03aa3a196079ad6c529c5fc (patch)
treefe03bb7db005946847e3918b2a418900cdb8d0f8 /libmessaging-menu/messaging-menu.h
parent189472aa40bbdc6bc9f9676202ced5bd2eb5e099 (diff)
parentc8794795a7054eff4e21bbca52321195f2d8720c (diff)
downloadayatana-indicator-messages-38c23eb353e046bed03aa3a196079ad6c529c5fc.tar.gz
ayatana-indicator-messages-38c23eb353e046bed03aa3a196079ad6c529c5fc.tar.bz2
ayatana-indicator-messages-38c23eb353e046bed03aa3a196079ad6c529c5fc.zip
* New upstream release, includes apis to allow changing the label and
the icon of sources and add documentation * debian/libmessaging-menu0.symbols: - new version update * debian/libmessaging-menu-dev.install: - install the documentation * debian/rules: - build the documentation - updated shlibs version - use --with gir so gir:Depends work as it should (lp: #1044125)
Diffstat (limited to 'libmessaging-menu/messaging-menu.h')
-rw-r--r--libmessaging-menu/messaging-menu.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/libmessaging-menu/messaging-menu.h b/libmessaging-menu/messaging-menu.h
index e767099..6c405c7 100644
--- a/libmessaging-menu/messaging-menu.h
+++ b/libmessaging-menu/messaging-menu.h
@@ -29,6 +29,16 @@ G_BEGIN_DECLS
#define MESSAGING_MENU_APP_CLASS(c) (G_TYPE_CHECK_CLASS_CAST ((c), MESSAGING_MENU_TYPE_APP, MessagingMenuAppClass))
#define MESSAGING_MENU_IS_APP(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), MESSAGING_MENU_TYPE_APP))
+/**
+ * MessagingMenuStatus:
+ * @MESSAGING_MENU_STATUS_AVAILABLE: available
+ * @MESSAGING_MENU_STATUS_AWAY: away
+ * @MESSAGING_MENU_STATUS_BUSY: busy
+ * @MESSAGING_MENU_STATUS_INVISIBLE: invisible
+ * @MESSAGING_MENU_STATUS_OFFLINE: offline
+ *
+ * An enumeration for the possible chat statuses the messaging menu can be in.
+ */
typedef enum {
MESSAGING_MENU_STATUS_AVAILABLE,
MESSAGING_MENU_STATUS_AWAY,
@@ -107,6 +117,14 @@ void messaging_menu_app_remove_source (MessagingMenuA
gboolean messaging_menu_app_has_source (MessagingMenuApp *app,
const gchar *source_id);
+void messaging_menu_app_set_source_label (MessagingMenuApp *app,
+ const gchar *source_id,
+ const gchar *label);
+
+void messaging_menu_app_set_source_icon (MessagingMenuApp *app,
+ const gchar *source_id,
+ GIcon *icon);
+
void messaging_menu_app_set_source_count (MessagingMenuApp *app,
const gchar *source_id,
guint count);