コード例 #1
0
 def show_send_error(self, file_props):
     """
     Show error dialog to the sender saying that transfer has been canceled
     """
     dialogs.InformationDialog(_('File transfer cancelled'),
             _('Connection with peer cannot be established.'))
     self.tree.get_selection().unselect_all()
コード例 #2
0
 def vcard_not_published(self):
     if self.message_id:
         self.statusbar.remove(self.context_id, self.message_id)
     self.message_id = self.statusbar.push(self.context_id,
                                           _('Information NOT published'))
     self.remove_statusbar_timeout_id = gobject.timeout_add_seconds(
         3, self.remove_statusbar, self.message_id)
     if self.update_progressbar_timeout_id is not None:
         gobject.source_remove(self.update_progressbar_timeout_id)
         self.progressbar.set_fraction(0)
         self.update_progressbar_timeout_id = None
     dialogs.InformationDialog(
         _('vCard publication failed'),
         _('There was an error while publishing your personal information, '
           'try again later.'))
コード例 #3
0
 def _nec_vcard_not_published(self, obj):
     if obj.conn.name != self.account:
         return
     if self.message_id:
         self.statusbar.remove(self.context_id, self.message_id)
     self.message_id = self.statusbar.push(self.context_id,
         _('Information NOT published'))
     self.remove_statusbar_timeout_id = GLib.timeout_add_seconds(3,
         self.remove_statusbar, self.message_id)
     if self.update_progressbar_timeout_id is not None:
         GLib.source_remove(self.update_progressbar_timeout_id)
         self.progressbar.set_fraction(0)
         self.update_progressbar_timeout_id = None
     dialogs.InformationDialog(_('vCard publication failed'),
         _('There was an error while publishing your personal information, '
         'try again later.'), transient_for=self.window)
コード例 #4
0
ファイル: filetransfers_window.py プロジェクト: tdruiva/gajim
	def show_request_error(self, file_props):
		''' show error dialog to the recipient saying that transfer 
		has been canceled'''
		dialogs.InformationDialog(_('File transfer cancelled'), _('Connection with peer cannot be established.'))
		self.tree.get_selection().unselect_all()