[gtk+/client-side-windows: 126/284] Update gdk_window_quartz_set_background and gdk_window_quartz_set_back_pixmap
- From: Alexander Larsson <alexl src gnome org>
- To: svn-commits-list gnome org
- Subject: [gtk+/client-side-windows: 126/284] Update gdk_window_quartz_set_background and gdk_window_quartz_set_back_pixmap
- Date: Thu, 2 Apr 2009 14:10:19 -0400 (EDT)
commit 3f7e3a22f58bb2986019744eff9e813d24f78c0d
Author: Richard Hult <richard imendio com>
Date: Mon Jan 5 21:07:13 2009 +0100
Update gdk_window_quartz_set_background and gdk_window_quartz_set_back_pixmap
---
gdk/quartz/gdkwindow-quartz.c | 49 +++++------------------------------------
1 files changed, 6 insertions(+), 43 deletions(-)
diff --git a/gdk/quartz/gdkwindow-quartz.c b/gdk/quartz/gdkwindow-quartz.c
index 494cea7..8a5578b 100644
--- a/gdk/quartz/gdkwindow-quartz.c
+++ b/gdk/quartz/gdkwindow-quartz.c
@@ -1602,22 +1602,9 @@ static void
gdk_window_quartz_set_background (GdkWindow *window,
const GdkColor *color)
{
- GdkWindowObject *private = (GdkWindowObject *)window;
- GdkWindowImplQuartz *impl;
-
- if (GDK_WINDOW_DESTROYED (window))
- return;
-
- impl = GDK_WINDOW_IMPL_QUARTZ (private->impl);
-
- private->bg_color = *color;
-
- if (private->bg_pixmap &&
- private->bg_pixmap != GDK_PARENT_RELATIVE_BG &&
- private->bg_pixmap != GDK_NO_BG)
- g_object_unref (private->bg_pixmap);
-
- private->bg_pixmap = NULL;
+ /* FIXME: We could theoretically set the background color for toplevels
+ * here. (Currently we draw the background before emitting expose events)
+ */
}
static void
@@ -1625,33 +1612,9 @@ gdk_window_quartz_set_back_pixmap (GdkWindow *window,
GdkPixmap *pixmap,
gboolean parent_relative)
{
- GdkWindowObject *private = (GdkWindowObject *)window;
-
- if (GDK_WINDOW_DESTROYED (window))
- return;
-
- if (private->bg_pixmap &&
- private->bg_pixmap != GDK_PARENT_RELATIVE_BG &&
- private->bg_pixmap != GDK_NO_BG)
- g_object_unref (private->bg_pixmap);
-
- if (parent_relative)
- {
- private->bg_pixmap = GDK_PARENT_RELATIVE_BG;
- GDK_NOTE (MISC, g_print (G_STRLOC ": setting background pixmap to parent_relative\n"));
- }
- else
- {
- if (pixmap)
- {
- g_object_ref (pixmap);
- private->bg_pixmap = pixmap;
- }
- else
- {
- private->bg_pixmap = GDK_NO_BG;
- }
- }
+ /* FIXME: Could theoretically set some background image here. (Currently
+ * the back pixmap is drawn before emitting expose events.
+ */
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]