Re: how to set transparency to widgets?



I have a custem widget (gtk.Drawable) which lies on a gtk.Notebook.
My gtk theme has a gradient background for notebooks, so my custom
widget looks odd with its flat background.
Will this be able to fix my problem as well?

On Sun, 2008-03-30 at 23:32 +0200, gege2061 wrote:
> Hi,
> 
> It's possible with cairo : http://plan99.net/~mike/files/alphademo.c
> 
> Screenshot : http://gtk.developpez.com/faq/images/transparent.png
> 
> 2008/3/30, Paul Davis <paul linuxaudiosystems com>:
> >
> >  On Sun, 2008-03-30 at 10:11 +0530, Harinandan S wrote:
> >  > Hi All,
> >  >
> >  > I am looking at ways to make a window transparent and only some
> >  > widgets on the window to be visible. I found
> >  >
> >  > gtk_window_set_opacity API but this API sets opacity to entire window
> >  > but not to a widget.
> >  >
> >  > Is there any way I can make the window transparent and show only
> >  > widgets?
> >  >
> >  > I am also looking at ways to show multiple windows and set appropriate
> >  > transparency to widgets to get the
> >  >
> >  > desired widgets from each window on the screen.
> >
> >  the functionality you want basically does not exist in GTK at this time.
> >  there are ways to fake parts of it, and get things close to what you are
> >  thinking of, but i would suggest revisiting your ideas about GUI design.
> >  GTK is not the toolkit to use if transparency and so forth is critical
> >  to what you want to do. Keep in mind, though, that transparency has only
> >  recently been part of the "conceptual toolkit" for GUIs, and its
> >  perfectly possible to design highly functional, deeply usable interfaces
> >  without it.
> >
> >  --p
> >
> >
> >  _______________________________________________
> >  gtk-list mailing list
> >  gtk-list gnome org
> >  http://mail.gnome.org/mailman/listinfo/gtk-list
> >
> 
> 
-- 
Best Regards,
Med Venlig Hilsen,
Thomas



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]