From f4f5104b7252eddd7b8e70454bc777e9cb7e1f39 Mon Sep 17 00:00:00 2001 From: Benny Malengier Date: Sun, 30 Dec 2012 15:41:54 +0000 Subject: [PATCH] 6205: Gtk.CALENDAR needs a migration to new GI/GTK3 API Also: don't expand the calendar more than needed to show it. svn: r20884 --- gramps/plugins/gramplet/calendargramplet.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/gramps/plugins/gramplet/calendargramplet.py b/gramps/plugins/gramplet/calendargramplet.py index bfb3f4c2b..6ad4c97f5 100644 --- a/gramps/plugins/gramplet/calendargramplet.py +++ b/gramps/plugins/gramplet/calendargramplet.py @@ -40,9 +40,12 @@ class CalendarGramplet(Gramplet): self.gui.calendar = Gtk.Calendar() self.gui.calendar.connect('day-selected-double-click', self.double_click) if self.uistate.screen_width() <= 1024: - self.gui.calendar.set_display_options(Gtk.CALENDAR_SHOW_HEADING) + self.gui.calendar.set_display_options( + Gtk.CalendarDisplayOptions.SHOW_HEADING) self.gui.get_container_widget().remove(self.gui.textview) - self.gui.get_container_widget().add_with_viewport(self.gui.calendar) + vbox = Gtk.VBox(False, 0) + vbox.pack_start(self.gui.calendar, False, False, 0) + self.gui.get_container_widget().add_with_viewport(vbox) self.gui.calendar.show() def post_init(self):