GTK+ Forums Forum Index GTK+ Forums
Discussion forum for GTK+ and Programming. Ask questions, troubleshoot problems, view and post example code, or express your opinions.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How to create a non-rectagular window ?

 
Post new topic   Reply to topic    GTK+ Forums Forum Index -> GTK+ Programming
Author Message
Kicker



Joined: 11 May 2008
Posts: 1

PostPosted: Sun May 11, 2008 11:34 am    Post subject: How to create a non-rectagular window ? Reply with quote

Hello,

I'd like to make a window with a shape of my choice but I don't manage to.
I understood I had to use gtk_widget_combine_mask().
The problem is how to get the GdkBitmap from a .bmp file so I can obtain the mask.
I read that it's easy to do when you get your mask from an XPM file.
But I have no idea how to save my .bpm file as a .xpm one...

Please anyone help me :)
Thanks in advance
Back to top
cofcof
Familiar Face


Joined: 02 Apr 2008
Posts: 29

PostPosted: Mon May 12, 2008 6:14 am    Post subject: Reply with quote

Hi Kicker

You can try to open your bitmap with gimp
and save it in XPM (or XBM?)

See how it goes and let us know.

CofCof
Back to top
Display posts from previous:   
Post new topic   Reply to topic    GTK+ Forums Forum Index -> GTK+ Programming All times are GMT
Page 1 of 1

 


Powered by phpBB © 2001, 2005 phpBB Group
CodeBB 1.0 Beta 2
Protected by Anti-Spam ACP