
,Oc           @   s  d  d l  Z  d  d l m Z d  d l m Z d d l m Z d d l m Z e  j	 dt k rm e
 Z d	   Z n e Z e Z e d
 j Z g  Z e j d k r d  d l Z d Z e j e e  n  d e j f d     YZ e e  Z e j d  d e j e f d     YZ e e  Z e j d  d e j f d     YZ e e  Z e j d  d e j f d     YZ e e  Z e j d  d e j f d     YZ e e  Z e j d  d e j f d     YZ e e  Z e j d  d e j f d     YZ e e  Z e j d  d e j e f d     YZ e e  Z e j d  d e j  f d     YZ  e e   Z  e j d  d e j! f d      YZ! e e!  Z! e j d  d! e j" f d"     YZ" e e"  Z" e j d!  d# e j# f d$     YZ# e e#  Z# e j d#  d% e j$ f d&     YZ$ e e$  Z$ e j d%  d' e j% e f d(     YZ% e e%  Z% e j d'  d) e j& e% f d*     YZ& e e&  Z& e j d)  d+ e j' f d,     YZ' e e'  Z' e j d+  d- e j( f d.     YZ( e e(  Z( e j d-  d/ e j) f d0     YZ) e e)  Z) e j d/  d1 e j* f d2     YZ* e e*  Z* e j d1  d3 e j+ f d4     YZ+ e e+  Z+ e j d3  d5 e j, f d6     YZ, e e,  Z, e j d5  d7 e j- f d8     YZ- e e-  Z- e j d7  d9 e j. f d:     YZ. e e.  Z. e j d9  d; e j/ f d<     YZ/ e e/  Z/ e j d;  d= e j0 f d>     YZ0 e e0  Z0 e j d=  d? e j1 f d@     YZ1 e e1  Z1 e j d?  dA e j2 f dB     YZ2 e e2  Z2 e j dA  dC e j3 f dD     YZ3 e e3  Z3 e j dC  dE e j4 e2 e3 f dF     YZ4 e e4  Z4 e j dE  dG e5 f dH     YZ6 e j dG  dI e5 f dJ     YZ7 e j dI  dK e j8 f dL     YZ8 e e8  Z8 e j dK  dM e j9 e2 e3 f dN     YZ9 e e9  Z9 e j dM  dO e j: e f dP     YZ: e e:  Z: e j dO  dQ e j; f dR     YZ; e e;  Z; e j dQ  dS e j< f dT     YZ< e e<  Z< e j dS  dU e j= e f dV     YZ= e e=  Z= e j dU  dW e j> f dX     YZ> e e>  Z> e j dW  dY e j? f dZ     YZ? e e?  Z? e j dY  d[ e j@ f d\     YZ@ e e@  Z@ e j d[  d] e jA e f d^     YZA e eA  ZA e j d]  d_ e jB f d`     YZB e eB  ZB e j d_  da e jC f db     YZC e eC  ZC e j da  dc e jD f dd     YZD e eD  ZD e j dc  de e jE f df     YZE e eE  ZE e j de  dg e jF f dh     YZF e eF  ZF e j dg  di e jG f dj     YZG e eG  ZG e j di  dk e jH f dl     YZH e eH  ZH e j dk  dm e jI f dn     YZI e eI  ZI e j dm  e j d k r
