Commits

Erik Grinaker committed 171c8c0

left-align labels in link-buttons

  • Participants
  • Parent commits 6ad3b90

Comments (0)

Files changed (4)

 
 ---------------[ xxxx-xx-xx : 0.4.1 ]---------------
 
+2005-03-18  Erik Grinaker <erikg@codepoet.no>
+
+	* left-align labels in link-buttons (for URLs etc)
+
 2005-03-17  Erik Grinaker <erikg@codepoet.no>
 
 	* fix potential crash on quit with some pygtk versions
 - display non-ascii characters in filenames correctly
 - use fallback folder icons when not found in theme
 - update icons on theme change
+- left-align labels in link-buttons (for URLs etc)
 
 Code changes:
 - cleaned up the build-system and source file layout
-e.4.x:
+0.4.x:
 - string cleanups
 - add "password strength" dialog
 - add import/export of PasswordSafe files
   - use gtk.Window.get_focus()
 - bugfix: gnome.libgnome_module_info_get() removed in new gnome-python
 - examine drag/drop undo/redo crashes
+- bugfix: hide any open dialogs when locking file (for autolock)
+- bugfix: workaround for amd64 gconf callback id overflow
 
 
 0.5.x:

File src/lib/ui.py

 
 import bonobo.ui, gobject, gtk, gnome.ui, os, pango, pwd, time, xml.dom.minidom
 from xml.parsers.expat import ExpatError
-from gnome.ui import HRef as LinkButton
 
 
 STOCK_ADD			= "revelation-add"
 				self.set_active(i)
 
 
+class LinkButton(gnome.ui.HRef):
+	"A link button"
+
+	def __init__(self, url, label):
+		gnome.ui.HRef.__init__(self, url, label)
+		self.set_alignment(0, 0.5)
+
+
 class RadioButton(gtk.RadioButton):
 	"A radio button"