Lines 230-237
gwmh_init (void)
Link Here
|
230 |
/* setup the root window event monitor */ |
230 |
/* setup the root window event monitor */ |
231 |
window = gdk_window_ref_from_xid (GDK_ROOT_WINDOW ()); |
231 |
window = gdk_window_ref_from_xid (GDK_ROOT_WINDOW ()); |
232 |
if (!window) |
232 |
if (!window) |
233 |
g_error (G_GNUC_PRETTY_FUNCTION "(): root window id %ld invalid? bad bad...", |
233 |
g_error ("%s(): root window id %ld invalid? bad bad...", |
234 |
GDK_ROOT_WINDOW ()); |
234 |
G_GNUC_PRETTY_FUNCTION, GDK_ROOT_WINDOW ()); |
235 |
gdk_window_add_filter (window, |
235 |
gdk_window_add_filter (window, |
236 |
root_event_monitor, |
236 |
root_event_monitor, |
237 |
window); |
237 |
window); |
Lines 390-403
get_typed_property_data (Display *xdispl
Link Here
|
390 |
} |
390 |
} |
391 |
if (!abort && bytes_after_return) |
391 |
if (!abort && bytes_after_return) |
392 |
{ |
392 |
{ |
393 |
g_warning (G_GNUC_PRETTY_FUNCTION "(): Eeek, property has more than %u bytes, stored on harddisk?", |
393 |
g_warning ("%s(): Eeek, property has more than %u bytes, stored on harddisk?", |
394 |
prop_buffer_lengh); |
394 |
G_GNUC_PRETTY_FUNCTION, prop_buffer_lengh); |
395 |
abort++; |
395 |
abort++; |
396 |
} |
396 |
} |
397 |
if (!abort && expected_format && expected_format != format_returned) |
397 |
if (!abort && expected_format && expected_format != format_returned) |
398 |
{ |
398 |
{ |
399 |
g_warning (G_GNUC_PRETTY_FUNCTION "(): Expected format (%u) unmatched (%d), programmer was drunk?", |
399 |
g_warning ("%s(): Expected format (%u) unmatched (%d), programmer was drunk?", |
400 |
expected_format, format_returned); |
400 |
G_GNUC_PRETTY_FUNCTION, expected_format, format_returned); |
401 |
abort++; |
401 |
abort++; |
402 |
} |
402 |
} |
403 |
if (!abort && prop_data && nitems_return && format_returned) |
403 |
if (!abort && prop_data && nitems_return && format_returned) |
Lines 648-654
get_task_root_and_frame (GwmhTask *task)
Link Here
|
648 |
xframe = None; |
648 |
xframe = None; |
649 |
/* aparently this can happen if a window is destructed shortly after |
649 |
/* aparently this can happen if a window is destructed shortly after |
650 |
* creation, just be silent. |
650 |
* creation, just be silent. |
651 |
* g_warning (G_GNUC_PRETTY_FUNCTION "(): task window id %ld invalid?", task->xwin); |
651 |
* g_warning ("%s(): task window id %ld invalid?", |
|
|
652 |
* G_GNUC_PRETTY_FUNCTION, task->xwin); |
652 |
*/ |
653 |
*/ |
653 |
} |
654 |
} |
654 |
|
655 |
|
Lines 1586-1593
gwmh_desk_notifier_remove (guint id)
Link Here
|
1586 |
g_return_if_fail (id > 0); |
1587 |
g_return_if_fail (id > 0); |
1587 |
|
1588 |
|
1588 |
if (!g_hook_destroy (&gwmh_desk_hook_list, id)) |
1589 |
if (!g_hook_destroy (&gwmh_desk_hook_list, id)) |
1589 |
g_warning (G_GNUC_PRETTY_FUNCTION "(): unable to remove notifier (%d)", |
1590 |
g_warning ("%s(): unable to remove notifier (%d)", |
1590 |
id); |
1591 |
G_GNUC_PRETTY_FUNCTION, id); |
1591 |
} |
1592 |
} |
1592 |
|
1593 |
|
1593 |
void |
1594 |
void |
Lines 1596-1603
gwmh_task_notifier_remove (guint id)
Link Here
|
1596 |
g_return_if_fail (id > 0); |
1597 |
g_return_if_fail (id > 0); |
1597 |
|
1598 |
|
1598 |
if (!g_hook_destroy (&gwmh_task_hook_list, id)) |
1599 |
if (!g_hook_destroy (&gwmh_task_hook_list, id)) |
1599 |
g_warning (G_GNUC_PRETTY_FUNCTION "(): unable to remove notifier (%d)", |
1600 |
g_warning ("%s(): unable to remove notifier (%d)", |
1600 |
id); |
1601 |
G_GNUC_PRETTY_FUNCTION, id); |
1601 |
} |
1602 |
} |
1602 |
|
1603 |
|
1603 |
static gboolean |
1604 |
static gboolean |
Lines 1624-1631
gwmh_desk_notifier_remove_func (GwmhDesk
Link Here
|
1624 |
if (hook) |
1625 |
if (hook) |
1625 |
g_hook_destroy_link (&gwmh_desk_hook_list, hook); |
1626 |
g_hook_destroy_link (&gwmh_desk_hook_list, hook); |
1626 |
else |
1627 |
else |
1627 |
g_warning (G_GNUC_PRETTY_FUNCTION "(): unable to remove notifier <%p> (%p)", |
1628 |
g_warning ("%s(): unable to remove notifier <%p> (%p)", |
1628 |
func, func_data); |
1629 |
G_GNUC_PRETTY_FUNCTION, func, func_data); |
1629 |
} |
1630 |
} |
1630 |
|
1631 |
|
1631 |
void |
1632 |
void |
Lines 1643-1650
gwmh_task_notifier_remove_func (GwmhTask
Link Here
|
1643 |
if (hook) |
1644 |
if (hook) |
1644 |
g_hook_destroy_link (&gwmh_task_hook_list, hook); |
1645 |
g_hook_destroy_link (&gwmh_task_hook_list, hook); |
1645 |
else |
1646 |
else |
1646 |
g_warning (G_GNUC_PRETTY_FUNCTION "(): unable to remove notifier <%p> (%p)", |
1647 |
g_warning ("%s(): unable to remove notifier <%p> (%p)", |
1647 |
func, func_data); |
1648 |
G_GNUC_PRETTY_FUNCTION, func, func_data); |
1648 |
} |
1649 |
} |
1649 |
|
1650 |
|
1650 |
static gboolean |
1651 |
static gboolean |