aboutsummaryrefslogtreecommitdiff
path: root/src/indicator-menu-item.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/indicator-menu-item.c')
-rw-r--r--src/indicator-menu-item.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/indicator-menu-item.c b/src/indicator-menu-item.c
index a41177d..a751b4c 100644
--- a/src/indicator-menu-item.c
+++ b/src/indicator-menu-item.c
@@ -283,6 +283,14 @@ indicator_menu_item_new (void)
}
+const gchar *
+indicator_menu_item_get_label (IndicatorMenuItem *self)
+{
+ IndicatorMenuItemPrivate *priv = MENU_ITEM_PRIVATE (self);
+ return gtk_label_get_label (GTK_LABEL (priv->label));
+}
+
+
void
indicator_menu_item_set_label (IndicatorMenuItem *self,
const gchar *text)
@@ -293,6 +301,14 @@ indicator_menu_item_set_label (IndicatorMenuItem *self,
}
+const gchar *
+indicator_menu_item_get_right (IndicatorMenuItem *self)
+{
+ IndicatorMenuItemPrivate *priv = MENU_ITEM_PRIVATE (self);
+ return gtk_label_get_label (GTK_LABEL (priv->right_label));
+}
+
+
void
indicator_menu_item_set_right (IndicatorMenuItem *self,
const gchar *text)