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

svn: r20897
This commit is contained in:
Benny Malengier 2012-12-30 23:21:17 +00:00
parent 6841776261
commit a2b941140c

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)