Re: Gtk::Button && StockID



The closest I have come to finding this is:

1) use Gtk::Button::get_use_stock method to determine whether or not the button in question is indeed using a Gtk::StockID. 2) use Gtk::Button::get_label to see the string (and I quote the docs here) ". . . used to select a stock item instead of being used directly as the label text . . . "

I do not know if there is an actual way to correlate the returned string with a Gtk::StockID programmatically or not. I tested this with one of my applications that use Gtk::StockIDs in the buttons and the one using Gtk::StockID::QUIT returned "gtk-quit" as its label.

Hope this helps.

Bob

Volosatov Alexander wrote:

How I can get StockID of Gtk::Button's stockID? || How I can get Gtk::Stock of Button?
_______________________________________________
gtkmm-list mailing list
gtkmm-list gnome org
http://mail.gnome.org/mailman/listinfo/gtkmm-list


begin:vcard
fn:Robert Caryl
n:Caryl;Robert
org:Fiscal Systems, Inc.
adr:;;102 Commerce Circle;Madison;AL;35758;USA
email;internet:bob fis-cal com
title:Senior Software Design Engineer
tel;work:356-772-8920 X108
x-mozilla-html:TRUE
url:http://www.fis-cal.com
version:2.1
end:vcard



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