]> Pileus Git - ~andy/gtk/blobdiff - gdk/gdkxid.c
Use AM_PATH_GLIB instead of glib-config directly
[~andy/gtk] / gdk / gdkxid.c
index 7ee6075c53a76d25a09ed95e1caeff30d6ed7b04..706738673284a3fb7d4353b57c920dc10917eff8 100644 (file)
  * Library General Public License for more details.
  *
  * You should have received a copy of the GNU Library General Public
- * License along with this library; if not, write to the Free
- * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+ * License along with this library; if not, write to the
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
  */
-#include "gdkprivate.h"
 
+/*
+ * Modified by the GTK+ Team and others 1997-1999.  See the AUTHORS
+ * file for a list of people on the GTK+ Team.  See the ChangeLog
+ * files for a list of changes.  These files are distributed with
+ * GTK+ at ftp://ftp.gtk.org/pub/gtk/. 
+ */
+
+#include "gdkprivate.h"
+#include <stdio.h>
 
 static guint gdk_xid_hash    (XID *xid);
 static gint  gdk_xid_compare (XID *a,
                              XID *b);
 
 
-GHashTable *xid_ht = NULL;
+static GHashTable *xid_ht = NULL;
 
 
 void
@@ -52,10 +61,11 @@ gdk_xid_table_remove (XID xid)
 gpointer
 gdk_xid_table_lookup (XID xid)
 {
-  gpointer data;
-
-  data = g_hash_table_lookup (xid_ht, &xid);
+  gpointer data = NULL;
 
+  if (xid_ht)
+    data = g_hash_table_lookup (xid_ht, &xid);
+  
   return data;
 }