aboutsummaryrefslogtreecommitdiffstats
path: root/src/xterm.c
diff options
context:
space:
mode:
authorDmitry Antipov2013-09-17 16:59:45 +0400
committerDmitry Antipov2013-09-17 16:59:45 +0400
commit2cd98812779dd3254b4956ea39d6e6338f3feb8d (patch)
tree04a5afcccb87031d4d2e38d99385ebc26a288b5b /src/xterm.c
parenta6c2ee1b72658db95c64e2295580508bda410f8a (diff)
downloademacs-2cd98812779dd3254b4956ea39d6e6338f3feb8d.tar.gz
emacs-2cd98812779dd3254b4956ea39d6e6338f3feb8d.zip
* frame.h (x_set_bitmap_icon) [!HAVE_NS]: New function.
(x_icon_type): Remove prototype. (x_bitmap_icon) [!HAVE_NS]: Declare as such. * frame.c (x_icon_type): Remove. * w32term.c (x_make_frame_visible, x_iconify_frame): * xterm.c (x_make_frame_visible, x_iconify_frame): Use x_set_bitmap_icon to factor out common code.
Diffstat (limited to 'src/xterm.c')
-rw-r--r--src/xterm.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/xterm.c b/src/xterm.c
index 1adc5b3d03f..fadcdbfea98 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -9008,7 +9008,6 @@ xembed_send_message (struct frame *f, Time t, enum xembed_message msg,
9008void 9008void
9009x_make_frame_visible (struct frame *f) 9009x_make_frame_visible (struct frame *f)
9010{ 9010{
9011 Lisp_Object type;
9012 int original_top, original_left; 9011 int original_top, original_left;
9013 int retry_count = 2; 9012 int retry_count = 2;
9014 9013
@@ -9016,9 +9015,7 @@ x_make_frame_visible (struct frame *f)
9016 9015
9017 block_input (); 9016 block_input ();
9018 9017
9019 type = x_icon_type (f); 9018 x_set_bitmap_icon (f);
9020 if (!NILP (type))
9021 x_bitmap_icon (f, type);
9022 9019
9023 if (! FRAME_VISIBLE_P (f)) 9020 if (! FRAME_VISIBLE_P (f))
9024 { 9021 {
@@ -9225,7 +9222,6 @@ x_iconify_frame (struct frame *f)
9225#ifdef USE_X_TOOLKIT 9222#ifdef USE_X_TOOLKIT
9226 int result; 9223 int result;
9227#endif 9224#endif
9228 Lisp_Object type;
9229 9225
9230 /* Don't keep the highlight on an invisible frame. */ 9226 /* Don't keep the highlight on an invisible frame. */
9231 if (FRAME_DISPLAY_INFO (f)->x_highlight_frame == f) 9227 if (FRAME_DISPLAY_INFO (f)->x_highlight_frame == f)
@@ -9236,9 +9232,7 @@ x_iconify_frame (struct frame *f)
9236 9232
9237 block_input (); 9233 block_input ();
9238 9234
9239 type = x_icon_type (f); 9235 x_set_bitmap_icon (f);
9240 if (!NILP (type))
9241 x_bitmap_icon (f, type);
9242 9236
9243#if defined (USE_GTK) 9237#if defined (USE_GTK)
9244 if (FRAME_GTK_OUTER_WIDGET (f)) 9238 if (FRAME_GTK_OUTER_WIDGET (f))