[Xfce4-commits] <xfce4-panel:master> Remove too new Gtk+ functions.
Nick Schermer
noreply at xfce.org
Sun Jan 23 16:22:02 CET 2011
Updating branch refs/heads/master
to 83eed7240c8cb8b4afbc813141b5337fbd3390c5 (commit)
from 25f101ce32aaf8eefb06b79bf841ee74375f7d7d (commit)
commit 83eed7240c8cb8b4afbc813141b5337fbd3390c5
Author: Nick Schermer <nick at xfce.org>
Date: Sun Jan 23 16:20:58 2011 +0100
Remove too new Gtk+ functions.
plugins/systray/systray-socket.c | 8 +-------
1 files changed, 1 insertions(+), 7 deletions(-)
diff --git a/plugins/systray/systray-socket.c b/plugins/systray/systray-socket.c
index cb875ea..52975c9 100644
--- a/plugins/systray/systray-socket.c
+++ b/plugins/systray/systray-socket.c
@@ -248,7 +248,6 @@ systray_socket_new (GdkScreen *screen,
GdkVisual *visual;
GdkColormap *colormap;
gboolean release_colormap = FALSE;
- gint red_prec, green_prec, blue_prec, depth;
panel_return_val_if_fail (GDK_IS_SCREEN (screen), NULL);
@@ -293,12 +292,7 @@ systray_socket_new (GdkScreen *screen,
g_object_unref (G_OBJECT (colormap));
/* check if there is an alpha channel in the visual */
- gdk_visual_get_red_pixel_details (visual, NULL, NULL, &red_prec);
- gdk_visual_get_green_pixel_details (visual, NULL, NULL, &green_prec);
- gdk_visual_get_blue_pixel_details (visual, NULL, NULL, &blue_prec);
- depth = gdk_visual_get_depth (visual);
-
- if (red_prec + blue_prec + green_prec < depth
+ if (visual->red_prec + visual->blue_prec + visual->green_prec < visual->depth
&& gdk_display_supports_composite (gdk_screen_get_display (screen)))
socket->is_composited = TRUE;
More information about the Xfce4-commits
mailing list