aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLuc Teirlinck2004-07-24 12:52:44 +0000
committerLuc Teirlinck2004-07-24 12:52:44 +0000
commit289978b5e2fb86a4d433e84c0de9a1f8f7f8e809 (patch)
tree73b60053382a4176b9ccc1e985c0b104457be28e /src
parentd5ef6196df647d17dfc608d82925965518ba6bb5 (diff)
downloademacs-289978b5e2fb86a4d433e84c0de9a1f8f7f8e809.tar.gz
emacs-289978b5e2fb86a4d433e84c0de9a1f8f7f8e809.zip
(x_icon_verify): New function.
(Fx_create_frame): Use it. (From Richard M. Stallman.)
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog5
-rw-r--r--src/xfns.c24
2 files changed, 29 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index e51cdf554ce..8d9d72de9d2 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
12004-07-24 Richard M. Stallman <rms@gnu.org>
2
3 * xfns.c (x_icon_verify): New function.
4 (Fx_create_frame): Use it.
5
12004-07-22 Barry Fishman <barry_fishman@att.net> (tiny change) 62004-07-22 Barry Fishman <barry_fishman@att.net> (tiny change)
2 7
3 * s/gnu-linux.h: Use GC_MARK_STACK if __amd64__ is defined. 8 * s/gnu-linux.h: Use GC_MARK_STACK if __amd64__ is defined.
diff --git a/src/xfns.c b/src/xfns.c
index 931d31bcedf..dd8b4a4cb12 100644
--- a/src/xfns.c
+++ b/src/xfns.c
@@ -2633,6 +2633,28 @@ x_window (f)
2633#endif /* not USE_GTK */ 2633#endif /* not USE_GTK */
2634#endif /* not USE_X_TOOLKIT */ 2634#endif /* not USE_X_TOOLKIT */
2635 2635
2636/* Verify that the icon position args for this window are valid. */
2637
2638static void
2639x_icon_verify (f, parms)
2640 struct frame *f;
2641 Lisp_Object parms;
2642{
2643 Lisp_Object icon_x, icon_y;
2644
2645 /* Set the position of the icon. Note that twm groups all
2646 icons in an icon window. */
2647 icon_x = x_frame_get_and_record_arg (f, parms, Qicon_left, 0, 0, RES_TYPE_NUMBER);
2648 icon_y = x_frame_get_and_record_arg (f, parms, Qicon_top, 0, 0, RES_TYPE_NUMBER);
2649 if (!EQ (icon_x, Qunbound) && !EQ (icon_y, Qunbound))
2650 {
2651 CHECK_NUMBER (icon_x);
2652 CHECK_NUMBER (icon_y);
2653 }
2654 else if (!EQ (icon_x, Qunbound) || !EQ (icon_y, Qunbound))
2655 error ("Both left and top icon corners of icon must be specified");
2656}
2657
2636/* Handle the icon stuff for this window. Perhaps later we might 2658/* Handle the icon stuff for this window. Perhaps later we might
2637 want an x_set_icon_position which can be called interactively as 2659 want an x_set_icon_position which can be called interactively as
2638 well. */ 2660 well. */
@@ -3117,6 +3139,8 @@ This function is an internal primitive--use `make-frame' instead. */)
3117 tem = x_get_arg (dpyinfo, parms, Qunsplittable, 0, 0, RES_TYPE_BOOLEAN); 3139 tem = x_get_arg (dpyinfo, parms, Qunsplittable, 0, 0, RES_TYPE_BOOLEAN);
3118 f->no_split = minibuffer_only || EQ (tem, Qt); 3140 f->no_split = minibuffer_only || EQ (tem, Qt);
3119 3141
3142 x_icon_verify (f, parms);
3143
3120 /* Create the X widget or window. */ 3144 /* Create the X widget or window. */
3121#ifdef USE_X_TOOLKIT 3145#ifdef USE_X_TOOLKIT
3122 x_window (f, window_prompting, minibuffer_only); 3146 x_window (f, window_prompting, minibuffer_only);