GTK+ Forums

Discussion forum for GTK+ and Programming. Ask questions, troubleshoot problems, view and post example code, or express your opinions.
It is currently Wed Sep 17, 2014 9:36 pm

All times are UTC




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: make special shape eventbox transparent (GTK+-2.24)
PostPosted: Tue May 28, 2013 3:14 am 
Offline

Joined: Thu Mar 21, 2013 6:38 am
Posts: 1
Hi, all

I'm new to GTK and I have a problem related to eventbox.

I need to make a special shape button with transparent image on it. I called gtk_widget_shape_combine_mask(EventBox, evnbitmap, 0, 0) to get the special shape I want and gtk_event_box_set_visible_window(GTK_EVENT_BOX(EventBox), FALSE) to make it transparent.

Unfortunately, I found these two functions have some conflicts as gtk_widget_shape_combine_mask() needs the widget to be a window widget, however, gtk_event_box_set_visible_window() will make it GTK_NO_WINDOW.

I tried GTK_WIDGET_UNSET_FLAGS (EventBox, GTK_NO_WINDOW ) but it doesn't work.

Could anyone give some advice to fix this? Or other way to make a special shape eventbox transparent?

Thanks&Regards


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC


Who is online

Users browsing this forum: Google [Bot] and 3 guests


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 post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group