pinpad: Scaled the images and removed the horizontal padding of the card info stuff

CHAT dialoges: Added an info image to every access right column. This will be used to provide help to the user.


git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@225 96b47cad-a561-4643-ad3b-153ac7d7599c
This commit is contained in:
oepen
2010-07-16 11:39:15 +00:00
parent cf57f76c2b
commit f508f0debb
6 changed files with 7 additions and 4 deletions

View File

@@ -258,6 +258,10 @@ class customCheckButton(object):
self.lbl.set_padding(20, 0)
self.lbl.modify_font(pango.FontDescription("bold"))
#an image at the left side of the label
self.img = gtk.Image()
self.img.set_from_file(image_dir + "/info.png")
#...and a checkbox on the right side of the label
self.idx = index
self.chk = gtk.CheckButton("")
@@ -266,6 +270,7 @@ class customCheckButton(object):
#Insert the label and the checkbox in the vbox and add a seperator
hbox = gtk.HBox()
hbox.pack_start(self.img, False, False)
hbox.pack_start(self.lbl, True, True)
hbox.pack_start(self.chk, False, False)
vbox.pack_start(gtk.HSeparator())

View File

@@ -65,12 +65,10 @@
<child>
<object class="GtkHBox" id="hbox1">
<property name="visible">True</property>
<property name="spacing">5</property>
<child>
<object class="GtkLabel" id="lbl_cardStatus">
<property name="visible">True</property>
<property name="xalign">0.89999997615814209</property>
<property name="ypad">5</property>
<property name="label" translatable="yes">&lt;span fgcolor="red" font="12"&gt;Ausweis&lt;/span&gt;</property>
<property name="use_markup">True</property>
</object>
@@ -82,7 +80,6 @@
<object class="GtkImage" id="img_cardStatus">
<property name="visible">True</property>
<property name="xalign">0.10000000149011612</property>
<property name="ypad">5</property>
<property name="pixbuf">error.png</property>
</object>
<packing>