edit-dialog: setup the correct label when selecting a calendar

Since now we manually manage the headerbar title and subtitle, setting
them via GtkHeaderBar API won't have any effect.

Fix that by directly setting the subtitle label.

https://bugzilla.gnome.org/show_bug.cgi?id=771565
This commit is contained in:
Georges Basile Stavracas Neto
2016-09-28 00:34:23 -03:00
parent 1e1452810e
commit a8f4346e1c
+1 -2
View File
@@ -223,8 +223,7 @@ on_calendar_selected (GSimpleAction *action,
self->selected_source = source;
gtk_header_bar_set_subtitle (GTK_HEADER_BAR (self->titlebar),
e_source_get_display_name (source));
gtk_label_set_label (GTK_LABEL (self->subtitle_label), e_source_get_display_name (source));
break;
}
}