aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/indicator-menu-item.c16
-rw-r--r--src/indicator-menu-item.h5
2 files changed, 20 insertions, 1 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)
diff --git a/src/indicator-menu-item.h b/src/indicator-menu-item.h
index e577a7d..fc27b73 100644
--- a/src/indicator-menu-item.h
+++ b/src/indicator-menu-item.h
@@ -45,8 +45,11 @@ struct _IndicatorMenuItemClass
GType indicator_menu_item_get_type (void) G_GNUC_CONST;
IndicatorMenuItem *indicator_menu_item_new (void);
-void indicator_menu_item_set_right (IndicatorMenuItem *self, const gchar *text);
+
+const gchar * indicator_menu_item_get_label (IndicatorMenuItem *self);
void indicator_menu_item_set_label (IndicatorMenuItem *self, const gchar *text);
+const gchar * indicator_menu_item_get_right (IndicatorMenuItem *self);
+void indicator_menu_item_set_right (IndicatorMenuItem *self, const gchar *text);
gboolean indicator_menu_item_get_right_is_lozenge (IndicatorMenuItem *self);
void indicator_menu_item_set_right_is_lozenge (IndicatorMenuItem *self, gboolean is_lozenge);