If case anyone wants to add new stock images to their applications, I submitted a patch last night to add a wrapper for gtk_stock_add to PyGtk. It's at
http://bugzilla.gnome.org/show_bug.cgi?id=68363 The appended script demonstrates its use. -- Skip Montanaro ([EMAIL PROTECTED] - http://www.mojam.com/) #!/usr/bin/env python import gtk # change these to reference a PNG file on your system dir = "/home/skip/src/gtk/gtk+.cvs/demos/gtk-demo" imbase = "gnome-foot" imfile = imbase + ".png" factory = gtk.IconFactory() factory.add_default() pixbuf = gtk.gdk.pixbuf_new_from_file("%s/%s" % (dir, imfile)) transparent = pixbuf.add_alpha(gtk.TRUE, chr(0xff), chr(0xff), chr(0xff)) icon_set = gtk.icon_set_new_from_pixbuf(transparent) factory.add(imbase, icon_set) gtk.rc_parse_string(''' pixmap_path "%s" style "icons" { stock["my-foot"] = { { "%s" } } } class "GtkButton" style "icons" ''' % (dir, imfile)) gtk.stock_add([(imbase, "_New Folder", 0, 0, "")]) w = gtk.Window() w.connect("destroy", gtk.mainquit) my = gtk.Button(stock=imbase) w.add(my) w.show_all() gtk.mainloop() _______________________________________________ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk