window: use markup label for in-app notification

This commit is contained in:
Georges Basile Stavracas Neto
2015-05-25 12:35:26 -04:00
committed by Erick Pérez Castellanos
parent 9df8b8077d
commit 17f56895dd
2 changed files with 3 additions and 2 deletions
+1
View File
@@ -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>
+2 -2
View File
@@ -783,7 +783,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)
@@ -965,7 +965,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"));