aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/alarm-notify/alarm-notify-dialog.c
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2010-10-05 00:44:04 +0800
committerMilan Crha <mcrha@redhat.com>2010-10-05 00:44:04 +0800
commitf7ac9ca10a14643dabe456e197a9be3fe06cb30a (patch)
tree75fbadbc94d52752e8bcc511b4dd713c7fa56fcf /calendar/gui/alarm-notify/alarm-notify-dialog.c
parenta9fc19b195dd0f2c7117dad3a00606afafe3544b (diff)
downloadgsoc2013-evolution-f7ac9ca10a14643dabe456e197a9be3fe06cb30a.tar
gsoc2013-evolution-f7ac9ca10a14643dabe456e197a9be3fe06cb30a.tar.gz
gsoc2013-evolution-f7ac9ca10a14643dabe456e197a9be3fe06cb30a.tar.bz2
gsoc2013-evolution-f7ac9ca10a14643dabe456e197a9be3fe06cb30a.tar.lz
gsoc2013-evolution-f7ac9ca10a14643dabe456e197a9be3fe06cb30a.tar.xz
gsoc2013-evolution-f7ac9ca10a14643dabe456e197a9be3fe06cb30a.tar.zst
gsoc2013-evolution-f7ac9ca10a14643dabe456e197a9be3fe06cb30a.zip
Bug #615835 - Alarm not working for authenticated calendars
Diffstat (limited to 'calendar/gui/alarm-notify/alarm-notify-dialog.c')
-rw-r--r--calendar/gui/alarm-notify/alarm-notify-dialog.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/calendar/gui/alarm-notify/alarm-notify-dialog.c b/calendar/gui/alarm-notify/alarm-notify-dialog.c
index 551c064078..ec3c05ed61 100644
--- a/calendar/gui/alarm-notify/alarm-notify-dialog.c
+++ b/calendar/gui/alarm-notify/alarm-notify-dialog.c
@@ -70,7 +70,6 @@ typedef struct {
GtkWidget *description;
GtkWidget *location;
GtkWidget *treeview;
- GtkWidget *scrolledwindow;
AlarmFuncInfo *cur_funcinfo;
@@ -265,13 +264,12 @@ notified_alarms_dialog_new (void)
an->description = e_builder_get_widget (an->builder, "description-label");
an->location = e_builder_get_widget (an->builder, "location-label");
an->treeview = e_builder_get_widget (an->builder, "appointments-treeview");
- an->scrolledwindow = e_builder_get_widget (an->builder, "treeview-scrolledwindow");
snooze_btn = e_builder_get_widget (an->builder, "snooze-button");
an->snooze_btn = snooze_btn;
an->dismiss_btn = e_builder_get_widget (an->builder, "dismiss-button");
edit_btn = e_builder_get_widget (an->builder, "edit-button");
- if (!(an->dialog && an->scrolledwindow && an->treeview && an->snooze_time_min && an->snooze_time_hrs
+ if (!(an->dialog && an->treeview && an->snooze_time_min && an->snooze_time_hrs
&& an->description && an->location && edit_btn && snooze_btn && an->dismiss_btn)) {
g_warning ("alarm_notify_dialog(): Could not find all widgets in alarm-notify.ui file!");
g_object_unref (an->builder);
@@ -441,8 +439,10 @@ fill_in_labels (AlarmNotify *an, const gchar *summary, const gchar *description,
GtkTextTagTable *table = gtk_text_tag_table_new ();
GtkTextBuffer *buffer = gtk_text_buffer_new (table);
gtk_text_buffer_set_text (buffer, description, -1);
+ e_buffer_tagger_disconnect (GTK_TEXT_VIEW (an->description));
gtk_text_view_set_buffer (GTK_TEXT_VIEW (an->description), buffer);
gtk_label_set_text (GTK_LABEL (an->location), location);
+ e_buffer_tagger_connect (GTK_TEXT_VIEW (an->description));
e_buffer_tagger_update_tags (GTK_TEXT_VIEW (an->description));
g_object_unref (table);
g_object_unref (buffer);