From 11fdf8846ed9d246471ee003ab2da133922db40c Mon Sep 17 00:00:00 2001 From: Chenthill Palanisamy Date: Thu, 17 Nov 2005 06:15:43 +0000 Subject: changes are made in alarm-notify.glade and alarm-notify-dialog.c to make sure that the description part of the alarm dialog comes in a scroll window and thus fixing #314550 svn path=/trunk/; revision=30632 --- calendar/gui/alarm-notify/alarm-notify-dialog.c | 11 ++++-- calendar/gui/alarm-notify/alarm-notify.glade | 52 +++++++++++++------------ 2 files changed, 35 insertions(+), 28 deletions(-) (limited to 'calendar/gui/alarm-notify') diff --git a/calendar/gui/alarm-notify/alarm-notify-dialog.c b/calendar/gui/alarm-notify/alarm-notify-dialog.c index 667ba997b0..c9fd68029e 100644 --- a/calendar/gui/alarm-notify/alarm-notify-dialog.c +++ b/calendar/gui/alarm-notify/alarm-notify-dialog.c @@ -32,6 +32,7 @@ #include #include #include +#include #include #if 0 # include @@ -295,7 +296,6 @@ notified_alarms_dialog_new (void) return na; } - /** * add_alarm_to_notified_alarms_dialog: * @na: Pointer to the dialog-info @@ -393,6 +393,11 @@ static void fill_in_labels (AlarmNotify *an, const gchar *summary, const gchar *description, const gchar *location, time_t occur_start, time_t occur_end) { - gtk_label_set_text (GTK_LABEL (an->description), description); - gtk_label_set_text (GTK_LABEL (an->location), location); + GtkTextTagTable *table = gtk_text_tag_table_new (); + GtkTextBuffer *buffer = gtk_text_buffer_new (table); + gtk_text_buffer_set_text (buffer, description, -1); + gtk_text_view_set_buffer (GTK_TEXT_VIEW (an->description), buffer); + gtk_label_set_text (GTK_LABEL (an->location), location); + g_object_unref (table); + g_object_unref (buffer); } diff --git a/calendar/gui/alarm-notify/alarm-notify.glade b/calendar/gui/alarm-notify/alarm-notify.glade index a258714bb9..97bdea1f45 100644 --- a/calendar/gui/alarm-notify/alarm-notify.glade +++ b/calendar/gui/alarm-notify/alarm-notify.glade @@ -126,32 +126,34 @@ False 12 - - - True - True - description of appointment - False - True - GTK_JUSTIFY_LEFT - True - True - 0 - 0.5 - 0 - 0 - PANGO_ELLIPSIZE_NONE - -1 - False - 0 - - - 0 - False - False - + + + True + GTK_POLICY_AUTOMATIC + GTK_POLICY_AUTOMATIC + GTK_SHADOW_IN + GTK_CORNER_TOP_LEFT + + + True + True + False + False + True + GTK_JUSTIFY_LEFT + GTK_WRAP_WORD + True + 0 + 0 + 0 + 0 + 0 + 0 + + + + - True -- cgit v1.2.3