Moises Henriquez avatar Moises Henriquez committed c454d11

Fixed sqlite timestamp out of sync bug

Comments (0)

Files changed (2)

src/vpackager/bot.py

         self.dbase_model.close()
         return gtk.main_quit()
 
-
     def _exit(self, widget=None, event=None):
         if self.RUN_BOT:
             # Warn the user about running tasks

src/vpackager/guitools.py

     def __init__(self, text):
         gtk.Label.__init__(self)
         self.set_use_markup(True)
-        self.set_markup(
-        "<span size='xx-large'>%s</span>"% text)
+        self.set_markup('<span size="xx-large">%s</span>'% text)
+
+class TinyLabel(gtk.Label):
+    """ Preset label that displays text in a smaller font """
+    def __init__(self, text):
+        gtk.Label.__init__(self)
+        self.set_use_markup(True)
+        self.set_markup('span size="xx-small">%s</span>'% text)
 
 class LogDisplay(gtk.Dialog):
     """ Dialog used to display the build log"""
         col0 = gtk.TreeViewColumn()
         cr0 = gtk.CellRendererText()
         col0.pack_start(cr0)
-        col0.add_attribute(cr0, 'markup', 0)
+        col0.add_attribute(cr0, 'text', 0)
         col1 = gtk.TreeViewColumn()
         cr1 = gtk.CellRendererText()
         col1.pack_start(cr1)
-        col1.add_attribute(cr1, 'markup', 1)
+        col1.add_attribute(cr1, 'text', 1)
         tree.append_column(col0)
         tree.append_column(col1)
         tree.set_headers_visible(False)
         topbox = gtk.HBox()
         img = gtk.Image()
         img.set_from_stock(gtk.STOCK_INFO, gtk.ICON_SIZE_BUTTON)
-        lbl = BoldLabel("Build Task Details")
+        lbl = BoldLabel("Build Task Details".strip())
         lbl.set_property('xalign', 0.0)
+        lbt = TinyLabel("Test")
         topbox.pack_start(img, False, False, 2)
         topbox.pack_start(lbl, True, True, 2)
+        topbox.pack_start(lbt, False, True, 2)
         self.body.pack_start(topbox, False, True, 4)
         self.set_has_separator(True)
         self.set_size_request(500, 400)
         cr1 = gtk.CellRendererText()
         col0.pack_start(cr0)
         col1.pack_start(cr1)
-        col0.add_attribute(cr0, 'markup', 0)
-        col1.add_attribute(cr1, 'markup', 1)
+        col0.add_attribute(cr0, 'text', 0)
+        col1.add_attribute(cr1, 'text', 1)
         tree = gtk.TreeView(model = mod)
         tree.set_headers_visible(False)
         tree.append_column(col0)
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.