diff options
| author | Richard M. Stallman | 1995-06-16 16:10:41 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1995-06-16 16:10:41 +0000 |
| commit | f468da95a7b64e1cd5c0b087a2f11996dc445ff2 (patch) | |
| tree | de02fbdd751438b1c8425767392fa930a0ff812f | |
| parent | 40d0849957e5ed1e6533703be883032a0e3f1c4a (diff) | |
| download | emacs-f468da95a7b64e1cd5c0b087a2f11996dc445ff2.tar.gz emacs-f468da95a7b64e1cd5c0b087a2f11996dc445ff2.zip | |
(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.
| -rw-r--r-- | src/xfns.c | 29 |
1 files changed, 13 insertions, 16 deletions
diff --git a/src/xfns.c b/src/xfns.c index df0ded50a21..b87bf6480d0 100644 --- a/src/xfns.c +++ b/src/xfns.c | |||
| @@ -1016,7 +1016,7 @@ x_report_frame_params (f, alistptr) | |||
| 1016 | sprintf (buf, "%ld", (long) FRAME_X_WINDOW (f)); | 1016 | sprintf (buf, "%ld", (long) FRAME_X_WINDOW (f)); |
| 1017 | store_in_alist (alistptr, Qwindow_id, | 1017 | store_in_alist (alistptr, Qwindow_id, |
| 1018 | build_string (buf)); | 1018 | build_string (buf)); |
| 1019 | store_in_alist (alistptr, Qicon_name, f->display.x->icon_name); | 1019 | store_in_alist (alistptr, Qicon_name, f->icon_name); |
| 1020 | FRAME_SAMPLE_VISIBILITY (f); | 1020 | FRAME_SAMPLE_VISIBILITY (f); |
| 1021 | store_in_alist (alistptr, Qvisibility, | 1021 | store_in_alist (alistptr, Qvisibility, |
| 1022 | (FRAME_VISIBLE_P (f) ? Qt | 1022 | (FRAME_VISIBLE_P (f) ? Qt |
| @@ -1462,8 +1462,8 @@ x_set_icon_type (f, arg, oldval) | |||
| 1462 | BLOCK_INPUT; | 1462 | BLOCK_INPUT; |
| 1463 | if (NILP (arg)) | 1463 | if (NILP (arg)) |
| 1464 | result = x_text_icon (f, | 1464 | result = x_text_icon (f, |
| 1465 | (char *) XSTRING ((!NILP (f->display.x->icon_name) | 1465 | (char *) XSTRING ((!NILP (f->icon_name) |
| 1466 | ? f->display.x->icon_name | 1466 | ? f->icon_name |
| 1467 | : f->name))->data); | 1467 | : f->name))->data); |
| 1468 | else | 1468 | else |
| 1469 | result = x_bitmap_icon (f, arg); | 1469 | result = x_bitmap_icon (f, arg); |
| @@ -1519,7 +1519,7 @@ x_set_icon_name (f, arg, oldval) | |||
| 1519 | else if (!STRINGP (oldval) && EQ (oldval, Qnil) == EQ (arg, Qnil)) | 1519 | else if (!STRINGP (oldval) && EQ (oldval, Qnil) == EQ (arg, Qnil)) |
| 1520 | return; | 1520 | return; |
| 1521 | 1521 | ||
| 1522 | f->display.x->icon_name = arg; | 1522 | f->icon_name = arg; |
| 1523 | 1523 | ||
| 1524 | if (f->display.x->icon_bitmap != 0) | 1524 | if (f->display.x->icon_bitmap != 0) |
| 1525 | return; | 1525 | return; |
| @@ -1527,8 +1527,8 @@ x_set_icon_name (f, arg, oldval) | |||
| 1527 | BLOCK_INPUT; | 1527 | BLOCK_INPUT; |
| 1528 | 1528 | ||
| 1529 | result = x_text_icon (f, | 1529 | result = x_text_icon (f, |
| 1530 | (char *) XSTRING ((!NILP (f->display.x->icon_name) | 1530 | (char *) XSTRING ((!NILP (f->icon_name) |
| 1531 | ? f->display.x->icon_name | 1531 | ? f->icon_name |
| 1532 | : f->name))->data); | 1532 | : f->name))->data); |
| 1533 | 1533 | ||
| 1534 | if (result) | 1534 | if (result) |
| @@ -1760,9 +1760,7 @@ x_set_name (f, name, explicit) | |||
| 1760 | text.format = 8; | 1760 | text.format = 8; |
| 1761 | text.nitems = XSTRING (name)->size; | 1761 | text.nitems = XSTRING (name)->size; |
| 1762 | 1762 | ||
| 1763 | icon_name = (!NILP (f->display.x->icon_name) | 1763 | icon_name = (!NILP (f->icon_name) ? f->icon_name : name); |
| 1764 | ? f->display.x->icon_name | ||
| 1765 | : name); | ||
| 1766 | 1764 | ||
| 1767 | icon.value = XSTRING (icon_name)->data; | 1765 | icon.value = XSTRING (icon_name)->data; |
| 1768 | icon.encoding = XA_STRING; | 1766 | icon.encoding = XA_STRING; |
| @@ -2748,10 +2746,9 @@ x_icon (f, parms) | |||
| 2748 | ? IconicState | 2746 | ? IconicState |
| 2749 | : NormalState)); | 2747 | : NormalState)); |
| 2750 | 2748 | ||
| 2751 | x_text_icon (f, | 2749 | x_text_icon (f, (char *) XSTRING ((!NILP (f->icon_name) |
| 2752 | (char *) XSTRING ((!NILP (f->display.x->icon_name) | 2750 | ? f->icon_name |
| 2753 | ? f->display.x->icon_name | 2751 | : f->name))->data); |
| 2754 | : f->name))->data); | ||
| 2755 | 2752 | ||
| 2756 | UNBLOCK_INPUT; | 2753 | UNBLOCK_INPUT; |
| 2757 | } | 2754 | } |
| @@ -2913,10 +2910,10 @@ This function is an internal primitive--use `make-frame' instead.") | |||
| 2913 | bzero (f->display.x, sizeof (struct x_display)); | 2910 | bzero (f->display.x, sizeof (struct x_display)); |
| 2914 | f->display.x->icon_bitmap = -1; | 2911 | f->display.x->icon_bitmap = -1; |
| 2915 | 2912 | ||
| 2916 | f->display.x->icon_name | 2913 | f->icon_name |
| 2917 | = x_get_arg (parms, Qicon_name, "iconName", "Title", string); | 2914 | = x_get_arg (parms, Qicon_name, "iconName", "Title", string); |
| 2918 | if (! STRINGP (f->display.x->icon_name)) | 2915 | if (! STRINGP (f->icon_name)) |
| 2919 | f->display.x->icon_name = Qnil; | 2916 | f->icon_name = Qnil; |
| 2920 | 2917 | ||
| 2921 | FRAME_X_DISPLAY_INFO (f) = dpyinfo; | 2918 | FRAME_X_DISPLAY_INFO (f) = dpyinfo; |
| 2922 | #ifdef MULTI_KBOARD | 2919 | #ifdef MULTI_KBOARD |