Changeset 9736

Show
Ignore:
Timestamp:
06/02/08 01:07:34 (6 months ago)
Author:
jim++
Message:

Removing tic tac toe game. Maybe one day a full version in a plugin ? :)

Location:
trunk
Files:
1 removed
3 modified

Legend:

Unmodified
Added
Removed
  • trunk/data/glade/roster_contact_context_menu.glade

    r9627 r9736  
    9090          </widget> 
    9191        </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> 
    9992      </widget> 
    10093    </child> 
  • trunk/src/common/connection_handlers.py

    r9715 r9736  
    5151 
    5252from session import ChatControlSession 
    53 import tictactoe 
    5453 
    5554STATUS_LIST = ['offline', 'connecting', 'online', 'chat', 'away', 'xa', 'dnd', 
     
    17241723                        msgtxt = msgtxt.replace('\x20\x20\x09' \ 
    17251724                                '\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.TicTacToeSession 
    1734  
    1735                         # this assumes that the invitation came with a thread_id we haven't 
    1736                         # seen 
    1737                         session = self.make_new_session(frm, thread_id, cls=cls) 
    1738  
    1739                         session.invited(msg) 
    1740  
    1741                         return 
    17421725                elif mtype != 'groupchat': 
    17431726                        session = self.get_or_create_session(frm, thread_id) 
  • trunk/src/roster_window.py

    r9735 r9736  
    32673267        def on_profile_avatar_menuitem_activate(self, widget, account): 
    32683268                gajim.interface.edit_own_details(account) 
    3269  
    3270         def play_tictactoe(self, widget, contact, account, resource=None): 
    3271                 jid = contact.jid 
    3272  
    3273                 if resource is not None: 
    3274                         jid = jid + u'/' + resource 
    3275  
    3276                 import tictactoe 
    3277  
    3278                 sess = gajim.connections[account].make_new_session(jid, 
    3279                         cls=tictactoe.TicTacToeSession) 
    3280                 sess.begin() 
    32813269 
    32823270        def on_execute_command(self, widget, contact, account, resource=None): 
     
    50004988                        'execute_command_menuitem') 
    50014989 
    5002                 tictactoe_menuitem = xml.get_widget('tictactoe_menuitem') 
    5003                 tictactoe_menuitem.connect('activate', self.play_tictactoe, contact, 
    5004                         account, contact.resource) 
    5005  
    50064990                # send custom status icon 
    50074991                blocked = False