aboutsummaryrefslogtreecommitdiffstats
path: root/calendar
diff options
context:
space:
mode:
Diffstat (limited to 'calendar')
-rw-r--r--calendar/alarm-notify/alarm-notify.ui4
-rw-r--r--calendar/gui/e-calendar-view.c4
2 files changed, 8 insertions, 0 deletions
diff --git a/calendar/alarm-notify/alarm-notify.ui b/calendar/alarm-notify/alarm-notify.ui
index 45ced6297b..995def3dba 100644
--- a/calendar/alarm-notify/alarm-notify.ui
+++ b/calendar/alarm-notify/alarm-notify.ui
@@ -230,7 +230,9 @@
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="halign">start</property>
+ <property name="valign">start</property>
<property name="xalign">0</property>
+ <property name="yalign">0</property>
<property name="label" translatable="yes">Location:</property>
<property name="selectable">True</property>
</object>
@@ -244,6 +246,8 @@
<child>
<object class="GtkLabel" id="location-label">
<property name="visible">True</property>
+ <property name="wrap">True</property>
+ <property name="max-width-chars">80</property>
<property name="can_focus">False</property>
<property name="halign">start</property>
<property name="xalign">0</property>
diff --git a/calendar/gui/e-calendar-view.c b/calendar/gui/e-calendar-view.c
index bf510dd531..f51506b0a7 100644
--- a/calendar/gui/e-calendar-view.c
+++ b/calendar/gui/e-calendar-view.c
@@ -2113,7 +2113,11 @@ e_calendar_view_get_tooltips (const ECalendarViewEventData *data)
/* To Translators: It will display "Location: PlaceOfTheMeeting" */
tmp = g_markup_printf_escaped (_("Location: %s"), str);
label = gtk_label_new (NULL);
+ gtk_widget_set_halign (label, GTK_ALIGN_START);
+ gtk_misc_set_alignment ((GtkMisc *) label, 0.0, 0.0);
gtk_label_set_markup ((GtkLabel *) label, tmp);
+ gtk_label_set_line_wrap ((GtkLabel *) label, TRUE);
+ gtk_label_set_max_width_chars ((GtkLabel *) label, 80);
hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
gtk_box_pack_start ((GtkBox *) hbox, label, FALSE, FALSE, 0);
ebox = gtk_event_box_new ();