]> code.delx.au - gnu-emacs/commitdiff
* xfns.c (x_set_icon_name): No-op if arg is non-nil and not a
authorChong Yidong <cyd@stupidchicken.com>
Fri, 2 Jun 2006 16:35:59 +0000 (16:35 +0000)
committerChong Yidong <cyd@stupidchicken.com>
Fri, 2 Jun 2006 16:35:59 +0000 (16:35 +0000)
string.

src/ChangeLog
src/xfns.c

index dccebac3ec56cd3522b828303fc4f6b9fc115c16..06144ce549885adbe30bc8acfdceff48808521c4 100644 (file)
@@ -1,3 +1,8 @@
+2006-06-02  Chong Yidong  <cyd@stupidchicken.com>
+
+       * xfns.c (x_set_icon_name): No-op if arg is non-nil and not a
+       string.
+
 2006-06-02  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
 
        * xdisp.c (next_element_from_composition): Set it->object to
index 396ef8ceb641261932bf2fb298a03a2b28d2cc10..9b9ba48ba8287ba6f2b69dc14c5beea38130a741 100644 (file)
@@ -1249,7 +1249,7 @@ x_set_icon_name (f, arg, oldval)
       if (STRINGP (oldval) && EQ (Fstring_equal (oldval, arg), Qt))
        return;
     }
-  else if (!STRINGP (oldval) && EQ (oldval, Qnil) == EQ (arg, Qnil))
+  else if (!NILP (arg) || NILP (oldval))
     return;
 
   f->icon_name = arg;