[gnome-power-manager/gnome-2-32] Re-enable deprecated GDK functions for brightness applet
- From: Martin Pitt <martinpitt src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-power-manager/gnome-2-32] Re-enable deprecated GDK functions for brightness applet
- Date: Thu, 19 Aug 2010 15:09:49 +0000 (UTC)
commit 81c4c85f4efbac2ec5720abf9f3398492857c752
Author: Martin Pitt <martin pitt ubuntu com>
Date: Thu Aug 19 17:06:55 2010 +0200
Re-enable deprecated GDK functions for brightness applet
brightness-applet.c: In function â??gpm_applet_draw_cbâ??:
brightness-applet.c:282: warning: implicit declaration of function â??gdk_gc_newâ??
brightness-applet.c:282: warning: assignment makes pointer from integer without a cast
brightness-applet.c:288: warning: implicit declaration of function â??gdk_draw_drawableâ??
brightness-applet.c:293: warning: implicit declaration of function â??gdk_gc_set_rgb_fg_colorâ??
brightness-applet.c:294: warning: implicit declaration of function â??gdk_gc_set_fillâ??
brightness-applet.c:295: warning: implicit declaration of function â??gdk_draw_rectangleâ??
brightness-applet.c:307: warning: implicit declaration of function â??gdk_draw_pixbufâ??
The long-term fix is to port the applet from gdk_gc_* to cairo, but implicit
pointer conversions cause crashes on x86_64 platforms, so re-enable the
functions for now.
applets/brightness/brightness-applet.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/applets/brightness/brightness-applet.c b/applets/brightness/brightness-applet.c
index fa82a93..118864c 100644
--- a/applets/brightness/brightness-applet.c
+++ b/applets/brightness/brightness-applet.c
@@ -25,6 +25,9 @@
# include <config.h>
#endif
+/* FIXME: gdk_gc_* needs porting to cairo */
+#undef GDK_DISABLE_DEPRECATED
+
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]