[gnome-calendar/calendar-editor] window: use markup label for in-app notification



commit 6b04ddafc1549d734f6bc91a4d7b62e99c7f7247
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Tue Feb 10 11:30:47 2015 -0200

    window: use markup label for in-app notification

 data/ui/window.ui |    1 +
 src/gcal-window.c |    4 ++--
 2 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/data/ui/window.ui b/data/ui/window.ui
index 4ccd736..580b1b3 100644
--- a/data/ui/window.ui
+++ b/data/ui/window.ui
@@ -132,6 +132,7 @@
                       <object class="GtkLabel" id="notification_label">
                         <property name="visible">True</property>
                         <property name="can_focus">False</property>
+                        <property name="use_markup">True</property>
                       </object>
                       <packing>
                         <property name="left_attach">0</property>
diff --git a/src/gcal-window.c b/src/gcal-window.c
index 84c4001..1eeeaf5 100644
--- a/src/gcal-window.c
+++ b/src/gcal-window.c
@@ -744,7 +744,7 @@ create_notification (GcalWindow *window,
   priv = gcal_window_get_instance_private (window);
 
   /* notification content */
-  gtk_label_set_text (GTK_LABEL (priv->notification_label), message);
+  gtk_label_set_markup (GTK_LABEL (priv->notification_label), message);
   gtk_widget_show_all (priv->notification);
 
   if (button_label != NULL)
@@ -922,7 +922,7 @@ source_row_activated (GtkListBox    *listbox,
     {
       gchar *str;
 
-      str = g_strdup_printf (_("Calendar '%s' removed"), e_source_get_display_name (source));
+      str = g_strdup_printf (_("Calendar <b>%s</b> removed"), e_source_get_display_name (source));
       priv->removed_source = source;
 
       create_notification (GCAL_WINDOW (user_data), str, _("Undo"));


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]