added context menu for FT window
This commit is contained in:
parent
c61c33765f
commit
e418a3e02d
|
@ -752,7 +752,10 @@ class FileTransfersTooltip(BaseTooltip):
|
|||
if hasattr(receiver, 'name'):
|
||||
receiver = receiver.name
|
||||
receiver = receiver.split('/')[0]
|
||||
name = gajim.get_first_contact_instance_from_jid(
|
||||
if receiver.find('@') == -1:
|
||||
name = receiver
|
||||
else:
|
||||
name = gajim.get_first_contact_instance_from_jid(
|
||||
file_props['tt_account'], receiver).name
|
||||
text += gtkgui_helpers.escape_for_pango_markup(name)
|
||||
text += '\n<b>' + _('Size: ') + '</b>'
|
||||
|
@ -1774,6 +1777,7 @@ _('Connection with peer cannot be established.')).get_response()
|
|||
if typ + sid == self.model[iter][4]:
|
||||
return iter
|
||||
iter = self.model.iter_next(iter)
|
||||
|
||||
def get_sid(self):
|
||||
rng = range(65, 90)
|
||||
rng.extend(range(48, 57))
|
||||
|
@ -1794,6 +1798,7 @@ _('Connection with peer cannot be established.')).get_response()
|
|||
file_props['started'] = False
|
||||
file_props['sender'] = account
|
||||
file_props['receiver'] = contact
|
||||
file_props['tt_account'] = account
|
||||
return file_props
|
||||
|
||||
def add_transfer(self, account, contact, file_props):
|
||||
|
|
|
@ -17657,4 +17657,84 @@ Maybe I'll refactor later</property>
|
|||
</child>
|
||||
</widget>
|
||||
|
||||
|
||||
<widget class="GtkMenu" id="file_transfers_menu">
|
||||
|
||||
<child>
|
||||
<widget class="GtkImageMenuItem" id="remove_menuitem">
|
||||
<property name="label">gtk-remove</property>
|
||||
<property name="use_stock">True</property>
|
||||
</widget>
|
||||
</child>
|
||||
|
||||
<child>
|
||||
<widget class="GtkImageMenuItem" id="pause_menuitem">
|
||||
<property name="label" translatable="yes">_Pause</property>
|
||||
<property name="use_underline">True</property>
|
||||
|
||||
<child internal-child="image">
|
||||
<widget class="GtkImage" id="image1116">
|
||||
<property name="stock">gtk-media-pause</property>
|
||||
<property name="icon_size">1</property>
|
||||
<property name="xalign">0.5</property>
|
||||
<property name="yalign">0.5</property>
|
||||
<property name="xpad">0</property>
|
||||
<property name="ypad">0</property>
|
||||
</widget>
|
||||
</child>
|
||||
</widget>
|
||||
</child>
|
||||
|
||||
<child>
|
||||
<widget class="GtkImageMenuItem" id="stop_menuitem">
|
||||
<property name="label">gtk-cancel</property>
|
||||
<property name="use_stock">True</property>
|
||||
|
||||
</widget>
|
||||
</child>
|
||||
|
||||
<child>
|
||||
<widget class="GtkSeparatorMenuItem" id="separator11">
|
||||
<property name="visible">True</property>
|
||||
</widget>
|
||||
</child>
|
||||
|
||||
<child>
|
||||
<widget class="GtkImageMenuItem" id="open_folder_menuitem">
|
||||
<property name="label" translatable="yes">_Open containing folder</property>
|
||||
<property name="use_underline">True</property>
|
||||
|
||||
<child internal-child="image">
|
||||
<widget class="GtkImage" id="image1117">
|
||||
<property name="stock">gtk-directory</property>
|
||||
<property name="icon_size">1</property>
|
||||
<property name="xalign">0.5</property>
|
||||
<property name="yalign">0.5</property>
|
||||
<property name="xpad">0</property>
|
||||
<property name="ypad">0</property>
|
||||
</widget>
|
||||
</child>
|
||||
</widget>
|
||||
</child>
|
||||
|
||||
<child>
|
||||
<widget class="GtkImageMenuItem" id="clean_up_menuitem">
|
||||
<property name="tooltip" translatable="yes">Removes completed, canceled and failed file transfers from the list</property>
|
||||
<property name="label" translatable="yes">Clean up</property>
|
||||
<property name="use_underline">True</property>
|
||||
|
||||
<child internal-child="image">
|
||||
<widget class="GtkImage" id="image1118">
|
||||
<property name="visible">True</property>
|
||||
<property name="stock">gtk-clear</property>
|
||||
<property name="icon_size">1</property>
|
||||
<property name="xalign">0.5</property>
|
||||
<property name="yalign">0.5</property>
|
||||
<property name="xpad">0</property>
|
||||
<property name="ypad">0</property>
|
||||
</widget>
|
||||
</child>
|
||||
</widget>
|
||||
</child>
|
||||
</widget>
|
||||
</glade-interface>
|
||||
|
|
Loading…
Reference in New Issue