summaryrefslogtreecommitdiff
path: root/cwmcc/root_props.c
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-04-12 21:02:41 +0000
committerDana Jansens <danakj@orodu.net>2003-04-12 21:02:41 +0000
commitfd5784c082de724b9ccde01977eac1e27a121201 (patch)
tree8cbd1ed25abceadd0a26a76cd32a10e5b3c43592 /cwmcc/root_props.c
parent4d510a8a922c90a2076e2a222e499f033e627eb8 (diff)
proper cwmcc_ prefixing.
add gulong *num and gulong num to funciton params where needed. cant use 0 to terminate an array of numbers
Diffstat (limited to 'cwmcc/root_props.c')
-rw-r--r--cwmcc/root_props.c56
1 files changed, 28 insertions, 28 deletions
diff --git a/cwmcc/root_props.c b/cwmcc/root_props.c
index daaf580e..52b2b531 100644
--- a/cwmcc/root_props.c
+++ b/cwmcc/root_props.c
@@ -9,8 +9,8 @@ void cwmcc_root_get_supported(Window win, Atom **atoms)
{
gulong num;
- if (!prop_get_array32(win, CWMCC_ATOM(root, net_supported),
- CWMCC_ATOM(type, atom), atoms, &num)) {
+ if (!cwmcc_prop_get_array32(win, CWMCC_ATOM(root, net_supported),
+ CWMCC_ATOM(type, atom), atoms, &num)) {
g_warning("Failed to read NET_SUPPORTED from 0x%lx", win);
*atoms = NULL;
}
@@ -20,8 +20,8 @@ void cwmcc_root_get_client_list(Window win, Window **windows)
{
gulong num;
- if (!prop_get_array32(win, CWMCC_ATOM(root, net_client_list),
- CWMCC_ATOM(type, window), windows, &num)) {
+ if (!cwmcc_prop_get_array32(win, CWMCC_ATOM(root, net_client_list),
+ CWMCC_ATOM(type, window), windows, &num)) {
g_warning("Failed to read NET_CLIENT_LIST from 0x%lx", win);
*windows = NULL;
}
@@ -31,8 +31,8 @@ void cwmcc_root_get_client_list_stacking(Window win, Window **windows)
{
gulong num;
- if (!prop_get_array32(win, CWMCC_ATOM(root, net_client_list_stacking),
- CWMCC_ATOM(type, window), windows, &num)) {
+ if (!cwmcc_prop_get_array32(win,CWMCC_ATOM(root, net_client_list_stacking),
+ CWMCC_ATOM(type, window), windows, &num)) {
g_warning("Failed to read NET_CLIENT_LIST_STACKING from 0x%lx", win);
*windows = NULL;
}
@@ -40,8 +40,8 @@ void cwmcc_root_get_client_list_stacking(Window win, Window **windows)
void cwmcc_root_get_number_of_desktops(Window win, gulong *desktops)
{
- if (!prop_get32(win, CWMCC_ATOM(root, net_number_of_desktops),
- CWMCC_ATOM(type, cardinal), desktops)) {
+ if (!cwmcc_prop_get32(win, CWMCC_ATOM(root, net_number_of_desktops),
+ CWMCC_ATOM(type, cardinal), desktops)) {
g_warning("Failed to read NET_NUMBER_OF_DESKTOPS from 0x%lx", win);
*desktops = 1;
}
@@ -51,8 +51,8 @@ void cwmcc_root_get_desktop_geometry(Window win, gulong *w, gulong *h)
{
gulong *data = NULL, num;
- if (!prop_get_array32(win, CWMCC_ATOM(root, net_desktop_geometry),
- CWMCC_ATOM(type, cardinal), &data, &num)) {
+ if (!cwmcc_prop_get_array32(win, CWMCC_ATOM(root, net_desktop_geometry),
+ CWMCC_ATOM(type, cardinal), &data, &num)) {
g_warning("Failed to read NET_DESKTOP_GEOMETRY from 0x%lx", win);
*w = *h = 0;
} else if (num != 2) {
@@ -69,8 +69,8 @@ void cwmcc_root_get_desktop_viewport(Window win, gulong *x, gulong *y)
{
gulong *data = NULL, num;
- if (!prop_get_array32(win, CWMCC_ATOM(root, net_desktop_viewport),
- CWMCC_ATOM(type, cardinal), &data, &num)) {
+ if (!cwmcc_prop_get_array32(win, CWMCC_ATOM(root, net_desktop_viewport),
+ CWMCC_ATOM(type, cardinal), &data, &num)) {
g_warning("Failed to read NET_DESKTOP_VIEWPORT from 0x%lx", win);
*x = *y = 0;
} else if (num != 2) {
@@ -85,8 +85,8 @@ void cwmcc_root_get_desktop_viewport(Window win, gulong *x, gulong *y)
void cwmcc_root_get_current_desktop(Window win, gulong *desktop)
{
- if (!prop_get32(win, CWMCC_ATOM(root, net_current_desktop),
- CWMCC_ATOM(type, cardinal), desktop)) {
+ if (!cwmcc_prop_get32(win, CWMCC_ATOM(root, net_current_desktop),
+ CWMCC_ATOM(type, cardinal), desktop)) {
g_warning("Failed to read NET_CURRENT_DESKTOP from 0x%lx", win);
*desktop = 0;
}
@@ -94,8 +94,8 @@ void cwmcc_root_get_current_desktop(Window win, gulong *desktop)
void cwmcc_root_get_desktop_names(Window win, char ***names)
{
- if (!prop_get_strings_utf8(win,
- CWMCC_ATOM(root, net_desktop_names), names)) {
+ if (!cwmcc_prop_get_strings_utf8(win, CWMCC_ATOM(root, net_desktop_names),
+ names)) {
g_warning("Failed to read NET_DESKTOP_NAMES from 0x%lx", win);
*names = NULL;
}
@@ -103,8 +103,8 @@ void cwmcc_root_get_desktop_names(Window win, char ***names)
void cwmcc_root_get_active_window(Window win, Window *window)
{
- if (!prop_get32(win, CWMCC_ATOM(root, net_active_window),
- CWMCC_ATOM(type, window), window)) {
+ if (!cwmcc_prop_get32(win, CWMCC_ATOM(root, net_active_window),
+ CWMCC_ATOM(type, window), window)) {
g_warning("Failed to read NET_ACTIVE_WINDOW from 0x%lx", win);
*window = None;
}
@@ -118,8 +118,8 @@ void cwmcc_root_get_workarea(Window win, int **x, int **y, int **w, int **h)
/* need the number of desktops */
cwmcc_root_get_number_of_desktops(win, &desks);
- if (!prop_get_array32(win, CWMCC_ATOM(root, net_workarea),
- CWMCC_ATOM(type, cardinal), &data, &num)) {
+ if (!cwmcc_prop_get_array32(win, CWMCC_ATOM(root, net_workarea),
+ CWMCC_ATOM(type, cardinal), &data, &num)) {
g_warning("Failed to read NET_DESKTOP_LAYOUT from 0x%lx", win);
} else if (num != 4 * desks) {
g_warning("Read invalid NET_DESKTOP_LAYOUT from 0x%lx", win);
@@ -139,8 +139,8 @@ void cwmcc_root_get_workarea(Window win, int **x, int **y, int **w, int **h)
void cwmcc_root_get_supporting_wm_check(Window win, Window *window)
{
- if (!prop_get32(win, CWMCC_ATOM(root, net_supporting_wm_check),
- CWMCC_ATOM(type, window), window)) {
+ if (!cwmcc_prop_get32(win, CWMCC_ATOM(root, net_supporting_wm_check),
+ CWMCC_ATOM(type, window), window)) {
g_warning("Failed to read NET_SUPPORTING_WM_CHECK from 0x%lx", win);
*window = None;
}
@@ -160,8 +160,8 @@ void cwmcc_root_get_desktop_layout(Window win,
layout->rows = 1;
layout->columns = desks;
- if (!prop_get_array32(win, CWMCC_ATOM(root, net_desktop_layout),
- CWMCC_ATOM(type, cardinal), &data, &num)) {
+ if (!cwmcc_prop_get_array32(win, CWMCC_ATOM(root, net_desktop_layout),
+ CWMCC_ATOM(type, cardinal), &data, &num)) {
g_warning("Failed to read NET_DESKTOP_LAYOUT from 0x%lx", win);
} else if (num != 4) {
g_warning("Read invalid NET_DESKTOP_LAYOUT from 0x%lx", win);
@@ -201,8 +201,8 @@ void cwmcc_root_get_showing_desktop(Window win, gboolean *showing)
{
gulong a;
- if (!prop_get32(win, CWMCC_ATOM(root, net_showing_desktop),
- CWMCC_ATOM(type, cardinal), &a)) {
+ if (!cwmcc_prop_get32(win, CWMCC_ATOM(root, net_showing_desktop),
+ CWMCC_ATOM(type, cardinal), &a)) {
g_warning("Failed to read NET_SHOWING_DESKTOP from 0x%lx", win);
a = FALSE;
}
@@ -211,8 +211,8 @@ void cwmcc_root_get_showing_desktop(Window win, gboolean *showing)
void cwmcc_root_get_openbox_pid(Window win, gulong *pid)
{
- if (!prop_get32(win, CWMCC_ATOM(root, openbox_pid),
- CWMCC_ATOM(type, cardinal), pid)) {
+ if (!cwmcc_prop_get32(win, CWMCC_ATOM(root, openbox_pid),
+ CWMCC_ATOM(type, cardinal), pid)) {
g_warning("Failed to read OPENBOX_PID from 0x%lx", win);
*pid = 0;
}