Remove some right click on account menuitem as nk said

Really send a single when right click on account -> single (can't change the string as string are freezed and good string that
is in systray doesn't have '...' at the end)
Add missing funcion call
This commit is contained in:
Jean-Marie Traissard 2006-04-09 18:14:59 +00:00
parent 5143fcc0dd
commit 38b47fc6db
2 changed files with 13 additions and 160 deletions

View File

@ -16751,32 +16751,6 @@ Maybe I'll refactor later</property>
</widget>
</child>
<child>
<widget class="GtkImageMenuItem" id="edit_account_menuitem">
<property name="visible">True</property>
<property name="label" translatable="yes">_Modify Account...</property>
<property name="use_underline">True</property>
<child internal-child="image">
<widget class="GtkImage" id="image1231">
<property name="visible">True</property>
<property name="stock">gtk-preferences</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="GtkSeparatorMenuItem" id="separator7">
<property name="visible">True</property>
</widget>
</child>
<child>
<widget class="GtkImageMenuItem" id="new_message_menuitem">
<property name="visible">True</property>
@ -16816,13 +16790,7 @@ Maybe I'll refactor later</property>
</child>
</widget>
</child>
<child>
<widget class="GtkSeparatorMenuItem" id="separator_before_add">
<property name="visible">True</property>
</widget>
</child>
<child>
<widget class="GtkImageMenuItem" id="add_contact_menuitem">
<property name="visible">True</property>
@ -16842,17 +16810,17 @@ Maybe I'll refactor later</property>
</child>
</widget>
</child>
<child>
<widget class="GtkImageMenuItem" id="service_discovery_menuitem">
<widget class="GtkImageMenuItem" id="edit_account_menuitem">
<property name="visible">True</property>
<property name="label" translatable="yes">_Discover Services...</property>
<property name="label" translatable="yes">_Modify Account...</property>
<property name="use_underline">True</property>
<child internal-child="image">
<widget class="GtkImage" id="image1232">
<widget class="GtkImage" id="image1231">
<property name="visible">True</property>
<property name="stock">gtk-find</property>
<property name="stock">gtk-preferences</property>
<property name="icon_size">1</property>
<property name="xalign">0.5</property>
<property name="yalign">0.5</property>
@ -16862,99 +16830,6 @@ Maybe I'll refactor later</property>
</child>
</widget>
</child>
<child>
<widget class="GtkImageMenuItem" id="advanced_actions_menuitem">
<property name="visible">True</property>
<property name="label" translatable="yes">Ad_vanced Actions</property>
<property name="use_underline">True</property>
<child internal-child="image">
<widget class="GtkImage" id="image1228">
<property name="visible">True</property>
<property name="stock">gtk-dialog-warning</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>
<child>
<widget class="GtkMenu" id="advanced_actions_menuitem_menu">
<child>
<widget class="GtkImageMenuItem" id="xml_console_menuitem">
<property name="visible">True</property>
<property name="label" translatable="yes">_XML Console...</property>
<property name="use_underline">True</property>
<child internal-child="image">
<widget class="GtkImage" id="image1229">
<property name="visible">True</property>
<property name="stock">gtk-execute</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="GtkSeparatorMenuItem" id="separator10">
<property name="visible">True</property>
</widget>
</child>
<child>
<widget class="GtkMenuItem" id="set_motd_menuitem">
<property name="visible">True</property>
<property name="tooltip" translatable="yes">Set Message of the Day</property>
<property name="label" translatable="yes">Set MOTD</property>
<property name="use_underline">True</property>
<signal name="activate" handler="on_set_motd_menuitem_activate" last_modification_time="Sat, 06 Aug 2005 10:28:39 GMT"/>
</widget>
</child>
<child>
<widget class="GtkMenuItem" id="update_motd_menuitem">
<property name="visible">True</property>
<property name="tooltip" translatable="yes">Update Message of the Day</property>
<property name="label" translatable="yes">Update MOTD</property>
<property name="use_underline">True</property>
<signal name="activate" handler="on_update_motd_activate" last_modification_time="Sat, 06 Aug 2005 10:28:39 GMT"/>
</widget>
</child>
<child>
<widget class="GtkImageMenuItem" id="delete_motd_menuitem">
<property name="visible">True</property>
<property name="tooltip" translatable="yes">Delete Message of the Day</property>
<property name="label" translatable="yes">Delete MOTD</property>
<property name="use_underline">True</property>
<signal name="activate" handler="on_delete_motd_activate" last_modification_time="Sat, 06 Aug 2005 10:28:39 GMT"/>
<child internal-child="image">
<widget class="GtkImage" id="image1230">
<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>
</child>
</widget>
</child>
</widget>
<widget class="GtkWindow" id="xml_console_window">

View File

@ -1485,19 +1485,10 @@ class RosterWindow:
childs = account_context_menu.get_children()
status_menuitem = childs[0]
edit_account_menuitem = childs[1]
# we skip the separator childs[2]
#FIXME : new_message open a new chat. So what do we want ?
new_message_menuitem = childs[3]
join_group_chat_menuitem = childs[4]
# we skip the separator childs[5]
add_contact_menuitem = childs[6]
service_discovery_menuitem = childs[7]
# skip advanced_actions_menuitem, childs[8]
xml_console_menuitem = xml.get_widget('xml_console_menuitem')
set_motd_menuitem = xml.get_widget('set_motd_menuitem')
update_motd_menuitem = xml.get_widget('update_motd_menuitem')
delete_motd_menuitem = xml.get_widget('delete_motd_menuitem')
new_message_menuitem = childs[1]
join_group_chat_menuitem = childs[2]
add_contact_menuitem = childs[3]
edit_account_menuitem = childs[4]
sub_menu = gtk.Menu()
status_menuitem.set_submenu(sub_menu)
@ -1523,9 +1514,6 @@ class RosterWindow:
if gajim.connections[account].connected < 2:
item.set_sensitive(False)
item = gtk.SeparatorMenuItem()
sub_menu.append(item)
uf_show = helpers.get_uf_show('offline', use_mnemonic = True)
item = gtk.ImageMenuItem(uf_show)
icon = state_images['offline']
@ -1533,17 +1521,7 @@ class RosterWindow:
sub_menu.append(item)
item.connect('activate', self.change_status, account, 'offline')
xml_console_menuitem.connect('activate',
self.on_xml_console_menuitem_activate, account)
set_motd_menuitem.connect('activate', self.on_set_motd_menuitem_activate,
account)
update_motd_menuitem.connect('activate',
self.on_update_motd_menuitem_activate, account)
delete_motd_menuitem.connect('activate',
self.on_delete_motd_menuitem_activate, account)
edit_account_menuitem.connect('activate', self.on_edit_account, account)
service_discovery_menuitem.connect('activate',
self.on_service_disco_menuitem_activate, account)
add_contact_menuitem.connect('activate', self.on_add_new_contact, account)
gc_sub_menu = gtk.Menu() # gc is always a submenu
@ -1554,8 +1532,7 @@ class RosterWindow:
# make some items insensitive if account is offline
if gajim.connections[account].connected < 2:
for widget in [set_motd_menuitem, update_motd_menuitem,
delete_motd_menuitem, service_discovery_menuitem, add_contact_menuitem,
for widget in [add_contact_menuitem,
join_group_chat_menuitem, new_message_menuitem]:
widget.set_sensitive(False)
@ -1987,6 +1964,7 @@ _('If "%s" accepts this request you will know his or her status.') % jid)
# after user chooses "Change status message" menuitem
# we can return to this show
self.previous_status_combobox_active = active
connected_accounts = gajim.get_number_of_connected_accounts()
if status == 'invisible':
bug_user = False
for acct in accounts:
@ -2251,7 +2229,7 @@ _('If "%s" accepts this request you will know his or her status.') % jid)
pass
def on_new_message_menuitem_activate(self, widget, account):
dialogs.NewMessageDialog(account)
dialogs.SingleMessageWindow(account, action = 'send')
def on_contents_menuitem_activate(self, widget):
helpers.launch_browser_mailer('url', 'http://trac.gajim.org/wiki')