show the widget (linkbutton or label) before adding it
This commit is contained in:
parent
d691ec38dd
commit
59d5f23182
|
@ -13,6 +13,8 @@
|
||||||
## GNU General Public License for more details.
|
## GNU General Public License for more details.
|
||||||
##
|
##
|
||||||
|
|
||||||
|
# THIS FILE IS FOR **OUR** PROFILE (when we edit our INFO)
|
||||||
|
|
||||||
import gtk
|
import gtk
|
||||||
import gobject
|
import gobject
|
||||||
import base64
|
import base64
|
||||||
|
|
|
@ -13,6 +13,8 @@
|
||||||
## GNU General Public License for more details.
|
## GNU General Public License for more details.
|
||||||
##
|
##
|
||||||
|
|
||||||
|
# THIS FILE IS FOR **OTHERS'** PROFILE (when we VIEW their INFO)
|
||||||
|
|
||||||
import gtk
|
import gtk
|
||||||
import gobject
|
import gobject
|
||||||
import base64
|
import base64
|
||||||
|
@ -129,6 +131,7 @@ class VcardWindow:
|
||||||
widget = gtk.LinkButton(value, value)
|
widget = gtk.LinkButton(value, value)
|
||||||
else:
|
else:
|
||||||
widget = gtk.Label(value)
|
widget = gtk.Label(value)
|
||||||
|
widget.show()
|
||||||
table = self.xml.get_widget('personal_info_table')
|
table = self.xml.get_widget('personal_info_table')
|
||||||
table.attach(widget, 1, 4, 3, 4, yoptions = 0)
|
table.attach(widget, 1, 4, 3, 4, yoptions = 0)
|
||||||
else:
|
else:
|
||||||
|
@ -149,7 +152,7 @@ class VcardWindow:
|
||||||
pixbuf = gtkgui_helpers.get_scaled_pixbuf(pixbuf, 'vcard')
|
pixbuf = gtkgui_helpers.get_scaled_pixbuf(pixbuf, 'vcard')
|
||||||
image.set_from_pixbuf(pixbuf)
|
image.set_from_pixbuf(pixbuf)
|
||||||
continue
|
continue
|
||||||
if i == 'ADR' or i == 'TEL' or i == 'EMAIL':
|
if i in ('ADR', 'TEL', 'EMAIL'):
|
||||||
for entry in vcard[i]:
|
for entry in vcard[i]:
|
||||||
add_on = '_HOME'
|
add_on = '_HOME'
|
||||||
if 'WORK' in entry:
|
if 'WORK' in entry:
|
||||||
|
|
Loading…
Reference in New Issue