aboutsummaryrefslogtreecommitdiff
path: root/src/indicator-datetime.c
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2010-01-04 23:14:04 -0600
committerTed Gould <ted@gould.cx>2010-01-04 23:14:04 -0600
commit81c0869a03e3429685eed1a5598e7d0ea6975bcf (patch)
tree61d86491f160b3bb811b74a3afc05fd754c7ad8f /src/indicator-datetime.c
parent881335a532a8e82191c02df22e661fefbd0d47a3 (diff)
downloadayatana-indicator-datetime-81c0869a03e3429685eed1a5598e7d0ea6975bcf.tar.gz
ayatana-indicator-datetime-81c0869a03e3429685eed1a5598e7d0ea6975bcf.tar.bz2
ayatana-indicator-datetime-81c0869a03e3429685eed1a5598e7d0ea6975bcf.zip
Making a label
Diffstat (limited to 'src/indicator-datetime.c')
-rw-r--r--src/indicator-datetime.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/indicator-datetime.c b/src/indicator-datetime.c
index c022a99..16a792c 100644
--- a/src/indicator-datetime.c
+++ b/src/indicator-datetime.c
@@ -32,7 +32,7 @@ struct _IndicatorDatetime {
};
struct _IndicatorDatetimePrivate {
- int dummy;
+ GtkLabel * label;
};
#define INDICATOR_DATETIME_GET_PRIVATE(o) \
@@ -96,7 +96,12 @@ indicator_datetime_finalize (GObject *object)
static GtkLabel *
get_label (IndicatorObject * io)
{
+ IndicatorDatetime * self = INDICATOR_DATETIME(io);
+ if (self->priv->label == NULL) {
+ self->priv->label = GTK_LABEL(gtk_label_new("Time"));
+ gtk_widget_show(GTK_WIDGET(self->priv->label));
+ }
- return NULL;
+ return self->priv->label;
}