gnope php gtk gui gnope.org  

GtkMenubar shadow type

 
Post new topic   Reply to topic    gnope.org Forum Index -> PHP GTK2 Beginners
View previous topic :: View next topic  
Author Message
JeremyGiberson



Joined: 18 Feb 2006
Posts: 1

PostPosted: Sat Feb 18, 2006 11:27 pm    Post subject: GtkMenubar shadow type Reply with quote

I've been fumbling around with this darn widget trying to coerse it into submiting to my will. However, inspite of my effort's I cannot remove nor change the shadow type of the GtkMenubar.

I've tried
Code:

$_menubar->set_flags(Gtk::SHADOW_NONE);//as well as the other constant values available
$_menubar->set_property("shadow_type", Gtk::SHADOW_NONE);//no result here either


I miss the function call set_shadow_type(int shadow type); from phpgtk 1.

Any help here would be greatly appreciated.
Back to top
cweiske



Joined: 08 Dec 2005
Posts: 454
Location: Leipzig/Germany

PostPosted: Sun Feb 19, 2006 11:22 am    Post subject: Reply with quote

The shadow type can't be set directly in Gtk2, because it's a read-only property.
You can, however, change it by using RC styles:
http://www.async.com.br/faq/pygtk/index.py?req=show&file=faq04.018.htp
http://mail.gnome.org/archives/gtk-list/2002-November/msg00104.html
Back to top
Display posts from previous:   
Post new topic   Reply to topic    gnope.org Forum Index -> PHP GTK2 Beginners All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Templates enhanced by DigiWiki. Hosting by Tradebit.