Commit 34c0f15b authored by Richard Hult's avatar Richard Hult Committed by Richard Hult
Browse files

Implement.

2007-04-30  Richard Hult  <richard@imendio.com>

	* gdk/quartz/gdkwindow-quartz.c: (gdk_window_set_opacity):
	Implement.

svn path=/trunk/; revision=17743
parent f38ff3c5
2007-04-30 Richard Hult <richard@imendio.com>
* gdk/quartz/gdkwindow-quartz.c: (gdk_window_set_opacity):
Implement.
2007-04-30 Matthias Clasen <mclasen@redhat.com> 2007-04-30 Matthias Clasen <mclasen@redhat.com>
* modules/printbackends/cups/gtkprintbackendcups.c: Get all * modules/printbackends/cups/gtkprintbackendcups.c: Get all
......
...@@ -29,6 +29,9 @@ static gpointer parent_class; ...@@ -29,6 +29,9 @@ static gpointer parent_class;
static GSList *update_windows = NULL; static GSList *update_windows = NULL;
static guint update_idle = 0; static guint update_idle = 0;
#define WINDOW_IS_TOPLEVEL(window) \
(GDK_WINDOW_TYPE (window) != GDK_WINDOW_CHILD && \
GDK_WINDOW_TYPE (window) != GDK_WINDOW_FOREIGN)
NSView * NSView *
gdk_quartz_window_get_nsview (GdkWindow *window) gdk_quartz_window_get_nsview (GdkWindow *window)
...@@ -2024,3 +2027,24 @@ gdk_window_beep (GdkWindow *window) ...@@ -2024,3 +2027,24 @@ gdk_window_beep (GdkWindow *window)
{ {
gdk_display_beep (_gdk_display); gdk_display_beep (_gdk_display);
} }
void
gdk_window_set_opacity (GdkWindow *window,
gdouble opacity)
{
GdkWindowObject *private = (GdkWindowObject *) window;
GdkWindowImplQuartz *impl = GDK_WINDOW_IMPL_QUARTZ (private->impl);
g_return_if_fail (GDK_IS_WINDOW (window));
g_return_if_fail (WINDOW_IS_TOPLEVEL (window));
if (GDK_WINDOW_DESTROYED (window))
return;
if (opacity < 0)
opacity = 0;
else if (opacity > 1)
opacity = 1;
[impl->toplevel setAlphaValue: opacity];
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment