diff options
author | Ted Gould <ted@canonical.com> | 2009-09-04 17:31:29 -0500 |
---|---|---|
committer | Ted Gould <ted@canonical.com> | 2009-09-04 17:31:29 -0500 |
commit | e8505fb54db95018b89d29682f507fbb8e56cad2 (patch) | |
tree | 8f7a09a4c5881557a99bcba4e6b708bfe405ec41 | |
parent | cecbadf9b10264eab61dc82ca259b07250b830fe (diff) | |
download | ayatana-indicator-messages-e8505fb54db95018b89d29682f507fbb8e56cad2.tar.gz ayatana-indicator-messages-e8505fb54db95018b89d29682f507fbb8e56cad2.tar.bz2 ayatana-indicator-messages-e8505fb54db95018b89d29682f507fbb8e56cad2.zip |
Adding in a small function to access the show variable.
-rw-r--r-- | src/im-menu-item.c | 12 | ||||
-rw-r--r-- | src/im-menu-item.h | 1 |
2 files changed, 13 insertions, 0 deletions
diff --git a/src/im-menu-item.c b/src/im-menu-item.c index 7f82dba..03cea5e 100644 --- a/src/im-menu-item.c +++ b/src/im-menu-item.c @@ -482,3 +482,15 @@ im_menu_item_show (ImMenuItem * menuitem, gboolean show) return; } + +/* Check to see if this item is shown. Accessor for the + internal variable. */ +gboolean +im_menu_item_shown (ImMenuItem * menuitem) +{ + g_return_val_if_fail(IS_IM_MENU_ITEM(menuitem), FALSE); + + ImMenuItemPrivate * priv = IM_MENU_ITEM_GET_PRIVATE(menuitem); + + return priv->show; +} diff --git a/src/im-menu-item.h b/src/im-menu-item.h index 244c32a..4279c2e 100644 --- a/src/im-menu-item.h +++ b/src/im-menu-item.h @@ -59,6 +59,7 @@ ImMenuItem * im_menu_item_new (IndicateListener * listener, IndicateListenerServ glong im_menu_item_get_seconds (ImMenuItem * menuitem); gboolean im_menu_item_get_attention (ImMenuItem * menuitem); void im_menu_item_show (ImMenuItem * menuitem, gboolean show); +gboolean im_menu_item_shown (ImMenuItem * menuitem); G_END_DECLS |