Re: Gtk::Stock and buttons on win32



for showing images on buttons in MS-Windows theme you must:
1. open file  ...\share\themes\MS-Windows\gtk-2.0\gtkrc
2. change gtk-button-images = 0 to gtk-button-images = 1

That's all!

On Mon, 02 Jan 2006 15:14:23 +0200, Cedric Gustin <cedric gustin gmail com> wrote:

This is a followup to a recent thread on the mailing list where people
complained about StockID not showing up in Gtk::Button on win32.

After investigating the issue, it turns out this depends on the
selected theme. With gtk-wimp (the default, native-like theme on
win32), icons are not displayed in buttons, even when they are created
using the Gtk::Button(const StockID& stock_id) constructor (the
equivalent of gtk_button_new_from_stock).

As an example, if you use the gladewin32 GTK+ installer, start the
"Theme Selector" tool. No icon is displayed in the "Ok" and "Cancel"
buttons. Now, change the theme to, say, "Metal", restart the theme
selector and you'll see the standard stock icons in the buttons.

Cedric

Alex
--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/



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