aboutsummaryrefslogtreecommitdiffstats
path: root/calendar
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2014-04-11 14:29:03 +0800
committerMilan Crha <mcrha@redhat.com>2014-04-11 14:29:03 +0800
commit86091846ac34cea57264c15a9e0cdfa853ad3451 (patch)
tree8e3d73c7516728beb5e62982d6165aabd8bc3b67 /calendar
parent31c2e79d3f015476b1411f00a411531e97408455 (diff)
downloadgsoc2013-evolution-86091846ac34cea57264c15a9e0cdfa853ad3451.tar
gsoc2013-evolution-86091846ac34cea57264c15a9e0cdfa853ad3451.tar.gz
gsoc2013-evolution-86091846ac34cea57264c15a9e0cdfa853ad3451.tar.bz2
gsoc2013-evolution-86091846ac34cea57264c15a9e0cdfa853ad3451.tar.lz
gsoc2013-evolution-86091846ac34cea57264c15a9e0cdfa853ad3451.tar.xz
gsoc2013-evolution-86091846ac34cea57264c15a9e0cdfa853ad3451.tar.zst
gsoc2013-evolution-86091846ac34cea57264c15a9e0cdfa853ad3451.zip
Bug #727888 - Wrap the Location label in a reminder dialog
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 ();