window: use markup label for in-app notification
This commit is contained in:
committed by
Erick Pérez Castellanos
parent
9df8b8077d
commit
17f56895dd
@@ -132,6 +132,7 @@
|
|||||||
<object class="GtkLabel" id="notification_label">
|
<object class="GtkLabel" id="notification_label">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="can_focus">False</property>
|
<property name="can_focus">False</property>
|
||||||
|
<property name="use_markup">True</property>
|
||||||
</object>
|
</object>
|
||||||
<packing>
|
<packing>
|
||||||
<property name="left_attach">0</property>
|
<property name="left_attach">0</property>
|
||||||
|
|||||||
+2
-2
@@ -783,7 +783,7 @@ create_notification (GcalWindow *window,
|
|||||||
priv = gcal_window_get_instance_private (window);
|
priv = gcal_window_get_instance_private (window);
|
||||||
|
|
||||||
/* notification content */
|
/* 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);
|
gtk_widget_show_all (priv->notification);
|
||||||
|
|
||||||
if (button_label != NULL)
|
if (button_label != NULL)
|
||||||
@@ -965,7 +965,7 @@ source_row_activated (GtkListBox *listbox,
|
|||||||
{
|
{
|
||||||
gchar *str;
|
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;
|
priv->removed_source = source;
|
||||||
|
|
||||||
create_notification (GCAL_WINDOW (user_data), str, _("Undo"));
|
create_notification (GCAL_WINDOW (user_data), str, _("Undo"));
|
||||||
|
|||||||
Reference in New Issue
Block a user