aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/alarm-notify/alarm-notify-dialog.c
diff options
context:
space:
mode:
authorChenthill Palanisamy <pchen@src.gnome.org>2005-11-17 14:15:43 +0800
committerChenthill Palanisamy <pchen@src.gnome.org>2005-11-17 14:15:43 +0800
commit11fdf8846ed9d246471ee003ab2da133922db40c (patch)
tree3d438d6e03b88fe1143d402515a93de1e3ff9d0a /calendar/gui/alarm-notify/alarm-notify-dialog.c
parent577b578fd4c13e30ed61b503cb9a9b39da4753b0 (diff)
downloadgsoc2013-evolution-11fdf8846ed9d246471ee003ab2da133922db40c.tar
gsoc2013-evolution-11fdf8846ed9d246471ee003ab2da133922db40c.tar.gz
gsoc2013-evolution-11fdf8846ed9d246471ee003ab2da133922db40c.tar.bz2
gsoc2013-evolution-11fdf8846ed9d246471ee003ab2da133922db40c.tar.lz
gsoc2013-evolution-11fdf8846ed9d246471ee003ab2da133922db40c.tar.xz
gsoc2013-evolution-11fdf8846ed9d246471ee003ab2da133922db40c.tar.zst
gsoc2013-evolution-11fdf8846ed9d246471ee003ab2da133922db40c.zip
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
Diffstat (limited to 'calendar/gui/alarm-notify/alarm-notify-dialog.c')
-rw-r--r--calendar/gui/alarm-notify/alarm-notify-dialog.c11
1 files changed, 8 insertions, 3 deletions
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 <gtk/gtksignal.h>
#include <gtk/gtkscrolledwindow.h>
#include <gtk/gtkwindow.h>
+#include <gtk/gtk.h>
#include <libgnome/gnome-i18n.h>
#if 0
# include <libgnomeui/gnome-winhints.h>
@@ -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);
}