forked from AuroraMiddleware/gtk
If xid_ht hasn't been created yet, don't do the lookup.
Thu Jul 16 20:11:36 1998 Owen Taylor <otaylor@redhat.com> * gdk/gdkxid.c (gdk_xid_table_lookup): If xid_ht hasn't been created yet, don't do the lookup.
This commit is contained in:
parent
2bc6d4548f
commit
656eaa93bf
@ -53,10 +53,11 @@ gdk_xid_table_remove (XID xid)
|
|||||||
gpointer
|
gpointer
|
||||||
gdk_xid_table_lookup (XID xid)
|
gdk_xid_table_lookup (XID xid)
|
||||||
{
|
{
|
||||||
gpointer data;
|
gpointer data = NULL;
|
||||||
|
|
||||||
data = g_hash_table_lookup (xid_ht, &xid);
|
|
||||||
|
|
||||||
|
if (xid_ht)
|
||||||
|
data = g_hash_table_lookup (xid_ht, &xid);
|
||||||
|
|
||||||
return data;
|
return data;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -53,10 +53,11 @@ gdk_xid_table_remove (XID xid)
|
|||||||
gpointer
|
gpointer
|
||||||
gdk_xid_table_lookup (XID xid)
|
gdk_xid_table_lookup (XID xid)
|
||||||
{
|
{
|
||||||
gpointer data;
|
gpointer data = NULL;
|
||||||
|
|
||||||
data = g_hash_table_lookup (xid_ht, &xid);
|
|
||||||
|
|
||||||
|
if (xid_ht)
|
||||||
|
data = g_hash_table_lookup (xid_ht, &xid);
|
||||||
|
|
||||||
return data;
|
return data;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user