[murrine/gtk+3] Ops, now works the RGBA check
- From: Andrea Cimitan <acimitan src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [murrine/gtk+3] Ops, now works the RGBA check
- Date: Wed, 13 Oct 2010 18:16:56 +0000 (UTC)
commit cbc1fd1678fac6f55d3a3f8a698aca5149844511
Author: Andrea Cimitan <andrea cimitan gmail com>
Date: Wed Oct 13 20:16:24 2010 +0200
Ops, now works the RGBA check
src/murrine_style.c | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/src/murrine_style.c b/src/murrine_style.c
index 6125297..8b8d169 100644
--- a/src/murrine_style.c
+++ b/src/murrine_style.c
@@ -76,15 +76,15 @@ boolean murrine_widget_is_rgba (GtkWidget *widget)
if (gdk_screen_is_composited(screen))
{
GdkVisual *visual;
- guint32 *red_mask;
- guint32 *green_mask;
- guint32 *blue_mask;
+ guint32 red_mask;
+ guint32 green_mask;
+ guint32 blue_mask;
visual = gtk_widget_get_visual (widget);
- gdk_visual_get_red_pixel_details (visual, red_mask, NULL, NULL);
- gdk_visual_get_green_pixel_details (visual, green_mask, NULL, NULL);
- gdk_visual_get_blue_pixel_details (visual, blue_mask, NULL, NULL);
+ gdk_visual_get_red_pixel_details (visual, &red_mask, NULL, NULL);
+ gdk_visual_get_green_pixel_details (visual, &green_mask, NULL, NULL);
+ gdk_visual_get_blue_pixel_details (visual, &blue_mask, NULL, NULL);
if (gdk_visual_get_depth (visual) == 32 && (red_mask == 0xff0000 &&
green_mask == 0x00ff00 &&
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]