projects
/
pspp-builds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge commit 'origin/stable'
[pspp-builds.git]
/
src
/
ui
/
gui
/
syntax-editor-source.c
diff --git
a/src/ui/gui/syntax-editor-source.c
b/src/ui/gui/syntax-editor-source.c
index 9e1f2e8770c926b5b2b61f5eefae05524c7985b3..214370513b7369087344f60c636f450704f3b7a7 100644
(file)
--- 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;
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)
{
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,
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);
)
{
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->buffer = buffer;
ses->i = start;
ses->end = stop;
+ ses->name = nm;
ses->parent.interactive = always_false;
ses->parent.interactive = always_false;