import gobject
from gettext import gettext as _
from meabook.constants import *
+from meabook.caller import PhoneCaller
from meabook.ui.ui import MeabookUI
def on_button_click(widget):
handler(widget.get_title(), widget.get_data('iname'))
+ #caller = PhoneCaller()
+ #caller.call(widget.get_value())
for child in box.get_children():
box.remove(child)
if fname == 'image':
continue
button = self.renderer.render_button(_(fname) , fvalue, fname)
+ if fname in (FIELD_PHONE_HOME, FIELD_PHONE_GENERAL, \
+ FIELD_PHONE_INTERNAL, FIELD_PHONE_MOBILE):
+ button.connect('clicked', self.call_cb)
info_box.pack_start(button, expand=False)
# pack widgets
image_box.pack_start(image, expand=False)
self.search_entry.set_text('')
set_box_content(self.box, None)
+ def call_cb(self, widget):
+ """Nake a phone call."""
+
+ self.controller.call(widget.get_value())
+
class AboutDialog(hildon.Dialog):