[evolution] Bug #727888 - Wrap the Location label in a reminder dialog



commit 86091846ac34cea57264c15a9e0cdfa853ad3451
Author: Milan Crha <mcrha redhat com>
Date:   Fri Apr 11 08:29:03 2014 +0200

    Bug #727888 - Wrap the Location label in a reminder dialog

 calendar/alarm-notify/alarm-notify.ui |    4 ++++
 calendar/gui/e-calendar-view.c        |    4 ++++
 2 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/calendar/alarm-notify/alarm-notify.ui b/calendar/alarm-notify/alarm-notify.ui
index 45ced62..995def3 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 bf510dd..f51506b 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 ();


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