Re: [pygtk] GtkToolTips tip_private

2002-12-02 Thread Johan Dahlin
mån 2002-12-02 klockan 16.36 skrev Luc Lefebvre:
 Hi,
 
 I was trying to access the tip_private field in GtkToolTips without any 
 success.  The tip part does show, but I can't access it using get_data.

It seemed that a few things were missing in the bindings, so i added
them (committed to cvs just a few minutes ago)

tips_data_list is a list with 4 sizes tuples, which containes:
GtkToolTips, GtkButton, tooltip and tooltip-private.

Example:

 t = gtk.Tooltips()
 t.tips_data_list
[]
 b = gtk.Button()
 t.set_tip(b, 'foo', 'bar')
 t.tips_data_list
[(gtk.Tooltips object (GtkTooltips) at 0x81a0cb4, gtk.Button object
(GtkButton) at 0x81a0c34, 'foo', 'bar')]


Does this solve everything for you?

-- 
Johan Dahlin [EMAIL PROTECTED]
Async Open Source

___
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/



Re: [pygtk] GtkToolTips tip_private

2002-12-02 Thread Johan Dahlin
 This would solve it.  If I understand you correctly, the current bindings 
 (ie. the ones without the tips_data_list attribute) don't support 
 retrieving the tips_private field.  Correct?

Yes, the last item in tuple is the tip_private field in the
GtkTooltipsData structure.

-- 
Johan Dahlin [EMAIL PROTECTED]
Async Open Source

___
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/