comparison src/xfns.c @ 56718:0e434700ae47

* xfns.c (x_set_name, x_set_title): Encode title to UTF8 before passing it to gtk_window_set_title.
author Jan Djärv <jan.h.d@swipnet.se>
date Thu, 19 Aug 2004 17:31:37 +0000
parents 5044b3527ce8
children c54fa35b4ded 22658e29bd48
comparison
equal deleted inserted replaced
56717:f95a8f5985be 56718:0e434700ae47
1649 icon.format = 8; 1649 icon.format = 8;
1650 icon.nitems = bytes; 1650 icon.nitems = bytes;
1651 } 1651 }
1652 #ifdef USE_GTK 1652 #ifdef USE_GTK
1653 gtk_window_set_title (GTK_WINDOW (FRAME_GTK_OUTER_WIDGET (f)), 1653 gtk_window_set_title (GTK_WINDOW (FRAME_GTK_OUTER_WIDGET (f)),
1654 SDATA (name)); 1654 SDATA (ENCODE_UTF_8 (name)));
1655 #else /* not USE_GTK */ 1655 #else /* not USE_GTK */
1656 XSetWMName (FRAME_X_DISPLAY (f), FRAME_OUTER_WINDOW (f), &text); 1656 XSetWMName (FRAME_X_DISPLAY (f), FRAME_OUTER_WINDOW (f), &text);
1657 #endif /* not USE_GTK */ 1657 #endif /* not USE_GTK */
1658 1658
1659 XSetWMIconName (FRAME_X_DISPLAY (f), FRAME_OUTER_WINDOW (f), &icon); 1659 XSetWMIconName (FRAME_X_DISPLAY (f), FRAME_OUTER_WINDOW (f), &icon);
1757 icon.nitems = bytes; 1757 icon.nitems = bytes;
1758 } 1758 }
1759 1759
1760 #ifdef USE_GTK 1760 #ifdef USE_GTK
1761 gtk_window_set_title (GTK_WINDOW (FRAME_GTK_OUTER_WIDGET (f)), 1761 gtk_window_set_title (GTK_WINDOW (FRAME_GTK_OUTER_WIDGET (f)),
1762 SDATA (name)); 1762 SDATA (ENCODE_UTF_8 (name)));
1763 #else /* not USE_GTK */ 1763 #else /* not USE_GTK */
1764 XSetWMName (FRAME_X_DISPLAY (f), FRAME_OUTER_WINDOW (f), &text); 1764 XSetWMName (FRAME_X_DISPLAY (f), FRAME_OUTER_WINDOW (f), &text);
1765 #endif /* not USE_GTK */ 1765 #endif /* not USE_GTK */
1766 1766
1767 XSetWMIconName (FRAME_X_DISPLAY (f), FRAME_OUTER_WINDOW (f), 1767 XSetWMIconName (FRAME_X_DISPLAY (f), FRAME_OUTER_WINDOW (f),