[gtk+] Remove XID_FONT_BIT
- From: Javier Jardón <jjardon src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Remove XID_FONT_BIT
- Date: Mon, 28 Jun 2010 21:44:53 +0000 (UTC)
commit b4ed51fd93760af43f09735b4f26506d9b172709
Author: Javier Jardón <jjardon gnome org>
Date: Fri Jun 25 02:15:36 2010 +0200
Remove XID_FONT_BIT
gdk/x11/gdkprivate-x11.h | 1 -
gdk/x11/gdkxid.c | 7 +------
2 files changed, 1 insertions(+), 7 deletions(-)
---
diff --git a/gdk/x11/gdkprivate-x11.h b/gdk/x11/gdkprivate-x11.h
index 00cde1b..2e2cdc0 100644
--- a/gdk/x11/gdkprivate-x11.h
+++ b/gdk/x11/gdkprivate-x11.h
@@ -86,7 +86,6 @@ struct _GdkVisualPrivate
GdkScreen *screen;
};
-#define XID_FONT_BIT (1<<31)
void _gdk_xid_table_insert (GdkDisplay *display,
XID *xid,
diff --git a/gdk/x11/gdkxid.c b/gdk/x11/gdkxid.c
index 85c82bb..a4a2cd8 100644
--- a/gdk/x11/gdkxid.c
+++ b/gdk/x11/gdkxid.c
@@ -36,11 +36,6 @@ static gboolean gdk_xid_equal (XID *a,
XID *b);
-/* The 3 high bits of XIDs are unused. We use one to mark fonts,
- * since we must be able to skip fonts when iterating over all XIDs.
- */
-#define XID_FONT_BIT (1<<31)
-
void
_gdk_xid_table_insert (GdkDisplay *display,
XID *xid,
@@ -135,7 +130,7 @@ static gboolean
gdk_xid_equal (XID *a,
XID *b)
{
- return ((*a & ~XID_FONT_BIT) == (*b & ~XID_FONT_BIT));
+ return (*a == *b);
}
#define __GDK_XID_C__
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]