[gnome-calendar] search-view: show 'All day' for all day events
- From: Erick Pérez Castellanos <erickpc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calendar] search-view: show 'All day' for all day events
- Date: Fri, 9 Jan 2015 14:31:23 +0000 (UTC)
commit 0c08577504f39e346663c323eba4b175d1f40a73
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Tue Jan 6 17:17:39 2015 -0200
search-view: show 'All day' for all day events
src/gcal-search-view.c | 16 +++++++++++++---
1 files changed, 13 insertions(+), 3 deletions(-)
---
diff --git a/src/gcal-search-view.c b/src/gcal-search-view.c
index 8c69c55..010cb26 100644
--- a/src/gcal-search-view.c
+++ b/src/gcal-search-view.c
@@ -184,12 +184,22 @@ make_row_for_event_data (GcalSearchView *view,
comp_dt.value->minute, comp_dt.value->second);
text = g_date_time_format (datetime, priv->date_mask);
date_label = gtk_label_new (text);
+ gtk_label_set_width_chars (GTK_LABEL (date_label), 14);
g_free (text);
- text = g_date_time_format (datetime, priv->time_mask);
- time_label = gtk_label_new (text);
+ if (comp_dt.value->is_date == 0)
+ {
+ text = g_date_time_format (datetime, priv->time_mask);
+ time_label = gtk_label_new (text);
+ g_free (text);
+ }
+ else
+ {
+ time_label = gtk_label_new (_("All day"));
+ }
+
+ gtk_label_set_width_chars (GTK_LABEL (date_label), 14);
gtk_style_context_add_class (gtk_widget_get_style_context (time_label), "dim-label");
- g_free (text);
/* name label */
name_label = gtk_label_new (summary.value);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]