(x_set_name_internal): Set icon to `text', derived from name, when
authorJohn Paul Wallington <jpw@pobox.com>
Fri, 2 Jun 2006 21:35:39 +0000 (21:35 +0000)
committerJohn Paul Wallington <jpw@pobox.com>
Fri, 2 Jun 2006 21:35:39 +0000 (21:35 +0000)
frame's icon_name isn't a string rather than only when it is nil.

src/ChangeLog
src/xfns.c

index 0b35223..27040e7 100644 (file)
@@ -1,3 +1,9 @@
+2006-06-02  John Paul Wallington  <jpw@gnu.org>
+
+       * xfns.c (x_set_name_internal): Set icon to `text', derived from
+       name, when frame's icon_name isn't a string rather than only when
+       it is nil.
+
 2006-06-03  Eli Zaretskii  <eliz@gnu.org>
 
        * w32fns.c (x_set_icon_name): Don't use arg if it's not a string
index 9b9ba48..e6772dc 100644 (file)
@@ -1626,7 +1626,7 @@ x_set_name_internal (f, name)
        text.format = 8;
        text.nitems = bytes;
 
-       if (NILP (f->icon_name))
+       if (!STRINGP (f->icon_name))
          {
            icon = text;
          }