[gnome-calendar] search-view: remove GcalSearchView::time_mask field
- From: Erick Pérez Castellanos <erickpc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calendar] search-view: remove GcalSearchView::time_mask field
- Date: Fri, 9 Jan 2015 14:32:14 +0000 (UTC)
commit a9de8dd3c14588f39cb3d0c2a15a1777673141b0
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Wed Jan 7 01:43:37 2015 -0200
search-view: remove GcalSearchView::time_mask field
It is unused and should be removed to avoid further headaches.
src/gcal-search-view.c | 7 -------
1 files changed, 0 insertions(+), 7 deletions(-)
---
diff --git a/src/gcal-search-view.c b/src/gcal-search-view.c
index c3dce46..172708e 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 *time_mask;
gchar *date_mask;
/* property */
@@ -475,7 +474,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";
- priv->time_mask = "%H:%M";
gtk_widget_init_template (GTK_WIDGET (self));
}
@@ -696,9 +694,4 @@ gcal_search_view_set_time_format (GcalSearchView *view,
priv = gcal_search_view_get_instance_private (view);
priv->format_24h = format_24h;
-
- if (format_24h)
- priv->time_mask = "%H:%M";
- else
- priv->time_mask = "%I:%M %p";
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]