Пример #1
0
 def update_information(self):
     '''update the information of the contact'''
     if self.contact:
         if self.contact.display_name == self.contact.nick:
             self.nick.set_markup(
                 Renderers.msnplus_to_list(
                     gobject.markup_escape_text(self.contact.display_name)))
         else:
             self.nick.set_markup(
                 Renderers.msnplus_to_list(
                     gobject.markup_escape_text(self.contact.nick + ' (' +
                                                self.contact.display_name +
                                                ')')))
         self.mail.set_markup(self.contact.account)
         self.message.set_markup(
             Renderers.msnplus_to_list(
                 gobject.markup_escape_text(self.contact.message)))
         self.status.set_from_file(
             gui.theme.image_theme.status_icons[self.contact.status])
         if (self.contact.picture):
             self.image.set_from_file(self.contact.picture)
         else:
             self.image.set_from_file(gui.theme.image_theme.user)
         if (self.contact.blocked):
             self.blocked.set_markup(_('Yes'))
         else:
             self.blocked.set_markup(_('No'))
Пример #2
0
 def _set_text(self, value):
     '''set the value of text'''
     self._text = value
     self.label.set_markup(
         Renderers.msnplus_to_list(
             gobject.markup_escape_text(self._text or self.empty_text)))
     self.entry.set_text(self._text)
Пример #3
0
 def update_information(self):
     '''update the information of the contact'''
     if self.contact:
         self.nick.set_markup(Renderers.msnplus_to_list(gobject.markup_escape_text(self.contact.display_name)))
         self.mail.set_markup(self.contact.account)
         self.message.set_markup(Renderers.msnplus_to_list(gobject.markup_escape_text(self.contact.message)))
         self.status.set_from_file(
             gui.theme.status_icons[self.contact.status])
         if (self.contact.picture):
             self.image.set_from_file(self.contact.picture)
         else:
             self.image.set_from_file(gui.theme.user)
         if (self.contact.blocked):
             self.blocked.set_markup(_('Yes'))
         else:
             self.blocked.set_markup(_('No'))
Пример #4
0
 def _set_text(self, value):
     '''set the value of text'''
     self._text = value
     self.label.set_markup(Renderers.msnplus_to_list(gobject.markup_escape_text(self._text)))
     self.entry.set_text(self._text)
Пример #5
0
 def set_text(self, text):
     '''set the text of the label'''
     self.label.set_markup(
         Renderers.msnplus_to_list(gobject.markup_escape_text(text)))
     if self.mozilla_like:
         self.set_size_request(235, 18)  # Empiric measures.
Пример #6
0
 def set_text(self, text):
     '''set the text of the label'''
     self.label.set_markup(Renderers.msnplus_to_list(gobject.markup_escape_text(text)))
     if self.mozilla_like:
         self.set_size_request(235, 18) # Empiric measures.
Пример #7
0
 def _set_information(self, lines):
     '''set the text on the information, lines is a tuple of size 3 with 3
     strings that will be replaced on the template'''
     self._information.set_markup(Renderers.msnplus_to_list(Header.INFO_TPL % lines))
Пример #8
0
 def _set_information(self, lines):
     '''set the text on the information, lines is a tuple of size 3 with 3
     strings that will be replaced on the template'''
     self._information.set_markup(Renderers.msnplus_to_list(Header.INFO_TPL % lines))
Пример #9
0
 def set_text(self, text):
     '''set the text of the label'''
     self.label.set_markup(Renderers.msnplus_to_list(gobject.markup_escape_text(text)))
     self.set_size_request(235, 18) # Firefox-like, at least here.