[gnome-panel/wip/status-notifier] snh: print warning with item category
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-panel/wip/status-notifier] snh: print warning with item category
- Date: Mon, 22 Jun 2015 12:52:31 +0000 (UTC)
commit d8849ddcb1870485ddcb56d4afd72639e061a2b0
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Mon Jun 22 15:51:55 2015 +0300
snh: print warning with item category
applets/snh/snh-applet.c | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)
---
diff --git a/applets/snh/snh-applet.c b/applets/snh/snh-applet.c
index a795fd5..045b114 100644
--- a/applets/snh/snh-applet.c
+++ b/applets/snh/snh-applet.c
@@ -38,12 +38,24 @@ items_changed_cb (SnHost *host,
{
SnhApplet *applet;
GList *list;
+ GList *l;
gchar *text;
applet = SNH_APPLET (user_data);
list = sn_host_get_items (host);
+ for (l = list; l; l = l->next)
+ {
+ SnItemClient *item;
+ SnItemCategory category;
+
+ item = SN_ITEM_CLIENT (l->data);
+ category = sn_item_client_get_category (item);
+
+ g_warning ("SnItemCategory: %d", (int) category);
+ }
+
text = g_strdup_printf ("Items: %d", g_list_length (list));
g_list_free (list);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]