aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/im-menu-item.c12
-rw-r--r--src/im-menu-item.h1
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