Re: typecast from Gtk::Widget to Gtk::Toolbar?
- From: Bob Caryl <bob fis-cal com>
- To: ZeeGeek <zeegeek gmail com>
- Cc: gtkmm-list gnome org
- Subject: Re: typecast from Gtk::Widget to Gtk::Toolbar?
- Date: Tue, 10 Jan 2006 13:22:17 -0600
You should be able to write something like:
Gtk::UIManager ui;
// ui has been initialized somewhere in between
Gtk::Toolbar *mytoolbar = (Gtk::Toolbar *)ui.get_widget("/Toolbar");
since Gtk::Toolbar is descended from Gtk::Widget, but be sure to check
that the returned pointer is not NULL before using it.
Bob Caryl
ZeeGeek wrote:
Gtk::UIManager::get_widget("/Toolbar") returns a Gtk::Widget, but I
want to set the toolbar style, can I typecast Gtk::Widget to
Gtk::Toolbar so that I can use Gtk::Toolbar::set_toolbar_style()?
--
My blog: http://ihome.ust.hk/~cs_snx/blog/
Dell Inspiron 600m
Pentium-M 1.6G
512MB, 60G
ATI 9000 Mobility
_______________________________________________
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]