Browse Source

* gnoemoe/widgets/gm-external-view.c:

* gnoemoe/widgets/gm-embedded-view.c:
	
	fixed bug in not reading editor file when external editor process exits
master
Jesse van den Kieboom 13 years ago
parent
commit
f211e70ab0
3 changed files with 9 additions and 0 deletions
  1. +7
    -0
      ChangeLog
  2. +1
    -0
      gnoemoe/widgets/gm-embedded-view.c
  3. +1
    -0
      gnoemoe/widgets/gm-external-view.c

+ 7
- 0
ChangeLog View File

@@ -1,3 +1,10 @@
2007-06-01 Jesse van den Kieboom <jesse@icecrew.nl>

* gnoemoe/widgets/gm-external-view.c:
* gnoemoe/widgets/gm-embedded-view.c:
fixed bug in not reading editor file when external editor process exits

2006-25-10 Jesse van den Kieboom <jesse@icecrew.nl>

* configure.ac:


+ 1
- 0
gnoemoe/widgets/gm-embedded-view.c View File

@@ -54,6 +54,7 @@ gm_embedded_view_finalize(GObject *object) {
if (GM_IS_EDITOR(obj->priv->editor)) {
if (stat(obj->priv->filename, &buf) != -1) {
if (buf.st_mtime > obj->priv->last_modified) {
gm_editor_set_lines_from_file(view->editor, view->filename);
gm_editor_save(obj->priv->editor);
}
}


+ 1
- 0
gnoemoe/widgets/gm-external-view.c View File

@@ -30,6 +30,7 @@ gm_external_view_destroy(GmExternalView *view) {
if (GM_IS_EDITOR(view->editor)) {
if (stat(view->filename, &buf) != -1) {
if (buf.st_mtime > view->last_modified) {
gm_editor_set_lines_from_file(view->editor, view->filename);
gm_editor_save(view->editor);
}
}