Changeset 9736
- Timestamp:
- 06/02/08 01:07:34 (6 months ago)
- Location:
- trunk
- Files:
-
- 1 removed
- 3 modified
-
data/glade/roster_contact_context_menu.glade (modified) (1 diff)
-
src/common/connection_handlers.py (modified) (2 diffs)
-
src/roster_window.py (modified) (2 diffs)
-
src/tictactoe.py (deleted)
Legend:
- Unmodified
- Added
- Removed
-
trunk/data/glade/roster_contact_context_menu.glade
r9627 r9736 90 90 </widget> 91 91 </child> 92 </widget>93 </child>94 <child>95 <widget class="GtkImageMenuItem" id="tictactoe_menuitem">96 <property name="visible">True</property>97 <property name="label" translatable="yes">Play Tic Tac Toe</property>98 <property name="use_underline">True</property>99 92 </widget> 100 93 </child> -
trunk/src/common/connection_handlers.py
r9715 r9736 51 51 52 52 from session import ChatControlSession 53 import tictactoe54 53 55 54 STATUS_LIST = ['offline', 'connecting', 'online', 'chat', 'away', 'xa', 'dnd', … … 1724 1723 msgtxt = msgtxt.replace('\x20\x20\x09' \ 1725 1724 '\x09\x20\x20\x09\x20', '') 1726 1727 game_invite = msg.getTag('invite', namespace='http://jabber.org/protocol/games')1728 if game_invite:1729 game = game_invite.getTag('game')1730 1731 if game.getAttr('var') == \1732 'http://jabber.org/protocol/games/tictactoe':1733 cls = tictactoe.TicTacToeSession1734 1735 # this assumes that the invitation came with a thread_id we haven't1736 # seen1737 session = self.make_new_session(frm, thread_id, cls=cls)1738 1739 session.invited(msg)1740 1741 return1742 1725 elif mtype != 'groupchat': 1743 1726 session = self.get_or_create_session(frm, thread_id) -
trunk/src/roster_window.py
r9735 r9736 3267 3267 def on_profile_avatar_menuitem_activate(self, widget, account): 3268 3268 gajim.interface.edit_own_details(account) 3269 3270 def play_tictactoe(self, widget, contact, account, resource=None):3271 jid = contact.jid3272 3273 if resource is not None:3274 jid = jid + u'/' + resource3275 3276 import tictactoe3277 3278 sess = gajim.connections[account].make_new_session(jid,3279 cls=tictactoe.TicTacToeSession)3280 sess.begin()3281 3269 3282 3270 def on_execute_command(self, widget, contact, account, resource=None): … … 5000 4988 'execute_command_menuitem') 5001 4989 5002 tictactoe_menuitem = xml.get_widget('tictactoe_menuitem')5003 tictactoe_menuitem.connect('activate', self.play_tictactoe, contact,5004 account, contact.resource)5005 5006 4990 # send custom status icon 5007 4991 blocked = False
