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 /src/im-menu-item.c | |
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.
Diffstat (limited to 'src/im-menu-item.c')
-rw-r--r-- | src/im-menu-item.c | 12 |
1 files changed, 12 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; +} |