aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2010-07-16 09:40:50 -0500
committerTed Gould <ted@gould.cx>2010-07-16 09:40:50 -0500
commit929dd21b5b07e5700ddcd1f83e2a21e1f8611cb4 (patch)
tree6fac9f48153f06686a390928a76e284cc111dea0 /src
parentb197777ca10de554d7ab4fc6bfa60c89de13139a (diff)
downloadayatana-indicator-datetime-929dd21b5b07e5700ddcd1f83e2a21e1f8611cb4.tar.gz
ayatana-indicator-datetime-929dd21b5b07e5700ddcd1f83e2a21e1f8611cb4.tar.bz2
ayatana-indicator-datetime-929dd21b5b07e5700ddcd1f83e2a21e1f8611cb4.zip
Adding in an update on changing the format string.
Diffstat (limited to 'src')
-rw-r--r--src/indicator-datetime.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/indicator-datetime.c b/src/indicator-datetime.c
index 5bbfd48..c0a682d 100644
--- a/src/indicator-datetime.c
+++ b/src/indicator-datetime.c
@@ -132,6 +132,8 @@ static GtkMenu * get_menu (IndicatorObject * io);
static GVariant * bind_enum_set (const GValue * value, const GVariantType * type, gpointer user_data);
static gboolean bind_enum_get (GValue * value, GVariant * variant, gpointer user_data);
static gchar * generate_format_string (IndicatorDatetime * self);
+static void update_label (IndicatorDatetime * io);
+static void guess_label_size (IndicatorDatetime * self);
/* Indicator Module Config */
INDICATOR_SET_VERSION
@@ -432,7 +434,8 @@ set_property (GObject * object, guint prop_id, const GValue * value, GParamSpec
self->priv->time_string = newformat;
/* And update everything */
- /* TODO: Update everything */
+ update_label(self);
+ guess_label_size(self);
return;
}