X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fui%2Fgui%2Fsyntax-editor-source.c;h=214370513b7369087344f60c636f450704f3b7a7;hb=60426b863b7b51f6295c2884478ae02863d3b79d;hp=9e1f2e8770c926b5b2b61f5eefae05524c7985b3;hpb=d43a876351d94acce0e8d565ad2cb4d690727fe9;p=pspp-builds.git diff --git a/src/ui/gui/syntax-editor-source.c b/src/ui/gui/syntax-editor-source.c index 9e1f2e87..21437051 100644 --- a/src/ui/gui/syntax-editor-source.c +++ b/src/ui/gui/syntax-editor-source.c @@ -36,6 +36,7 @@ struct syntax_editor_source GtkTextBuffer *buffer; GtkTextIter i; GtkTextIter end; + const gchar *name; }; @@ -49,10 +50,8 @@ always_false (const struct getl_interface *i UNUSED) static const char * name (const struct getl_interface *i) { - // const struct syntax_editor_source *ses = - // (const struct syntax_editor_source *) i; - - return "I have no idea"; // window_name ((const struct editor_window *) ses->se); + const struct syntax_editor_source *ses = (const struct syntax_editor_source *) i; + return ses->name; } @@ -105,7 +104,8 @@ do_close (struct getl_interface *i ) struct getl_interface * create_syntax_editor_source (GtkTextBuffer *buffer, GtkTextIter start, - GtkTextIter stop + GtkTextIter stop, + const gchar *nm ) { struct syntax_editor_source *ses = xzalloc (sizeof *ses); @@ -113,6 +113,7 @@ create_syntax_editor_source (GtkTextBuffer *buffer, ses->buffer = buffer; ses->i = start; ses->end = stop; + ses->name = nm; ses->parent.interactive = always_false;