# HG changeset patch # User Dave Love # Date 1054579815 0 # Node ID 8f1bed1dee3cadfe3f26acfe7babdb33de2ea4aa # Parent cb89e76907df854e8d902d2e58e9c1173ecbe277 Include keyboard.h, charset.h, coding.h. (xg_create_frame_widgets): Use ENCODE_UTF_8. diff -r cb89e76907df -r 8f1bed1dee3c src/gtkutil.c --- a/src/gtkutil.c Mon Jun 02 18:49:53 2003 +0000 +++ b/src/gtkutil.c Mon Jun 02 18:50:15 2003 +0000 @@ -31,6 +31,9 @@ #include "atimer.h" #include "gtkutil.h" #include "termhooks.h" +#include "keyboard.h" +#include "charset.h" +#include "coding.h" #include #define FRAME_TOTAL_PIXEL_HEIGHT(f) \ @@ -498,8 +501,8 @@ gtk_widget_set_name (wfixed, SDATA (Vx_resource_name)); /* If this frame has a title or name, set it in the title bar. */ - if (! NILP (f->title)) title = SDATA (f->title); - else if (! NILP (f->name)) title = SDATA (f->name); + if (! NILP (f->title)) title = SDATA (ENCODE_UTF_8 (f->title)); + else if (! NILP (f->name)) title = SDATA (ENCODE_UTF_8 (f->name)); if (title) gtk_window_set_title (GTK_WINDOW (wtop), title);