search-view: remove GcalSearchView::time_mask field
It is unused and should be removed to avoid further headaches.
This commit is contained in:
committed by
Erick Pérez Castellanos
parent
d72729356d
commit
a9de8dd3c1
@@ -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";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user