6205: Gtk.CALENDAR needs a migration to new GI/GTK3 API

svn: r20896
This commit is contained in:
Benny Malengier 2012-12-30 23:20:31 +00:00
parent e41c6db70d
commit 8b26f688cb

View File

@ -39,8 +39,7 @@ class CalendarGramplet(Gramplet):
self.set_tooltip(_("Double-click a day for details"))
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(
self.gui.calendar.set_display_options(
Gtk.CalendarDisplayOptions.SHOW_HEADING)
self.gui.get_container_widget().remove(self.gui.textview)
vbox = Gtk.VBox(False, 0)