# HG changeset patch # User Richard M. Stallman # Date 803319041 0 # Node ID 2e376a4397bcf63fb19b5fdd6884d24b68eb7571 # Parent 81d9cb6268b8457324a2e93358b48264010fc9c6 (x_report_frame_params, x_set_icon_type, x_set_icon_name) (x_set_name, x_icon, Fx_create_frame): Use moved icon_name field. diff -r 81d9cb6268b8 -r 2e376a4397bc src/xfns.c --- a/src/xfns.c Fri Jun 16 16:10:11 1995 +0000 +++ b/src/xfns.c Fri Jun 16 16:10:41 1995 +0000 @@ -1016,7 +1016,7 @@ sprintf (buf, "%ld", (long) FRAME_X_WINDOW (f)); store_in_alist (alistptr, Qwindow_id, build_string (buf)); - store_in_alist (alistptr, Qicon_name, f->display.x->icon_name); + store_in_alist (alistptr, Qicon_name, f->icon_name); FRAME_SAMPLE_VISIBILITY (f); store_in_alist (alistptr, Qvisibility, (FRAME_VISIBLE_P (f) ? Qt @@ -1462,8 +1462,8 @@ BLOCK_INPUT; if (NILP (arg)) result = x_text_icon (f, - (char *) XSTRING ((!NILP (f->display.x->icon_name) - ? f->display.x->icon_name + (char *) XSTRING ((!NILP (f->icon_name) + ? f->icon_name : f->name))->data); else result = x_bitmap_icon (f, arg); @@ -1519,7 +1519,7 @@ else if (!STRINGP (oldval) && EQ (oldval, Qnil) == EQ (arg, Qnil)) return; - f->display.x->icon_name = arg; + f->icon_name = arg; if (f->display.x->icon_bitmap != 0) return; @@ -1527,8 +1527,8 @@ BLOCK_INPUT; result = x_text_icon (f, - (char *) XSTRING ((!NILP (f->display.x->icon_name) - ? f->display.x->icon_name + (char *) XSTRING ((!NILP (f->icon_name) + ? f->icon_name : f->name))->data); if (result) @@ -1760,9 +1760,7 @@ text.format = 8; text.nitems = XSTRING (name)->size; - icon_name = (!NILP (f->display.x->icon_name) - ? f->display.x->icon_name - : name); + icon_name = (!NILP (f->icon_name) ? f->icon_name : name); icon.value = XSTRING (icon_name)->data; icon.encoding = XA_STRING; @@ -2748,10 +2746,9 @@ ? IconicState : NormalState)); - x_text_icon (f, - (char *) XSTRING ((!NILP (f->display.x->icon_name) - ? f->display.x->icon_name - : f->name))->data); + x_text_icon (f, (char *) XSTRING ((!NILP (f->icon_name) + ? f->icon_name + : f->name))->data); UNBLOCK_INPUT; } @@ -2913,10 +2910,10 @@ bzero (f->display.x, sizeof (struct x_display)); f->display.x->icon_bitmap = -1; - f->display.x->icon_name + f->icon_name = x_get_arg (parms, Qicon_name, "iconName", "Title", string); - if (! STRINGP (f->display.x->icon_name)) - f->display.x->icon_name = Qnil; + if (! STRINGP (f->icon_name)) + f->icon_name = Qnil; FRAME_X_DISPLAY_INFO (f) = dpyinfo; #ifdef MULTI_KBOARD