diff options
author | Ted Gould <ted@gould.cx> | 2010-01-04 23:14:04 -0600 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2010-01-04 23:14:04 -0600 |
commit | 81c0869a03e3429685eed1a5598e7d0ea6975bcf (patch) | |
tree | 61d86491f160b3bb811b74a3afc05fd754c7ad8f | |
parent | 881335a532a8e82191c02df22e661fefbd0d47a3 (diff) | |
download | ayatana-indicator-datetime-81c0869a03e3429685eed1a5598e7d0ea6975bcf.tar.gz ayatana-indicator-datetime-81c0869a03e3429685eed1a5598e7d0ea6975bcf.tar.bz2 ayatana-indicator-datetime-81c0869a03e3429685eed1a5598e7d0ea6975bcf.zip |
Making a label
-rw-r--r-- | src/indicator-datetime.c | 9 |
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; } |