[gnome-calendar] search-view: highlight date



commit 900b55dce58f704cedd651f133bbf7105da2d3b6
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]