do e jJ f dp     YZJ e eJ  ZJ e j do  n  e jK ZL e e jK  dq    ZK e jM ZN e e jM  dr    ZM e jO e  jP  \ ZQ ZP eR eP  e  _P eQ seS ds   n  d S(u   iN(   t   _gobject(   t   GObjecti   (   t   override(   t   modulesi   i    c         C   s   t  |  d  S(   Nt   __call__(   t   hasattr(   t   c(    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyt   <lambda>   s    t   Gtks   2.0sB  You have imported the Gtk 2.0 module.  Because Gtk 2.0 was not designed for use with introspection some of the interfaces and API will fail.  As such this is not supported by the pygobject development team and we encourage you to port your app to Gtk 3 or greater. PyGTK is the recomended python module to use with Gtk 2.0t   Widgetc           B   s   e  Z d    Z d d  Z RS(   c         C   s;   t  t |   j | | |  \ } } } | r7 | | f Sd  S(   N(   t   superR	   t   translate_coordinates(   t   selft   dest_widgett   src_xt   src_yt   successt   dest_xt   dest_y(    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyR   4   s    c         C   s   t  t |   j | | |  S(   N(   R
   R	   t   render_icon(   R   t   stock_idt   sizet   detail(    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyR   :   s    N(   t   __name__t
   __module__R   t   NoneR   (    (    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyR	   2   s   	t	   Containerc           B   s;   e  Z d    Z d   Z d   Z d   Z e Z d   Z RS(   c         C   s   t  |  j    S(   N(   t   lent   get_children(   R   (    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyt   __len__B   s    c         C   s   | |  j    k S(   N(   R   (   R   t   child(    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyt   __contains__E   s    c         C   s   t  |  j    S(   N(   t   iterR   (   R   (    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyt   __iter__H   s    c         C   s   t  S(   N(   t   True(   R   (    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyt   __bool__K   s    c         C   s)   t  t |   j   \ } } | r% | Sd  S(   N(   R
   R   t   get_focus_chain(   R   R   t   widgets(    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyR$   Q   s    (   R   R   R   R   R!   R#   t   __nonzero__R$   (    (    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyR   @   s   				t   Editablec           B   s   e  Z d    Z d   Z RS(   c         C   s"   t  t |   j | d |  } | S(   Ni(   R
   R'   t   insert_text(   R   t   textt   positiont   pos(    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyR(   [   s    c         C   s9   t  t |   j   \ } } } | r. | | f St   Sd  S(   N(   R
   R'   t   get_selection_boundst   tuple(   R   R   t	   start_post   end_pos(    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyR,   `   s    
(   R   R   R(   R,   (    (    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyR'   Y   s   	t   Actionc           B   s   e  Z d    Z RS(   c         K   s/   t  j j |  d | d | d | d | | d  S(   Nt   namet   labelt   tooltipR   (   R   R0   t   __init__(   R   R1   R2   R3   R   t   kwds(    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyR4   k   s    (   R   R   R4   (    (    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyR0   j   s   t   RadioActionc           B   s   e  Z d    Z RS(   c         K   s5   t  j j |  d | d | d | d | d | | d  S(   NR1   R2   R3   R   t   value(   R   R6   R4   (   R   R1   R2   R3   R   R7   R5   (    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyR4   r   s    (   R   R   R4   (    (    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyR6   q   s   t   ActionGroupc           B   s;   e  Z d    Z d d  Z d d  Z d d d d  Z RS(   c         K   s    t  t |   j d | |  d  S(   NR1   (   R
   R8   R4   (   R   R1   R5   (    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyR4   y   s    c            sn   y t  |  Wn t k
 r- t d   n Xd d d d d    f d  } x | D] } | |   qV Wd S(   s  
        The add_actions() method is a convenience method that creates a number
        of gtk.Action  objects based on the information in the list of action
        entry tuples contained in entries and adds them to the action group.
        The entry tuples can vary in size from one to six items with the
        following information:

            * The name of the action. Must be specified.
            * The stock id for the action. Optional with a default value of None
              if a label is specified.
            * The label for the action. This field should typically be marked
              for translation, see the set_translation_domain() method. Optional
              with a default value of None if a stock id is specified.
            * The accelerator for the action, in the format understood by the
              gtk.accelerator_parse() function. Optional with a default value of
              None.
            * The tooltip for the action. This field should typically be marked
              for translation, see the set_translation_domain() method. Optional
              with a default value of None.
            * The callback function invoked when the action is activated.
              Optional with a default value of None.

        The "activate" signals of the actions are connected to the callbacks and
        their accel paths are set to <Actions>/group-name/action-name.
        s   entries must be iterablec            sj   t  |  | | |  } | d  k	 rV  d  k r@ | j d |  qV | j d |   n    j | |  d  S(   Nt   activate(   R0   R   t   connectt   add_action_with_accel(   R1   R   R2   t   acceleratorR3   t   callbackt   action(   R   t	   user_data(    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyt   _process_action   s    N(   R    t	   TypeErrorR   (   R   t   entriesR?   R@   t   e(    (   R   R?   s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyt   add_actions|   s    !
c            sq   y t  |  Wn t k
 r- t d   n Xd d d d d t    f d  } x | D] } | |   qY Wd S(   s"  
        The add_toggle_actions() method is a convenience method that creates a
        number of gtk.ToggleAction objects based on the information in the list
        of action entry tuples contained in entries and adds them to the action
        group. The toggle action entry tuples can vary in size from one to seven
        items with the following information:

            * The name of the action. Must be specified.
            * The stock id for the action. Optional with a default value of None
              if a label is specified.
            * The label for the action. This field should typically be marked
              for translation, see the set_translation_domain() method. Optional
              with a default value of None if a stock id is specified.
            * The accelerator for the action, in the format understood by the
              gtk.accelerator_parse() function. Optional with a default value of
              None.
            * The tooltip for the action. This field should typically be marked
              for translation, see the set_translation_domain() method. Optional
              with a default value of None.
            * The callback function invoked when the action is activated.
              Optional with a default value of None.
            * A flag indicating whether the toggle action is active. Optional
              with a default value of False.

        The "activate" signals of the actions are connected to the callbacks and
        their accel paths are set to <Actions>/group-name/action-name.
        s   entries must be iterablec            sz   t  j |  | | |  } | j |  | d  k	 rf  d  k rP | j d |  qf | j d |   n    j | |  d  S(   NR9   (   R   t   ToggleActiont
   set_activeR   R:   R;   (   R1   R   R2   R<   R3   R=   t	   is_activeR>   (   R   R?   (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyR@      s    N(   R    RA   R   t   False(   R   RB   R?   R@   RC   (    (   R   R?   s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyt   add_toggle_actions   s    $c   	         s   y t  |  Wn t k
 r- t d   n Xd } d d d d d    f d  } x2 | D]* } | | |  } | d k r\ | } q\ q\ W| d k	 r | d k	 r | d k r | j d |  q | j d | |  n  d S(   s5  
        The add_radio_actions() method is a convenience method that creates a
        number of gtk.RadioAction objects based on the information in the list
        of action entry tuples contained in entries and adds them to the action
        group. The entry tuples can vary in size from one to six items with the
        following information:

            * The name of the action. Must be specified.
            * The stock id for the action. Optional with a default value of None
              if a label is specified.
            * The label for the action. This field should typically be marked
              for translation, see the set_translation_domain() method. Optional
              with a default value of None if a stock id is specified.
            * The accelerator for the action, in the format understood by the
              gtk.accelerator_parse() function. Optional with a default value of
              None.
            * The tooltip for the action. This field should typically be marked
              for translation, see the set_translation_domain() method. Optional
              with a default value of None.
            * The value to set on the radio action. Optional with a default
              value of 0. Should be specified in applications.

        The value parameter specifies the radio action that should be set
        active. The "changed" signal of the first radio action is connected to
        the on_change callback (if specified and not None) and the accel paths
        of the actions are set to <Actions>/group-name/action-name.
        s   entries must be iterablei    c            sg   t  | | | | |  } t | d  r7 | j |   n   | k rS | j t  n    j | |  | S(   Nt
   join_group(   R6   R   RJ   RF   R"   R;   (   t   group_sourceR1   R   R2   R<   R3   t   entry_valueR>   (   R   R7   (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyR@      s    t   changedN(   R    RA   R   R:   (	   R   RB   R7   t	   on_changeR?   t   first_actionR@   RC   R>   (    (   R   R7   s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyt   add_radio_actions   s    !N(   R   R   R4   R   RD   RI   RP   (    (    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyR8   x   s   	-2t	   UIManagerc           B   s   e  Z d    Z d d  Z RS(   c         C   s@   t  | t  s t d   n  t |  } t j j |  | |  S(   Ns   buffer must be a string(   t
   isinstancet   _basestringRA   R   R   RQ   t   add_ui_from_string(   R   t   buffert   length(    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyRT     s    ic         C   s   t  j j |  | |  S(   N(   R   RQ   t   insert_action_group(   R   RU   RV   (    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyRW   '  s    (   R   R   RT   RW   (    (    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyRQ     s   	t   ComboBoxc           B   s   e  Z d    Z RS(   c         C   s)   t  t |   j   \ } } | r% | Sd  S(   N(   R
   RX   t   get_active_iter(   R   R   t   aiter(    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyRY   /  s    (   R   R   RY   (    (    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyRX   -  s   t   Boxc           B   s   e  Z e d  d  Z RS(   i    c         K   s4   t  t |   j |   |  j |  |  j |  d  S(   N(   R
   R[   R4   t   set_homogeneoust   set_spacing(   R   t   homogeneoust   spacingR5   (    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyR4   9  s    (   R   R   RH   R4   (    (    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyR[   8  s   t	   SizeGroupc           B   s   e  Z e j j d   Z RS(   c         C   s   t  t |   j d |  d  S(   Nt   mode(   R
   R`   R4   (   R   Ra   (    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyR4   B  s    (   R   R   R   t   SizeGroupModet   VERTICALR4   (    (    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyR`   A  s   t   MenuItemc           B   s   e  Z d d   Z RS(   c         K   s    t  t |   j d | |  d  S(   NR2   (   R
   Rd   R4   (   R   R2   R5   (    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyR4   J  s    N(   R   R   R   R4   (    (    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyRd   I  s   t   Builderc           B   s#   e  Z d    Z d   Z d   Z RS(   c         C   s   d   } |  j  | |  d  S(   Nc   	      S   s   d  } t | t  r* | j | d   } n t | | d   } | d  k r[ t d |   n  t |  sz t d |   n  | t j	 j
 @} | d  k	 r | r | j | | |  q | j | | |  n) | r | j | |  n | j | |  d  S(   Ns   Handler %s not founds&   Handler %s is not a method or function(   R   RR   t   dictt   gett   getattrt   AttributeErrort	   _callableRA   R   t   ConnectFlagst   AFTERt   connect_object_aftert   connect_objectt   connect_afterR:   (	   t   buildert   gobjt   signal_namet   handler_namet   connect_objt   flagst
   obj_or_mapt   handlert   after(    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyt   _full_callbackT  s     (   t   connect_signals_full(   R   Rv   Ry   (    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyt   connect_signalsS  s    	c         C   s@   t  | t  s t d   n  t |  } t j j |  | |  S(   Ns   buffer must be a string(   RR   RS   RA   R   R   Re   t   add_from_string(   R   RU   RV   (    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyR|   o  s    c         C   sC   t  | t  s t d   n  t |  } t j j |  | | |  S(   Ns   buffer must be a string(   RR   RS   RA   R   R   Re   t   add_objects_from_string(   R   RU   t
   object_idsRV   (    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyR}   w  s    (   R   R   R{   R|   R}   (    (    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyRe   Q  s   		t   Windowc           B   s   e  Z e j j d   Z RS(   c         K   s   t  j j |  d | | d  S(   Nt   type(   R   R   R4   (   R   R   R5   (    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyR4     s    (   R   R   R   t
   WindowTypet   TOPLEVELR4   (    (    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyR     s   t   Dialogc           B   sG   e  Z d d d  d d d  Z e d    Z e d    Z d   Z RS(   i    c         K   s  | d  k	 r | | d <n  t j j |  |  | rB |  j |  n  | rX |  j |  n  | t j j @rx |  j t	  n  | t j j
 @r |  j t	  n  t t j d  r | t j j @r |  j t  d d  l } | j d t  n  | d  k	 r|  j |   n  d  S(   Nt   buttonst   NO_SEPARATORis?   Gtk.DialogFlags.NO_SEPARATOR has been depricated since Gtk+-3.0(   R   R   R   R4   t	   set_titlet   set_transient_fort   DialogFlagst   MODALt	   set_modalR"   t   DESTROY_WITH_PARENTt   set_destroy_with_parentR   R   t   set_has_separatorRH   t   warningst   warnt   DeprecationWarningt   add_buttons(   R   t   titlet   parentRu   R   t   _buttons_propertyR5   R   (    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyR4     s"    "c         C   s
   |  j    S(   N(   t   get_action_area(   t   dialog(    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyR     s    c         C   s
   |  j    S(   N(   t   get_content_area(   R   (    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyR     s    c         G   s^   d   } y1 x* | |  D] \ } } |  j  | |  q WWn t k
 rY t d   n Xd S(   s  
        The add_buttons() method adds several buttons to the Gtk.Dialog using
        the button data passed as arguments to the method. This method is the
        same as calling the Gtk.Dialog.add_button() repeatedly. The button data
        pairs - button text (or stock ID) and a response ID integer are passed
        individually. For example:

        >>> dialog.add_buttons(Gtk.STOCK_OPEN, 42, "Close", Gtk.ResponseType.CLOSE)

        will add "Open" and "Close" buttons to dialog.
        c         s   s9   x2 |  r4 |  d d !\ } } |  d }  | | f Vq Wd  S(   Ni    i   (    (   t   bt   tt   r(    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyt   _button  s    	
s%   Must pass an even number of argumentsN(   t
   add_buttont
   IndexErrorRA   (   R   t   argsR   R)   t   response(    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyR     s    	N(   R   R   R   R4   t   propertyt   action_areat   vboxR   (    (    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyR     s   t   MessageDialogc           B   s>   e  Z d d  e j j e j j d d  Z d   Z	 d   Z
 RS(   i    c         K   s   | d  k r | | d <n  d | k rS d d  l } | j d t  | j d  } n  t j j |  d | d | d | d | | d  S(	   NR)   R   is   The use of the keyword type as a parameter of the Gtk.MessageDialog constructor has been depricated. Please use message_type instead.R   t   message_typeR   Ru   (   R   R   R   R   t   popR   R   R4   (   R   R   Ru   R   R   t   message_formatR5   R   (    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyR4     s    c         C   s$   |  j  d t  |  j  d |  d  S(   Ns   secondary-use-markups   secondary-text(   t   set_propertyRH   (   R   R   (    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyt   format_secondary_text  s    c         C   s$   |  j  d t  |  j  d |  d  S(   Ns   secondary-use-markups   secondary-text(   R   R"   (   R   R   (    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyt   format_secondary_markup  s    N(   R   R   R   R   t   MessageTypet   INFOt   ButtonsTypet   NONER4   R   R   (    (    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyR     s   			t   AboutDialogc           B   s   e  Z d    Z RS(   c         K   s   t  j j |  |  d  S(   N(   R   R   R4   (   R   R5   (    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyR4     s    (   R   R   R4   (    (    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyR     s   t   ColorSelectionDialogc           B   s   e  Z d d   Z RS(   c         K   s   t  j j |  d | | d  S(   NR   (   R   R   R4   (   R   R   R5   (    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyR4     s    N(   R   R   R   R4   (    (    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyR     s   t   FileChooserDialogc           B   s#   e  Z d d e j j d d   Z RS(   c         K   s/   t  j j |  d | d | d | d | | d  S(   NR>   R   R   R   (   R   R   R4   (   R   R   R   R>   R   R5   (    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyR4     s    N(   R   R   R   R   t   FileChooserActiont   OPENR4   (    (    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyR      s   	t   FontSelectionDialogc           B   s   e  Z d d   Z RS(   c         K   s   t  j j |  d | | d  S(   NR   (   R   R   R4   (   R   R   R5   (    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyR4     s    N(   R   R   R   R4   (    (    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyR     s   t   RecentChooserDialogc           B   s   e  Z d d d d d   Z RS(   c         K   s/   t  j j |  d | d | d | d | | d  S(   Nt   recent_managerR   R   R   (   R   R   R4   (   R   R   R   t   managerR   R5   (    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyR4     s    N(   R   R   R   R4   (    (    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyR     s   t   IconViewc           B   s/   e  Z d d   Z d   Z d   Z d   Z RS(   c         K   s   t  j j |  d | | d  S(   Nt   model(   R   R   R4   (   R   R   R5   (    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyR4   +  s    c         C   s8   t  t |   j | |  \ } } } | r4 | | f Sd  S(   N(   R
   R   t   get_item_at_pos(   R   t   xt   yR   t   patht   cell(    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyR   .  s    $c         C   s2   t  t |   j   \ } } } | r. | | f Sd  S(   N(   R
   R   t   get_visible_range(   R   R   t
   start_patht   end_path(    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyR   3  s    c         C   s8   t  t |   j | |  \ } } } | r4 | | f Sd  S(   N(   R
   R   t   get_dest_item_at_pos(   R   t   drag_xt   drag_yR   R   R+   (    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyR   8  s    $N(   R   R   R   R4   R   R   R   (    (    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyR   )  s   		t
   ToolButtonc           B   s   e  Z d d   Z RS(   c         K   s   t  j j |  d | | d  S(   NR   (   R   R   R4   (   R   R   R5   (    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyR4   C  s    N(   R   R   R   R4   (    (    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyR   A  s   t	   IMContextc           B   s   e  Z d    Z RS(   c         C   s2   t  t |   j   \ } } } | r. | | f Sd  S(   N(   R
   R   t   get_surrounding(   R   R   R)   t   cursor_index(    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyR   L  s    (   R   R   R   (    (    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyR   J  s   t
   RecentInfoc           B   s   e  Z d    Z RS(   c         C   s;   t  t |   j |  \ } } } } | r7 | | | f Sd  S(   N(   R
   R   t   get_application_info(   R   t   app_nameR   t   app_exect   countt   time(    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyR   V  s    $(   R   R   R   (    (    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyR   T  s   t
   TextBufferc           B   sh   e  Z d    Z d
 d  Z e d  Z d d  Z d d  Z d   Z	 d   Z
 d d  Z d	   Z RS(   c         C   s8   |  j    } | d  k r4 t j   } |  j |  n  | S(   N(   t   get_tag_tableR   R   t   TextTagTablet   set_tag_table(   R   t   table(    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyt   _get_or_create_tag_table_  s
    c         K   s,   t  j d | |  } |  j   j |  | S(   s  
        @tag_name: name of the new tag, or None
        @properties: keyword list of properties and their values

        Creates a tag and adds it to the tag table of the TextBuffer.
        Equivalent to creating a Gtk.TextTag and then adding the
        tag to the buffer's tag table. The returned tag is owned by
        the buffer's tag table.

        If @tag_name is None, the tag is anonymous.

        If @tag_name is not None, a tag called @tag_name must not already
        exist in the tag table for this buffer.

        Properties are passed as a keyword list of names and values (e.g.
        foreground = 'DodgerBlue', weight = Pango.Weight.BOLD)

        Return value: a new tag
        R1   (   R   t   TextTagR   t   add(   R   t   tag_namet
   propertiest   tag(    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyt
   create_tagg  s    c         C   s   t  j j |  | | |  S(   N(   R   R   t   create_mark(   R   t	   mark_namet   wheret   left_gravity(    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyR     s    ic         C   s   t  j j |  | |  d  S(   N(   R   R   t   set_text(   R   R)   RV   (    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyR     s    c         C   sE   t  | t  s( t d t |    n  t j j |  | | |  d  S(   Ns   text must be a string, not %s(   RR   RS   RA   R   R   R   t   insert(   R   R    R)   RV   (    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyR     s    c         G   s]   | j    } |  j | |  | s& d  S|  j |  } x! | D] } |  j | | |  q< Wd  S(   N(   t
   get_offsetR   t   get_iter_at_offsett	   apply_tag(   R   R    R)   t   tagst   start_offsett   startR   (    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyt   insert_with_tags  s    c         G   ss   | s
 d  Sg  } xI | D]A } |  j    j |  } | sK t d |   n  | j |  q W|  j | | |  d  S(   Ns   unknown text tag: %s(   R   t   lookupt
   ValueErrort   appendR   (   R   R    R)   R   t   tag_objsR   t   tag_obj(    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyt   insert_with_tags_by_name  s    c         C   sB   t  | t  s( t d t |    n  t j j |  | |  d  S(   Ns   text must be a string, not %s(   RR   RS   RA   R   R   R   t   insert_at_cursor(   R   R)   RV   (    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyR     s    c         C   s6   t  t |   j   \ } } } | r. | | f Sd Sd  S(   N(    (   R
   R   R,   (   R   R   R   t   end(    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyR,     s    
N(   R   R   R   R   R   RH   R   R   R   R   R   R   R,   (    (    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyR   ^  s   			t   TextIterc           B   s>   e  Z d    Z d   Z d d  Z d d  Z d d  Z RS(   c         C   s?   t  t |   j | | |  \ } } } | r7 | | f Sd  Sd  S(   N(   R
   R   t   forward_searchR   (   R   t   stringRu   t   limitR   t   match_startt	   match_end(    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyR     s
    
c         C   s?   t  t |   j | | |  \ } } } | r7 | | f Sd  Sd  S(   N(   R
   R   t   backward_searchR   (   R   R   Ru   R   R   R   R   (    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyR     s
    
c         C   s   t  t |   j |  S(   N(   R
   R   t
   begins_tag(   R   R   (    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyR     s    c         C   s   t  t |   j |  S(   N(   R
   R   t   ends_tag(   R   R   (    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyR     s    c         C   s   t  t |   j |  S(   N(   R
   R   t   toggles_tag(   R   R   (    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyR     s    N(   R   R   R   R   R   R   R   R   (    (    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyR     s
   		t	   TreeModelc           B   s   e  Z d    Z d   Z e Z d   Z d   Z d   Z d   Z d   Z	 d   Z
 d   Z d	   Z d
   Z d   Z d   Z d   Z d   Z d   Z d   Z d   Z d   Z d d  Z RS(   c         C   s   |  j  d   S(   N(   t   iter_n_childrenR   (   R   (    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyR     s    c         C   s   t  S(   N(   R"   (   R   (    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyR#     s    c         C   s   t  | t j  r | St  | t  r | d k  r t |   | } | d k  r` t d |   n  y |  j |  } Wn! t k
 r t d |   n X| Sy |  j |  } Wn! t k
 r t d |   n X| Sd  S(   Ni    s   row index is out of bounds: %ds   could not find tree path '%s'(   RR   R   t   TreeItert   intR   R   t   get_iterR   (   R   t   keyt   indexRZ   (    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyt   _getiter  s     c         C   s   |  j  |  } t |  |  S(   N(   R   t   TreeModelRow(   R   R   RZ   (    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyt   __getitem__  s    c         C   s!   |  | } |  j  | j |  d  S(   N(   t   set_rowR    (   R   R   R7   t   row(    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyt   __setitem__  s    
c         C   s    |  j  |  } |  j |  d  S(   N(   R   t   remove(   R   R   RZ   (    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyt   __delitem__  s    c         C   s   t  |  |  j    S(   N(   t   TreeModelRowItert   get_iter_first(   R   (    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyR!     s    c         C   s\   t  | t j  s! t |  } n  t t |   j |  \ } } | sX t d |   n  | S(   Ns   invalid tree path '%s'(   RR   R   t   TreePathR
   R   R   R   (   R   R   R   RZ   (    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyR      s    c         C   s)   t  t |   j   \ } } | r% | Sd  S(   N(   R
   R   R	  (   R   R   RZ   (    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyR	  	  s    c         C   s;   t  t |   j |  \ } } | s7 t d |   n  | S(   Ns   invalid tree path '%s'(   R
   R   t   get_iter_from_stringR   (   R   t   path_stringR   RZ   (    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyR    s    c         C   s2   | j    } t t |   j |  } | r. | Sd  S(   N(   t   copyR
   R   t	   iter_next(   R   RZ   t	   next_iterR   (    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyR    s    c         C   s2   | j    } t t |   j |  } | r. | Sd  S(   N(   R  R
   R   t   iter_previous(   R   RZ   t	   prev_iterR   (    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyR    s    c         C   s,   t  t |   j |  \ } } | r( | Sd  S(   N(   R
   R   t   iter_children(   R   RZ   R   t
   child_iter(    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyR     s    c         C   s/   t  t |   j | |  \ } } | r+ | Sd  S(   N(   R
   R   t   iter_nth_child(   R   R   t   nR   R  (    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyR  %  s    !c         C   s,   t  t |   j |  \ } } | r( | Sd  S(   N(   R
   R   t   iter_parent(   R   RZ   R   t   parent_iter(    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyR  *  s    c         C   s   t  | t  r t d   n  |  j   } t |  | k rK t d   n  g  } g  } xR t |  D]D \ } } | d  k r qd n  | j |  j	 | |   | j |  qd W| | f S(   Ns%   Expected a list or tuple, but got strs1   row sequence has the incorrect number of elements(
   RR   t   strRA   t   get_n_columnsR   R   t	   enumerateR   R   t   _convert_value(   R   R  t	   n_columnst   resultt   columnst   cur_colR7   (    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyt   _convert_row/  s    c         C   sY   |  j  |  \ } } x= | D]5 } | | } | d  k r> q n  |  j | | |  q Wd  S(   N(   R   R   t	   set_value(   R   t   treeiterR  t   converted_rowR  t   columnR7   (    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyR  C  s    
c         C   s  | d  k r d  S|  j |  } | t j k r t | t  rL t |  } qt j d
 k  r t | t  r| | j	 d  } q t
 d | | t |  f   qt
 d | t |  f   n| t j k s | t j k rt | t  r t |  } qt
 d | t |  f   n| t j k s6| t j k rt | t  rTt |  } qt j d k  rt | t  rt |  } qt
 d | t |  f   qt
 d | t |  f   n| t j k r9t g } t j d k  r| j t  n  t | t |   rt |  } qt
 d	 | t |  f   nt j   } | j |  | t j k rw| j |  | } nS| t j k r| j |  | } n.| t j k rt g } t j d k  r| j t  n  t | t |   rt | d  } n  | j |  | } n | t j  k r6| j |  | } n | t j! k r[| j" |  | } no | t j# k r| j$ |  | } nJ | t j% k r| j& |  | } n% | t j' k r| j( |  | } n  | S(   Ni   i    s   UTF-8s5   Expected string or unicode for column %i but got %s%ss*   Expected a string for column %i but got %ss)   Expected a float for column %i but got %ss)   Expected an long for column %i but got %ss,   Expected an integer for column %i but got %ss(   Expected a bool for column %i but got %s(   i   i    (   i   i    (   i   i    (   i   i    ()   R   t   get_column_typeR   t   TYPE_STRINGRR   R  t   syst   version_infot   unicodet   encodeR   R   t
   TYPE_FLOATt   TYPE_DOUBLEt   floatt	   TYPE_LONGt   TYPE_INTR   t   longt   TYPE_BOOLEANR   R-   t   boolt   Valuet   initt	   TYPE_CHARt   set_chart
   TYPE_UCHARt	   set_uchart   TYPE_UNICHARt   ordt   set_uintt	   TYPE_UINTt
   TYPE_ULONGt	   set_ulongt
   TYPE_INT64t	   set_int64t   TYPE_UINT64t
   set_uint64t   TYPE_PYOBJECTt	   set_boxed(   R   R$  R7   t   type_t   cmp_classest   value_container(    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyR  L  s|    "										c         G   s   |  j    } g  } xl | D]d } t | t  s= t d   n  | d k  sU | | k rd t d   n  | j |  j | |   q Wt |  S(   Ns   column numbers must be intsi    s   column number is out of range(   R  RR   R   RA   R   R   t	   get_valueR-   (   R   R"  R  R  t   valuest   col(    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyRg     s    c         C   s   t  t |   j |  S(   N(   R
   R   t
   filter_new(   R   t   root(    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyRK    s    N(   R   R   R   R#   R&   R   R  R  R  R!   R   R	  R  R  R  R  R  R  R   R  R  Rg   R   RK  (    (    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyR     s*   																				P	t   TreeSortablec           B   s)   e  Z d    Z d d  Z d d  Z RS(   c         C   s6   t  t |   j   \ } } } | r. | | f Sd Sd  S(   N(   NN(   R
   RM  t   get_sort_column_idR   (   R   R   t   sort_column_idt   order(    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyRN    s    
c         C   s    t  t |   j | | |  d  S(   N(   R
   RM  t   set_sort_func(   R   RO  t	   sort_funcR?   (    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyRQ    s    c         C   s   t  t |   j | |  d  S(   N(   R
   RM  t   set_default_sort_func(   R   RR  R?   (    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyRS    s    N(   R   R   RN  R   RQ  RS  (    (    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyRM    s   	t	   ListStorec           B   sh   e  Z d    Z d   Z d	 d  Z d	 d  Z d	 d  Z d	 d  Z d	 d  Z	 d   Z
 d   Z RS(
   c         G   s!   t  j j |   |  j |  d  S(   N(   R   RT  R4   t   set_column_types(   R   t   column_types(    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyR4     s    c         C   sR   | d  k	 r9 |  j |  \ } } |  j | | |  } n t j j |  |  } | S(   N(   R   R   t   insert_with_valuesvR   RT  R   (   R   R*   R  R  R"  (    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyt
   _do_insert  s
    c         C   s*   | r |  j  d |  St j j |   Sd  S(   Ni(   RX  R   RT  R   (   R   R  (    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyR     s    c         C   s   |  j  d |  S(   Ni    (   RX  (   R   R  (    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyt   prepend  s    c         C   s   |  j  | |  S(   N(   RX  (   R   R*   R  (    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyR     s    c         C   s8   t  j j |  |  } | d  k	 r4 |  j | |  n  | S(   N(   R   RT  t   insert_beforeR   R  (   R   t   siblingR  R"  (    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyRZ    s    c         C   s8   t  j j |  |  } | d  k	 r4 |  j | |  n  | S(   N(   R   RT  t   insert_afterR   R  (   R   R[  R  R"  (    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyR\    s    c         C   s/   |  j  | |  } t j j |  | | |  d  S(   N(   R  R   RT  R!  (   R   R"  R$  R7   (    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyR!    s    c            s	     f d   } | rt  | d t  ra | d  d  d  } | d d  d  } | | |  qt  | d t t f  r t |  d k r t d   n  | | d | d  qt  | d t  r | d j   } | d j   } | | |  qt d   n  d  S(   Nc            s|   t  |   t  |  k r' t d   n  xN t |  |  D]= \ } } t | t  sa t d   n    j  | |  q7 Wd  S(   Ns7   The number of columns do not match the number of valuess0   TypeError: Expected integer argument for column.(   R   RA   t   zipRR   R   R!  (   R  RI  t   col_numt   val(   R   R"  (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyt
   _set_lists  s    i    i   i   s   Too many argumentss   Argument list must be in the form of (column, value, ...), ((columns,...), (values, ...)) or {column: value}.  No -1 termination is needed.(	   RR   R   R-   t   listR   RA   Rf   t   keysRI  (   R   R"  R   R`  R  RI  (    (   R   R"  s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyt   set  s    N(   R   R   R4   RX  R   R   RY  R   RZ  R\  R!  Rc  (    (    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyRT    s   			
	R  c           B   st   e  Z d    Z e d    Z e d    Z e d    Z d   Z d   Z d   Z	 d   Z
 d   Z d	   Z RS(
   c         C   s   t  | t j  s. t d t |  j   n  | |  _ t  | t j  r^ | j |  |  _	 n7 t  | t j
  r| | |  _	 n t d t |  j   d  S(   Ns    expected Gtk.TreeModel, %s founds?   expected Gtk.TreeIter or Gtk.TreePath,                 %s found(   RR   R   R   RA   R   R   R   R
  R   R    R   (   R   R   t   iter_or_path(    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyR4     s    	c         C   s   |  j  j |  j  S(   N(   R   t   get_pathR    (   R   (    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyR   "  s    c         C   s
   |  j    S(   N(   t   get_next(   R   (    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyt   next&  s    c         C   s
   |  j    S(   N(   t
   get_parent(   R   (    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyR   *  s    c         C   s/   |  j  j |  j  } | r+ t |  j  |  Sd  S(   N(   R   R  R    R  (   R   R  (    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyRf  .  s    c         C   s/   |  j  j |  j  } | r+ t |  j  |  Sd  S(   N(   R   R  R    R  (   R   R  (    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyRh  3  s    c         C   s   t  | t  rk | |  j j   k r7 t d |   n | d k  rU |  j |  } n  |  j j |  j |  St  | t  r | j	 |  j j    \ } } } g  } x9 t
 | | |  D]% } | j |  j j |  j |   q W| St d t |  j   d  S(   Ns!   column index is out of bounds: %di    s    indices must be integers, not %s(   RR   R   R   R  R   t   _convert_negative_indexRH  R    t   slicet   indicest   rangeR   RA   R   R   (   R   R   R   t   stopt   stept   alistt   i(    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyR  8  s    !#c   	      C   sJ  t  | t  rq | |  j j   k r7 t d |   n | d k  rU |  j |  } n  |  j j |  j | |  n t  | t  r-| j	 |  j j    \ } } } t
 | | |  } t |  t |  k r t d t |  t |  f   n  xS t |  D]) \ } } |  j j |  j | | |  q Wn t d t |  j   d  S(   Ns!   column index is out of bounds: %di    s9   attempt to assign sequence of size %d to slice of size %ds)   index must be an integer or slice, not %s(   RR   R   R   R  R   Ri  R!  R    Rj  Rk  Rl  R   R   R  RA   R   R   (	   R   R   R7   R   Rm  Rn  t	   indexListRp  t   v(    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyR  H  s     !$c         C   s6   |  j  j   | } | d k  r2 t d |   n  | S(   Ni    s!   column index is out of bounds: %d(   R   R  R   (   R   R   t	   new_index(    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyRi  \  s    c         C   s%   |  j  j |  j  } t |  j  |  S(   N(   R   R  R    R  (   R   R  (    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyt   iterchildrenb  s    (   R   R   R4   R   R   Rg  R   Rf  Rh  R  R  Ri  Rt  (    (    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyR    s   						R  c           B   s)   e  Z d    Z d   Z e Z d   Z RS(   c         C   s   | |  _  | |  _ d  S(   N(   R   R    (   R   R   RZ   (    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyR4   j  s    	c         C   sC   |  j  s t  n  t |  j |  j   } |  j j |  j   |  _  | S(   N(   R    t   StopIterationR  R   R  (   R   R  (    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyt   __next__n  s
    		c         C   s   |  S(   N(    (   R   (    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyR!   x  s    (   R   R   R4   Rv  Rg  R!   (    (    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyR  h  s   		R
  c           B   s\   e  Z d  d  Z d   Z d   Z d   Z d   Z d   Z d   Z d   Z	 d	   Z
 RS(
   i    c         C   s   t  | t  r t |  } n+ t  | t  rI d j d   | D  } n  t |  d k rn t d |   n  y t j |  SWn! t k
 r t d |   n Xd  S(   Nt   :c         s   s   |  ] } t  |  Vq d  S(   N(   R  (   t   .0R_  (    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pys	   <genexpr>  s    i    s-   could not parse subscript '%s' as a tree path(	   RR   R   R  R-   t   joinR   RA   R
  t   new_from_string(   t   clsR   (    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyt   __new__  s    c         C   s
   |  j    S(   N(   t	   to_string(   R   (    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyt   __str__  s    c         C   s   | d  k	 o |  j |  d k  S(   Ni    (   R   t   compare(   R   t   other(    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyt   __lt__  s    c         C   s   | d  k	 o |  j |  d k S(   Ni    (   R   R  (   R   R  (    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyt   __le__  s    c         C   s   | d  k	 o |  j |  d k S(   Ni    (   R   R  (   R   R  (    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyt   __eq__  s    c         C   s   | d  k p |  j |  d k S(   Ni    (   R   R  (   R   R  (    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyt   __ne__  s    c         C   s   | d  k p |  j |  d k S(   Ni    (   R   R  (   R   R  (    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyt   __gt__  s    c         C   s   | d  k p |  j |  d k S(   Ni    (   R   R  (   R   R  (    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyt   __ge__  s    c         C   s   d   t  |   j d  D S(   Nc         s   s   |  ] } t  |  Vq d  S(   N(   R   (   Rx  t   part(    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pys	   <genexpr>  s    Rw  (   R  t   split(   R   (    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyR!     s    (   R   R   R|  R~  R  R  R  R  R  R  R!   (    (    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyR
  }  s   							t	   TreeStorec           B   sh   e  Z d    Z d   Z d	 d  Z d	 d  Z d	 d  Z d	 d  Z d	 d  Z	 d   Z
 d   Z RS(
   c         G   s!   t  j j |   |  j |  d  S(   N(   R   R  R4   RU  (   R   RV  (    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyR4     s    c         C   sX   | d  k	 r< |  j |  \ } } |  j | | | |  } n t j j |  | |  } | S(   N(   R   R   t   insert_with_valuesR   R  R   (   R   R   R*   R  R  R"  (    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyRX    s
    c         C   s   |  j  | d |  S(   Ni(   RX  (   R   R   R  (    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyR     s    c         C   s   |  j  | d |  S(   Ni    (   RX  (   R   R   R  (    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyRY    s    c         C   s   |  j  | | |  S(   N(   RX  (   R   R   R*   R  (    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyR     s    c         C   s;   t  j j |  | |  } | d  k	 r7 |  j | |  n  | S(   N(   R   R  RZ  R   R  (   R   R   R[  R  R"  (    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyRZ    s    c         C   s;   t  j j |  | |  } | d  k	 r7 |  j | |  n  | S(   N(   R   R  R\  R   R  (   R   R   R[  R  R"  (    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyR\    s    c         C   s/   |  j  | |  } t j j |  | | |  d  S(   N(   R  R   R  R!  (   R   R"  R$  R7   (    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyR!    s    c            s	     f d   } | rt  | d t  ra | d  d  d  } | d d  d  } | | |  qt  | d t t f  r t |  d k r t d   n  | | d | d  qt  | d t  r | d j   } | d j   } | | |  qt d   n  d  S(   Nc            s|   t  |   t  |  k r' t d   n  xN t |  |  D]= \ } } t | t  sa t d   n    j  | |  q7 Wd  S(   Ns7   The number of columns do not match the number of valuess0   TypeError: Expected integer argument for column.(   R   RA   R]  RR   R   R!  (   R  RI  R^  R_  (   R   R"  (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyR`    s    i    i   i   s   Too many argumentss   Argument list must be in the form of (column, value, ...), ((columns,...), (values, ...)) or {column: value}.  No -1 termination is needed.(	   RR   R   R-   Ra  R   RA   Rf   Rb  RI  (   R   R"  R   R`  R  RI  (    (   R   R"  s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyRc    s    N(   R   R   R4   RX  R   R   RY  R   RZ  R\  R!  Rc  (    (    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyR    s   			
	t   TreeViewc           B   sz   e  Z d d   Z d   Z d   Z d   Z d   Z d   Z d   Z	 d e
 d d d  Z d e
 d	  Z d d
  Z RS(   c         C   s*   t  j j |   | r& |  j |  n  d  S(   N(   R   R  R4   t	   set_model(   R   R   (    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyR4     s    c         C   sD   t  t |   j | |  \ } } } } } | r@ | | | | f Sd  S(   N(   R
   R  t   get_path_at_pos(   R   R   R   R   R   R$  t   cell_xt   cell_y(    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyR    s    *c         C   s2   t  t |   j   \ } } } | r. | | f Sd  S(   N(   R
   R  R   (   R   R   R   R   (    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyR      s    c         C   s8   t  t |   j | |  \ } } } | r4 | | f Sd  S(   N(   R
   R  t   get_dest_row_at_pos(   R   R   R   R   R   R+   (    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyR    s    $c         C   s:   g  } x- | D]% } t  j j |   } | j |  q W| S(   N(   R   t   TargetEntryt   newR   (   R   t   targetst   target_entriesR   t   entry(    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyt   _construct_target_list
  s
    c         C   s/   |  j  |  } t t |   j | | |  d  S(   N(   R  R
   R  t   enable_model_drag_source(   R   t   start_button_maskR  t   actionsR  (    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyR    s    c         C   s,   |  j  |  } t t |   j | |  d  S(   N(   R  R
   R  t   enable_model_drag_dest(   R   R  R  R  (    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyR    s    g        c         C   sG   t  | t j  s! t |  } n  t t |   j | | | | |  d  S(   N(   RR   R   R
  R
   R  t   scroll_to_cell(   R   R   R$  t	   use_alignt	   row_alignt	   col_align(    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyR    s    c         C   sA   t  | t j  s! t |  } n  t t |   j | | |  d  S(   N(   RR   R   R
  R
   R  t
   set_cursor(   R   R   R$  t   start_editing(    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyR  #  s    c         C   s:   t  | t j  s! t |  } n  t t |   j | |  S(   N(   RR   R   R
  R
   R  t   get_cell_area(   R   R   R$  (    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyR  (  s    N(   R   R   R   R4   R  R   R  R  R  R  RH   R  R  R  (    (    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyR    s   							t   TreeViewColumnc           B   s,   e  Z d  d d  Z d   Z d d  Z RS(   t    c         K   sc   t  j j |  d | | r/ |  j | t  n  x- | j   D] \ } } |  j | | |  q< Wd  S(   NR   (   R   R  R4   t
   pack_startR"   t   itemst   add_attribute(   R   R   t   cell_renderert
   attributesR1   R7   (    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyR4   1  s
    c         C   s5   t  t |   j |  \ } } } | r1 | | f Sd  S(   N(   R
   R  t   cell_get_position(   R   R  R   R.   t   width(    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyR  ;  s    !c         C   s    t  t |   j | | |  d  S(   N(   R
   R  t   set_cell_data_func(   R   R  t   funct	   func_data(    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyR  @  s    N(   R   R   R   R4   R  R  (    (    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyR  0  s   		t   TreeSelectionc           B   s#   e  Z d    Z d   Z d   Z RS(   c         C   s;   t  | t j  s! t |  } n  t t |   j |  d  S(   N(   RR   R   R
  R
   R  t   select_path(   R   R   (    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyR  H  s    c         C   s<   t  t |   j   \ } } } | r. | | f S| d  f Sd  S(   N(   R
   R  t   get_selectedR   (   R   R   R   RZ   (    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyR  M  s    
c         C   s%   t  t |   j   \ } } | | f S(   N(   R
   R  t   get_selected_rows(   R   t   rowsR   (    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyR  U  s    (   R   R   R  R  R  (    (    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyR  F  s   		t   Buttonc           B   s   e  Z d d e e d   Z RS(   c      	   K   sD   | r | } t  } t  } n  t j j |  d | d | d | | d  S(   NR2   t	   use_stockt   use_underline(   R"   R   R  R4   (   R   R2   t   stockR  R  R5   (    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyR4   ^  s    	N(   R   R   R   RH   R4   (    (    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyR  ]  s   t
   LinkButtonc           B   s   e  Z d d   Z RS(   c         K   s#   t  j j |  d | d | | d  S(   Nt   uriR2   (   R   R  R4   (   R   R  R2   R5   (    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyR4   i  s    N(   R   R   R   R4   (    (    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyR  h  s   t   Labelc           B   s   e  Z d d   Z RS(   c         K   s   t  j j |  d | | d  S(   NR2   (   R   R  R4   (   R   R2   R5   (    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyR4   p  s    N(   R   R   R   R4   (    (    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyR  o  s   t
   Adjustmentc           B   s   e  Z d    Z RS(   c         O   s   d	 } t  t | |   } | j |  d | k rJ | j d  | d <n  d | k rl | j d  | d <n  t j j |  |  d | k r |  j | d  n  d  S(
   NR7   t   lowert   uppert   step_incrementt   page_incrementt	   page_sizet	   page_incrt	   step_incr(   s   values   lowers   upperR  R  R  (   Rf   R]  t   updateR   R   R  R4   R!  (   R   R   R5   t	   arg_namest   new_args(    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyR4   w  s     (   R   R   R4   (    (    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyR  v  s   t   Tablec           B   sO   e  Z d  d  e d  Z e j j e j j Be j j e j j Bd d d  Z RS(   i   c      	   K   se   d | k r | j  d  } n  d | k r< | j  d  } n  t j j |  d | d | d | | d  S(   Nt   n_rowsR  R^   (   R   R   R  R4   (   R   R  R  R^   R5   (    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyR4     s
    i    c
   
      C   s/   t  j j |  | | | | | | | | |	 
 d  S(   N(   R   R  t   attach(
   R   R   t   left_attacht   right_attacht
   top_attacht   bottom_attacht   xoptionst   yoptionst   xpaddingt   ypadding(    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyR    s    (	   R   R   RH   R4   R   t   AttachOptionst   EXPANDt   FILLR  (    (    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyR    s   	t   ScrolledWindowc           B   s   e  Z d d d   Z RS(   c         K   s#   t  j j |  d | d | | d  S(   Nt   hadjustmentt   vadjustment(   R   R  R4   (   R   R  R  R5   (    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyR4     s    N(   R   R   R   R4   (    (    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyR    s   t
   HScrollbarc           B   s   e  Z d d   Z RS(   c         K   s   t  j j |  d | | d  S(   Nt
   adjustment(   R   R  R4   (   R   R  R5   (    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyR4     s    N(   R   R   R   R4   (    (    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyR    s   t
   VScrollbarc           B   s   e  Z d d   Z RS(   c         K   s   t  j j |  d | | d  S(   NR  (   R   R  R4   (   R   R  R5   (    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyR4     s    N(   R   R   R   R4   (    (    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyR    s   t   Panedc           B   s&   e  Z e e d   Z e e d  Z RS(   c         C   s    t  t |   j | | |  d  S(   N(   R
   R  t   pack1(   R   R   t   resizet   shrink(    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyR    s    c         C   s    t  t |   j | | |  d  S(   N(   R
   R  t   pack2(   R   R   R  R  (    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyR    s    (   R   R   RH   R"   R  R  (    (    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyR    s   t   Arrowc           B   s   e  Z d    Z RS(   c         K   s#   t  j j |  d | d | | d  S(   Nt
   arrow_typet   shadow_type(   R   R  R4   (   R   R  R  R5   (    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyR4     s    (   R   R   R4   (    (    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyR    s   t   IconSetc           B   s   e  Z d d   Z RS(   c         C   s7   | d  k	 r! t j j |  } n t j j |   } | S(   N(   R   R   R  t   new_from_pixbufR|  (   R{  t   pixbuft   iconset(    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyR|    s    N(   R   R   R   R|  (    (    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyR    s   t   Viewportc           B   s   e  Z d d d   Z RS(   c         K   s#   t  j j |  d | d | | d  S(   NR  R  (   R   R  R4   (   R   R  R  R5   (    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyR4     s    N(   R   R   R   R4   (    (    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyR    s   t   TreeModelFilterc           B   s   e  Z d d   Z RS(   c         C   s   t  t |   j | |  d  S(   N(   R
   R  t   set_visible_func(   R   R  t   data(    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyR    s    N(   R   R   R   R  (    (    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyR    s   t   Menuc           B   s   e  Z d    Z RS(   c         C   s#   |  j  d  | | | | | |  d  S(   N(   t   popup_for_deviceR   (   R   t   parent_menu_shellt   parent_menu_itemR  R  t   buttont   activate_time(    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyt   popup  s    (   R   R   R  (    (    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyR    s   c          G   s   t    d  S(   N(   t   _Gtk_main_quit(   R   (    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyt	   main_quit  s    c          G   s    t  |    \ } } | s d  S| S(   N(   t   _Gtk_stock_lookupR   (   R   R   t   item(    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyt   stock_lookup  s    s   Gtk couldn't be initialized(   i   i    (T   R'  t   giR    t   gi.repositoryR   t	   overridesR   t   importerR   R(  R  RS   Rj   t
   basestringt   callablet   _introspection_moduleR   t   __all__t   _versionR   t   warn_msgR   t   RuntimeWarningR	   R   R   R'   R0   R6   R8   RQ   RX   R[   R`   Rd   Re   R   R   R   R   R   R   R   R   R   R   R   R   R   R   R   RM  RT  t   objectR  R  R
  R  R  R  R  R  R  R  R  R  R  R  R  R  R  R  R  R  R  R  R  R  R  t
   init_checkt   argvt   initializedRa  t   RuntimeError(    (    (    s4   /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.pyt   <module>   sX  .>!UNR'J9		