[gnome-calendar/search-improvements] search-view: highlight date
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calendar/search-improvements] search-view: highlight date
- Date: Mon, 5 Jan 2015 23:57:55 +0000 (UTC)
commit e5f64c16174f69b5e40b8d18d0e3783d3307d4f7
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Mon Jan 5 21:57:07 2015 -0200
search-view: highlight date
src/gcal-search-view.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/src/gcal-search-view.c b/src/gcal-search-view.c
index d36e8af..cffe30a 100644
--- a/src/gcal-search-view.c
+++ b/src/gcal-search-view.c
@@ -132,7 +132,7 @@ make_grid_for_event (GcalSearchView *view,
GtkWidget *grid;
GtkWidget *box;
- gchar *text;
+ gchar *text, *markup;
GtkWidget *start_date;
GtkWidget *start_time;
@@ -166,8 +166,11 @@ make_grid_for_event (GcalSearchView *view,
/* start date & time */
datetime = g_date_time_new_local (start->year, start->month, start->day, start->hour, start->minute,
start->second);
text = g_date_time_format (datetime, priv->date_mask);
- start_date = gtk_label_new (text);
+ markup = g_strdup_printf ("<b>%s</b>", text);
+ start_date = gtk_label_new (NULL);
+ gtk_label_set_markup (GTK_LABEL (start_date), markup);
g_free (text);
+ g_free (markup);
if (!all_day)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]