Re: [gtk-list] best way to use user-specified pixmaps ?



I think you have two solutions.

First, you can find the instant where the styles are applied, and just
after that, for each button, find the background pixmap, get its size, ams
make a gtk_wudget_set_usize (you'll have to ensure too that the user can't
enlarge the buttons).

I don't think it's the right way, because the gtkrc files are designed for
the estetics of the GUI. Here, the pixmaps means something too, it should
be in a specific configuration system.

The second method is to get from anywhere you want (you may parse another
specific rc file) the pixmaps in a loop, and create the buttons as you
said, but in the loop.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]