/[emacs]/emacs/src/xfns.c
ViewVC logotype

Diff of /emacs/src/xfns.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.590.2.5 by miles, Wed Jul 28 07:05:52 2004 UTC revision 1.590.2.6 by miles, Fri Aug 27 07:00:34 2004 UTC
# Line 282  x_window_to_frame (dpyinfo, wdesc) Line 282  x_window_to_frame (dpyinfo, wdesc)
282    Lisp_Object tail, frame;    Lisp_Object tail, frame;
283    struct frame *f;    struct frame *f;
284    
285      if (wdesc == None) return 0;
286    
287    for (tail = Vframe_list; GC_CONSP (tail); tail = XCDR (tail))    for (tail = Vframe_list; GC_CONSP (tail); tail = XCDR (tail))
288      {      {
289        frame = XCAR (tail);        frame = XCAR (tail);
# Line 331  x_any_window_to_frame (dpyinfo, wdesc) Line 333  x_any_window_to_frame (dpyinfo, wdesc)
333    struct frame *f, *found;    struct frame *f, *found;
334    struct x_output *x;    struct x_output *x;
335    
336      if (wdesc == None) return NULL;
337    
338    found = NULL;    found = NULL;
339    for (tail = Vframe_list; GC_CONSP (tail) && !found; tail = XCDR (tail))    for (tail = Vframe_list; GC_CONSP (tail) && !found; tail = XCDR (tail))
340      {      {
# Line 385  x_non_menubar_window_to_frame (dpyinfo, Line 389  x_non_menubar_window_to_frame (dpyinfo,
389    struct frame *f;    struct frame *f;
390    struct x_output *x;    struct x_output *x;
391    
392      if (wdesc == None) return 0;
393    
394    for (tail = Vframe_list; GC_CONSP (tail); tail = XCDR (tail))    for (tail = Vframe_list; GC_CONSP (tail); tail = XCDR (tail))
395      {      {
396        frame = XCAR (tail);        frame = XCAR (tail);
# Line 431  x_menubar_window_to_frame (dpyinfo, wdes Line 437  x_menubar_window_to_frame (dpyinfo, wdes
437    struct frame *f;    struct frame *f;
438    struct x_output *x;    struct x_output *x;
439    
440      if (wdesc == None) return 0;
441    
442    for (tail = Vframe_list; GC_CONSP (tail); tail = XCDR (tail))    for (tail = Vframe_list; GC_CONSP (tail); tail = XCDR (tail))
443      {      {
444        frame = XCAR (tail);        frame = XCAR (tail);
# Line 476  x_top_window_to_frame (dpyinfo, wdesc) Line 484  x_top_window_to_frame (dpyinfo, wdesc)
484    struct frame *f;    struct frame *f;
485    struct x_output *x;    struct x_output *x;
486    
487      if (wdesc == None) return 0;
488    
489    for (tail = Vframe_list; GC_CONSP (tail); tail = XCDR (tail))    for (tail = Vframe_list; GC_CONSP (tail); tail = XCDR (tail))
490      {      {
491        frame = XCAR (tail);        frame = XCAR (tail);
# Line 1631  x_set_name (f, name, explicit) Line 1641  x_set_name (f, name, explicit)
1641            }            }
1642  #ifdef USE_GTK  #ifdef USE_GTK
1643          gtk_window_set_title (GTK_WINDOW (FRAME_GTK_OUTER_WIDGET (f)),          gtk_window_set_title (GTK_WINDOW (FRAME_GTK_OUTER_WIDGET (f)),
1644                                SDATA (name));                                SDATA (ENCODE_UTF_8 (name)));
1645  #else /* not USE_GTK */  #else /* not USE_GTK */
1646          XSetWMName (FRAME_X_DISPLAY (f), FRAME_OUTER_WINDOW (f), &text);          XSetWMName (FRAME_X_DISPLAY (f), FRAME_OUTER_WINDOW (f), &text);
1647  #endif /* not USE_GTK */  #endif /* not USE_GTK */
# Line 1739  x_set_title (f, name, old_name) Line 1749  x_set_title (f, name, old_name)
1749    
1750  #ifdef USE_GTK  #ifdef USE_GTK
1751          gtk_window_set_title (GTK_WINDOW (FRAME_GTK_OUTER_WIDGET (f)),          gtk_window_set_title (GTK_WINDOW (FRAME_GTK_OUTER_WIDGET (f)),
1752                                SDATA (name));                                SDATA (ENCODE_UTF_8 (name)));
1753  #else /* not USE_GTK */  #else /* not USE_GTK */
1754          XSetWMName (FRAME_X_DISPLAY (f), FRAME_OUTER_WINDOW (f), &text);          XSetWMName (FRAME_X_DISPLAY (f), FRAME_OUTER_WINDOW (f), &text);
1755  #endif /* not USE_GTK */  #endif /* not USE_GTK */

Legend:
Removed from v.1.590.2.5  
changed lines
  Added in v.1.590.2.6

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26