[gnome-calendar] search-view: remove GcalSearchView::date_mask fiels
- From: Erick Pérez Castellanos <erickpc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calendar] search-view: remove GcalSearchView::date_mask fiels
- Date: Fri, 9 Jan 2015 14:32:19 +0000 (UTC)
commit 6c7500c5b0d2a1e5dd9ec286cf7d7a2aaab8afcc
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Wed Jan 7 01:46:46 2015 -0200
search-view: remove GcalSearchView::date_mask fiels
Completely replaced by "%x" formatting string on GDateTime.
src/gcal-search-view.c | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/src/gcal-search-view.c b/src/gcal-search-view.c
index 172708e..9e197b0 100644
--- a/src/gcal-search-view.c
+++ b/src/gcal-search-view.c
@@ -44,7 +44,6 @@ typedef struct
/* misc */
gint no_results_timeout_id;
gint num_results;
- gchar *date_mask;
/* property */
icaltimetype *date;
@@ -194,7 +193,7 @@ make_row_for_event_data (GcalSearchView *view,
/* start date & time */
datetime = g_date_time_new_local (comp_dt.value->year, comp_dt.value->month, comp_dt.value->day,
comp_dt.value->hour,
comp_dt.value->minute, comp_dt.value->second);
- text = g_date_time_format (datetime, priv->date_mask);
+ text = g_date_time_format (datetime, "%x");
date_label = gtk_label_new (text);
gtk_label_set_width_chars (GTK_LABEL (date_label), 14);
g_free (text);
@@ -473,7 +472,6 @@ gcal_search_view_init (GcalSearchView *self)
priv->events = g_hash_table_new_full (g_str_hash, g_str_equal, g_free, (GDestroyNotify) free_row_data);
priv->row_to_event = g_hash_table_new (g_direct_hash, g_direct_equal);
- priv->date_mask = "%d %b %Y";
gtk_widget_init_template (GTK_WIDGET (self));
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]