~rosco2/ubuntu/wily/gramps/bug-1492304

« back to all changes in this revision

Viewing changes to gramps/plugins/gramplet/todo.py

  • Committer: Package Import Robot
  • Author(s): Ross Gammon
  • Date: 2015-08-11 23:03:11 UTC
  • mfrom: (1.4.3)
  • mto: This revision was merged to the branch mainline in revision 58.
  • Revision ID: package-import@ubuntu.com-20150811230311-acjr8gcfe8isx7ij
* New upstream release
* Drop patches applied upstream or cherry-picked from there
* Add version constraints for gtk and pygobject
* Add goocanvas dependency - available soon
* Drop webkit dpendency as HTML view has been removed
* Force removal of upstream packages when installing Debian one
  (LP: #1464845)
* Drop fixperm override as permissions fixed upstream
* Fix spelling error in changelog
* Switch to nose for unit tests
* Add build dependencies for the nose tests
* Update copyright file
* Add uversionmangle to watch file to deal with alpha/beta versions
* Add manual test cases
* Drop FAQ URL from upstream metadata - changes every release
* Add patch to fix transparent windows in Ubuntu.
  Thanks to Lance Orner (LP: #1451259)

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
    def init(self):
34
34
        self.gui.WIDGET = self.build_gui()
35
35
        self.gui.get_container_widget().remove(self.gui.textview)
36
 
        self.gui.get_container_widget().add_with_viewport(self.gui.WIDGET)
 
36
        self.gui.get_container_widget().add(self.gui.WIDGET)
37
37
        self.gui.WIDGET.show()
38
38
 
39
39
    def build_gui(self):
40
40
        """
41
41
        Build the GUI interface.
42
42
        """
43
 
        top = Gtk.VBox(homogeneous=False)
 
43
        top = Gtk.Box(orientation=Gtk.Orientation.VERTICAL)
44
44
        
45
 
        hbox = Gtk.HBox()
46
 
        self.left = SimpleButton(Gtk.STOCK_GO_BACK, self.left_clicked)
 
45
        hbox = Gtk.Box()
 
46
        self.left = SimpleButton('go-previous', self.left_clicked)
47
47
        self.left.set_tooltip_text(_('Previous To Do note'))
48
48
        self.left.set_sensitive(False)
49
49
        hbox.pack_start(self.left, False, False, 0)
50
 
        self.right = SimpleButton(Gtk.STOCK_GO_FORWARD, self.right_clicked)
 
50
        self.right = SimpleButton('go-next', self.right_clicked)
51
51
        self.right.set_tooltip_text(_('Next To Do note'))
52
52
        self.right.set_sensitive(False)
53
53
        hbox.pack_start(self.right, False, False, 0)
54
 
        self.edit = SimpleButton(Gtk.STOCK_EDIT, self.edit_clicked)
 
54
        self.edit = SimpleButton('gtk-edit', self.edit_clicked)
55
55
        self.edit.set_tooltip_text(_('Edit the selected To Do note'))
56
56
        self.edit.set_sensitive(False)
57
57
        hbox.pack_start(self.edit, False, False, 0)
58
 
        self.new = SimpleButton(Gtk.STOCK_NEW, self.new_clicked)
 
58
        self.new = SimpleButton('document-new', self.new_clicked)
59
59
        self.new.set_tooltip_text(_('Add a new To Do note'))
60
60
        hbox.pack_start(self.new, False, False, 0)
61
61
        self.page = Gtk.Label()