Author: dannym
Date: 2007-02-05 23:53:23 +0000 (Mon, 05 Feb 2007)
New Revision: 24860
Modified:
libxfcegui4/branches/xfce_4_4/libxfcegui4/netk-xutils.c
libxfcegui4/branches/xfce_4_4/libxfcegui4/netk-xutils.h
Log:
back out p_netk_get_icon_geometry
Modified: libxfcegui4/branches/xfce_4_4/libxfcegui4/netk-xutils.c
===================================================================
--- libxfcegui4/branches/xfce_4_4/libxfcegui4/netk-xutils.c 2007-02-05
23:39:59 UTC (rev 24859)
+++ libxfcegui4/branches/xfce_4_4/libxfcegui4/netk-xutils.c 2007-02-05
23:53:23 UTC (rev 24860)
@@ -2177,40 +2177,6 @@
p_netk_error_trap_pop ();
}
-gboolean
-p_netk_get_icon_geometry (Window xwindow, int* x, int* y, int* width, int*
height)
-{
- Atom type;
- int format;
- gulong nitems;
- gulong bytes_after;
- gulong *data;
- int err, result;
-
- p_netk_error_trap_push ();
- type = None;
- result = XGetWindowProperty (gdk_display, xwindow, p_netk_atom_get
("_NET_WM_ICON_GEOMETRY"), 0, 4, False, XA_CARDINAL, &type, &format, &nitems,
&bytes_after, (guchar **)&data);
- err = p_netk_error_trap_pop ();
-
- if (err != Success || result != Success)
- return FALSE;
-
- if (type != XA_CARDINAL || nitems != 4)
- {
- XFree (data);
- return FALSE;
- }
-
- *x = (int) data[0];
- *y = (int) data[1];
- *width = (int) data[2];
- *height = (int) data[3];
-
- XFree (data);
-
- return TRUE;
-}
-
void
p_netk_set_type_hint (Window xwindow, NetkWindowType type)
{
Modified: libxfcegui4/branches/xfce_4_4/libxfcegui4/netk-xutils.h
===================================================================
--- libxfcegui4/branches/xfce_4_4/libxfcegui4/netk-xutils.h 2007-02-05
23:39:59 UTC (rev 24859)
+++ libxfcegui4/branches/xfce_4_4/libxfcegui4/netk-xutils.h 2007-02-05
23:53:23 UTC (rev 24860)
@@ -140,8 +140,6 @@
void p_netk_set_icon_geometry (Window xwindow, int x, int y, int width,
int height);
-gboolean p_netk_get_icon_geometry (Window xwindow, int* x, int* y, int* width,
int* height);
-
/* p_netk_set_dock_type_hint() kept for backward compat */
#define p_netk_set_dock_type_hint (w) \
p_netk_set_type_hint (w, NETK_WINDOW_DOCK)
_______________________________________________
Xfce4-commits mailing list
[email protected]
http://foo-projects.org/mailman/listinfo/xfce4-commits