|
|
#include <stdlib.h> | #include <stdlib.h> |
#include <fcntl.h> | #include <fcntl.h> |
#include <errno.h> | #include <errno.h> |
|
#include <locale.h> |
#ifdef HAVE_GNOME_PRINT | #ifdef HAVE_GNOME_PRINT |
#include <libgnomeprint/gnome-print.h> | #include <libgnomeprint/gnome-print.h> |
#include <libgnomeprint/gnome-print-master.h> | #include <libgnomeprint/gnome-print-master.h> |
|
Lines 172-179
gstc_parent_add_child (GstcParent *spare
|
Link Here
|
|---|
|
} | } |
if (ci >= 0) | if (ci >= 0) |
{ | { |
g_warning (G_GNUC_PRETTY_FUNCTION "(): can't add known window %ld to %ld", |
g_warning ("%s(): can't add known window %ld to %ld", |
xchild, |
G_GNUC_PRETTY_FUNCTION, xchild, |
GSTC_PARENT_XWINDOW (sparent)); | GSTC_PARENT_XWINDOW (sparent)); |
return; | return; |
} | } |
|
Lines 207-214
gstc_parent_remove_child (GstcParent *sp
|
Link Here
|
|---|
|
/* sanity checks */ | /* sanity checks */ |
if (ci < 0) | if (ci < 0) |
{ | { |
g_warning (G_GNUC_PRETTY_FUNCTION "(): can't remove unknown window %ld", |
g_warning ("%s(): can't remove unknown window %ld", |
xchild); |
G_GNUC_PRETTY_FUNCTION, xchild); |
return; | return; |
} | } |
| |
|
Lines 249-262
gstc_parent_restack_child (GstcParent *s
|
Link Here
|
|---|
|
/* sanity checks */ | /* sanity checks */ |
if (ci < 0) | if (ci < 0) |
{ | { |
g_warning (G_GNUC_PRETTY_FUNCTION "(): can't restack unknown window %ld", |
g_warning ("%s(): can't restack unknown window %ld", |
xchild); |
G_GNUC_PRETTY_FUNCTION, xchild); |
return; | return; |
} | } |
if (xbelow && bi < 0) | if (xbelow && bi < 0) |
{ | { |
g_warning (G_GNUC_PRETTY_FUNCTION "(): can't restack window %ld on top of unknown window %ld", |
g_warning ("%s(): can't restack window %ld on top of unknown window %ld", |
xchild, |
G_GNUC_PRETTY_FUNCTION, xchild, |
xbelow); | xbelow); |
return; | return; |
} | } |
|
Lines 297-306
gstc_parent_event_monitor (GdkXEvent *gd
|
Link Here
|
|---|
|
{ | { |
case CreateNotify: | case CreateNotify: |
if (xevent->xcreatewindow.parent != xparent) | if (xevent->xcreatewindow.parent != xparent) |
g_warning (G_GNUC_PRETTY_FUNCTION "(): now what is THIS? " |
g_warning ("%s(): now what is THIS? " |
"i receive a SubstructureNotify XCreateWindowEvent " | "i receive a SubstructureNotify XCreateWindowEvent " |
"for a *foreign* child (%ld)??? X is on drugs!", | "for a *foreign* child (%ld)??? X is on drugs!", |
xevent->xcreatewindow.window); |
G_GNUC_PRETTY_FUNCTION, xevent->xcreatewindow.window); |
else | else |
gstc_parent_add_child (sparent, xevent->xcreatewindow.window); | gstc_parent_add_child (sparent, xevent->xcreatewindow.window); |
break; | break; |
|
|
/* setup the root window event monitor */ | /* setup the root window event monitor */ |
window = gdk_window_ref_from_xid (GDK_ROOT_WINDOW ()); | window = gdk_window_ref_from_xid (GDK_ROOT_WINDOW ()); |
if (!window) | if (!window) |
g_error (G_GNUC_PRETTY_FUNCTION "(): root window id %ld invalid? bad bad...", |
g_error ("%s(): root window id %ld invalid? bad bad...", |
GDK_ROOT_WINDOW ()); |
G_GNUC_PRETTY_FUNCTION, GDK_ROOT_WINDOW ()); |
gdk_window_add_filter (window, | gdk_window_add_filter (window, |
root_event_monitor, | root_event_monitor, |
window); | window); |
|
Lines 390-403
get_typed_property_data (Display *xdispl
|
Link Here
|
|---|
|
} | } |
if (!abort && bytes_after_return) | if (!abort && bytes_after_return) |
{ | { |
g_warning (G_GNUC_PRETTY_FUNCTION "(): Eeek, property has more than %u bytes, stored on harddisk?", |
g_warning ("%s(): Eeek, property has more than %u bytes, stored on harddisk?", |
prop_buffer_lengh); |
G_GNUC_PRETTY_FUNCTION, prop_buffer_lengh); |
abort++; | abort++; |
} | } |
if (!abort && expected_format && expected_format != format_returned) | if (!abort && expected_format && expected_format != format_returned) |
{ | { |
g_warning (G_GNUC_PRETTY_FUNCTION "(): Expected format (%u) unmatched (%d), programmer was drunk?", |
g_warning ("%s(): Expected format (%u) unmatched (%d), programmer was drunk?", |
expected_format, format_returned); |
G_GNUC_PRETTY_FUNCTION, expected_format, format_returned); |
abort++; | abort++; |
} | } |
if (!abort && prop_data && nitems_return && format_returned) | if (!abort && prop_data && nitems_return && format_returned) |
|
Lines 648-654
get_task_root_and_frame (GwmhTask *task)
|
Link Here
|
|---|
|
xframe = None; | xframe = None; |
/* aparently this can happen if a window is destructed shortly after | /* aparently this can happen if a window is destructed shortly after |
* creation, just be silent. | * creation, just be silent. |
* g_warning (G_GNUC_PRETTY_FUNCTION "(): task window id %ld invalid?", task->xwin); |
* g_warning ("%s(): task window id %ld invalid?", |
|
* G_GNUC_PRETTY_FUNCTION, task->xwin); |
*/ | */ |
} | } |
| |
|
Lines 1586-1593
gwmh_desk_notifier_remove (guint id)
|
Link Here
|
|---|
|
g_return_if_fail (id > 0); | g_return_if_fail (id > 0); |
| |
if (!g_hook_destroy (&gwmh_desk_hook_list, id)) | if (!g_hook_destroy (&gwmh_desk_hook_list, id)) |
g_warning (G_GNUC_PRETTY_FUNCTION "(): unable to remove notifier (%d)", |
g_warning ("%s(): unable to remove notifier (%d)", |
id); |
G_GNUC_PRETTY_FUNCTION, id); |
} | } |
| |
void | void |
|
Lines 1596-1603
gwmh_task_notifier_remove (guint id)
|
Link Here
|
|---|
|
g_return_if_fail (id > 0); | g_return_if_fail (id > 0); |
| |
if (!g_hook_destroy (&gwmh_task_hook_list, id)) | if (!g_hook_destroy (&gwmh_task_hook_list, id)) |
g_warning (G_GNUC_PRETTY_FUNCTION "(): unable to remove notifier (%d)", |
g_warning ("%s(): unable to remove notifier (%d)", |
id); |
G_GNUC_PRETTY_FUNCTION, id); |
} | } |
| |
static gboolean | static gboolean |
|
Lines 1624-1631
gwmh_desk_notifier_remove_func (GwmhDesk
|
Link Here
|
|---|
|
if (hook) | if (hook) |
g_hook_destroy_link (&gwmh_desk_hook_list, hook); | g_hook_destroy_link (&gwmh_desk_hook_list, hook); |
else | else |
g_warning (G_GNUC_PRETTY_FUNCTION "(): unable to remove notifier <%p> (%p)", |
g_warning ("%s(): unable to remove notifier <%p> (%p)", |
func, func_data); |
G_GNUC_PRETTY_FUNCTION, func, func_data); |
} | } |
| |
void | void |
|
Lines 1643-1650
gwmh_task_notifier_remove_func (GwmhTask
|
Link Here
|
|---|
|
if (hook) | if (hook) |
g_hook_destroy_link (&gwmh_task_hook_list, hook); | g_hook_destroy_link (&gwmh_task_hook_list, hook); |
else | else |
g_warning (G_GNUC_PRETTY_FUNCTION "(): unable to remove notifier <%p> (%p)", |
g_warning ("%s(): unable to remove notifier <%p> (%p)", |
func, func_data); |
G_GNUC_PRETTY_FUNCTION, func, func_data); |
} | } |
| |
static gboolean | static gboolean |
|
Lines 322-340
get_typed_property_data (Display *xdispl
|
Link Here
|
|---|
|
requested_type != AnyPropertyType && | requested_type != AnyPropertyType && |
requested_type != type_returned) | requested_type != type_returned) |
{ | { |
g_warning (G_GNUC_PRETTY_FUNCTION "(): Property has wrong type, probably on crack"); |
g_warning ("%s(): Property has wrong type, probably on crack", |
|
G_GNUC_PRETTY_FUNCTION); |
abort++; | abort++; |
} | } |
if (!abort && bytes_after_return) | if (!abort && bytes_after_return) |
{ | { |
g_warning (G_GNUC_PRETTY_FUNCTION "(): Eeek, property has more than %u bytes, stored on harddisk?", |
g_warning ("%s(): Eeek, property has more than %u bytes, stored on harddisk?", |
prop_buffer_lengh); |
G_GNUC_PRETTY_FUNCTION, prop_buffer_lengh); |
abort++; | abort++; |
} | } |
if (!abort && expected_format && expected_format != format_returned) | if (!abort && expected_format && expected_format != format_returned) |
{ | { |
g_warning (G_GNUC_PRETTY_FUNCTION "(): Expected format (%u) unmatched (%d), programmer was drunk?", |
g_warning ("%s(): Expected format (%u) unmatched (%d), programmer was drunk?", |
expected_format, format_returned); |
G_GNUC_PRETTY_FUNCTION, expected_format, format_returned); |
abort++; | abort++; |
} | } |
if (!abort && prop_data && nitems_return && format_returned) | if (!abort && prop_data && nitems_return && format_returned) |