PDA

View Full Version : window creation



munna_dude
10-08-2007, 06:36 AM
hi all
how to create a transparent window using gtk c in fedora7( by programatically)

please help me

thank you in advance

matsp
10-08-2007, 06:53 AM
Whilst the article isn't about Fedora, I think it's fairly close:
http://plan99.net/~mike/blog/?p=38

--
Mats

munna_dude
10-08-2007, 07:05 AM
Whilst the article isn't about Fedora, I think it's fairly close:
http://plan99.net/~mike/blog/?p=38

--
Mats

i tried this , but it is not transparent

afetr running this window, it should be transparent

matsp
10-08-2007, 07:09 AM
Did you read the requirements? Maybe you are not fulfilling all of the requirements.

I haven't looked at the code in that blog, but from the brief description given, I would say that what you need is:
1. create the window with an alpha value.
2. Have some form of composition engine that combines the content of this window with what's behind it based on the alpha value(s).

Since the blog says that it does 1 from above, then I must assume that it's 2 that is missing. This is about what software (and perhaps hardware) you have on your machine. If you have a very basic graphics card, I expect alpha-blending may not work.

--
Mats

CornedBee
10-08-2007, 07:23 AM
You'll probably need the composite extension of X enabled, and you need a composite manager.

munna_dude
10-09-2007, 02:52 AM
hi all
am sending an attachment

please check this

thank you in advance

matsp
10-09-2007, 03:01 AM
Yes, and I think CornedBee has already told you what you need - as did I, but perhaps not as clearly. Assuming you didn't change the code in the link to have zero as the alpha value.

--
Mats