Fix only_if_exists parameters for XInternAtom
2000-10-21 Bradford Hovinen <hovinen@helixcode.com> * capplets/new-background-properties/applier.c (is_nautilus_running): Fix only_if_exists parameters for XInternAtom
This commit is contained in:
parent
edc0b7480c
commit
655abbdda8
2 changed files with 4 additions and 3 deletions
|
@ -10,6 +10,7 @@
|
||||||
(renderer_render_to_screen): Set root pixmap to None (i.e.,
|
(renderer_render_to_screen): Set root pixmap to None (i.e.,
|
||||||
destroy root pixmap) if we're rendering a solid background to the
|
destroy root pixmap) if we're rendering a solid background to the
|
||||||
root window
|
root window
|
||||||
|
(is_nautilus_running): Fix only_if_exists parameters for XInternAtom
|
||||||
|
|
||||||
2000-10-16 Stanislav Brabec <utx@penguin.cz>
|
2000-10-16 Stanislav Brabec <utx@penguin.cz>
|
||||||
|
|
||||||
|
|
|
@ -1146,7 +1146,7 @@ is_nautilus_running (void)
|
||||||
gint error;
|
gint error;
|
||||||
|
|
||||||
window_id_atom = XInternAtom (GDK_DISPLAY (),
|
window_id_atom = XInternAtom (GDK_DISPLAY (),
|
||||||
"NAUTILUS_DESKTOP_WINDOW_ID", False);
|
"NAUTILUS_DESKTOP_WINDOW_ID", True);
|
||||||
|
|
||||||
if (window_id_atom == None) return FALSE;
|
if (window_id_atom == None) return FALSE;
|
||||||
|
|
||||||
|
@ -1163,12 +1163,12 @@ is_nautilus_running (void)
|
||||||
if (actual_type != XA_WINDOW) return FALSE;
|
if (actual_type != XA_WINDOW) return FALSE;
|
||||||
if (actual_format != 32) return FALSE;
|
if (actual_format != 32) return FALSE;
|
||||||
|
|
||||||
wmclass_atom = XInternAtom (GDK_DISPLAY (), "WM_CLASS");
|
wmclass_atom = XInternAtom (GDK_DISPLAY (), "WM_CLASS", False);
|
||||||
|
|
||||||
gdk_error_trap_push ();
|
gdk_error_trap_push ();
|
||||||
|
|
||||||
retval = XGetWindowProperty (GDK_DISPLAY (), nautilus_xid,
|
retval = XGetWindowProperty (GDK_DISPLAY (), nautilus_xid,
|
||||||
wmclass_atom, 0, 23, False, XA_STRING,
|
wmclass_atom, 0, 24, False, XA_STRING,
|
||||||
&actual_type, &actual_format, &nitems,
|
&actual_type, &actual_format, &nitems,
|
||||||
&bytes_after, &data);
|
&bytes_after, &data);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue