Example #1
0
    def dialog_show_new(self, page=0):
        StacksGuiDialog.dialog_show_new(self, page)
        if self.navbuttons is None:
            self.navbuttons = gtk.HButtonBox()
            self.navbuttons.set_layout(gtk.BUTTONBOX_EDGE)
            self.navbuttons.show()
            self.dialog.add(self.navbuttons)

        if self.bt_empty is None:
            self.bt_empty = gtk.Button(stock=gtk.STOCK_DELETE)
            self.bt_empty.set_use_stock(True)
            self.bt_empty.set_relief(gtk.RELIEF_NONE)
            self.bt_empty.connect("clicked", self.empty_trash)
            self.bt_empty.show()
            self.navbuttons.add(self.bt_empty)
            self.navbuttons.reorder_child(self.bt_empty, 1)
Example #2
0
 def __init__(self, applet):
     StacksGuiDialog.__init__(self, applet)