mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-24 18:55:30 +00:00
Bug 188156 gtk2 build is broken on Solaris (@embedding\browser\gtk\tests)
r=Roland.Mainz@informatik.med.uni-giessen.de, sr=blizzard Sun compiler can't deal with a complicated arg in g_warning()
This commit is contained in:
parent
03366794e8
commit
de6851d996
@ -31,19 +31,20 @@ int error_handler (Display *d, XErrorEvent *e)
|
||||
{
|
||||
if ((e->error_code == BadWindow) || (e->error_code == BadDrawable))
|
||||
{
|
||||
GdkWindow *window = gdk_window_lookup (e->resourceid);
|
||||
XID resourceid = e->resourceid;
|
||||
GdkWindow *window = gdk_window_lookup (resourceid);
|
||||
|
||||
if (window)
|
||||
{
|
||||
if (!g_dataset_get_data (window, "bonobo-error"))
|
||||
{
|
||||
g_dataset_set_data_full (window, "bonobo-error",
|
||||
g_new (gint, 1),
|
||||
(GDestroyNotify)g_free);
|
||||
|
||||
g_warning ("Error accessing window %ld", e->resourceid);
|
||||
}
|
||||
}
|
||||
{
|
||||
if (!g_dataset_get_data (window, "bonobo-error"))
|
||||
{
|
||||
g_dataset_set_data_full (window, "bonobo-error",
|
||||
g_new (gint, 1),
|
||||
(GDestroyNotify)g_free);
|
||||
|
||||
g_warning ("Error accessing window %ld", resourceid);
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user