[pygtk] Re: BOUNCE pygtk@daa.com.au: Non-member submission from [Javi Roman ]

2000-03-07 Thread James Henstridge

The string for rc_parse_string() is the same format as the rc files.  It
basically allows you to embed an rc file in your application.  Here is an
example:

rcfile = """
style "default_style"
{
  bg[NORMAL] = { 0.5647, 0.6902, 0.6588 }
  bg[ACTIVE] = { 0.49, 0.60, 0.57 }
  bg[PRELIGHT] = { 0.67, 0.83, 0.79 }
  bg[INSENSITIVE] = { 0.5647, 0.6902, 0.6588 }
}
widget_class "*" style "default_style"
"""
rc_parse_string(rcfile)

The reason that the "style.bg_pixmap[...] = pixmap" causes a crash is a
bug and will be fixed in the next version.

James.

--
Email: [EMAIL PROTECTED]
WWW:   http://www.daa.com.au/~james/


On Wed, 8 Mar 2000 [EMAIL PROTECTED] wrote:

> Please, i need a rc_parse_string(mystring) example. What's it "mystring"
> format?
> 

To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED]



[pygtk] bug fixes

2000-03-07 Thread Frederic Gobry

Hi,

I fixed a bug (in CVS) in the ui_info construction function (in GnomeUI) :
it should solve some random crashes.

I also added a .length field to the GtkStructure object, so that it is
possible in the case of copy/paste to know if the data returned are valid or
not (length > -1). The problem is, it is still possible to access the other
fields, even if length < -1, which could produce a core dump. 

On the other hand, hiding the fields when length < 0 breaks drag'n'drop, as
it uses a GtkStructure with no data (length < 0), but other valid fields...

A hint on how to solve this cleanly, anybody ?

Frédéric

PS : is there some heavy work occuring in gnome-python, or is a release
coming soon ?
To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED]



[pygtk] How do I...?

2000-03-07 Thread Randolph Fritz

Turn off the "minimize" button on a window and make it dissapear from
the task list.  My yellow stickies really don't belong there.  

By the way, if anyone is using the Gnome panel and wants to give the
program a try I'll be happy to send a copy; I've found it useful and
reliable, though it is incomplete.

-- 
Randolph
To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED]