SF.net SVN: geany: [1067] trunk
eht16 at users.sourceforge.net
eht16 at xxxxx
Fri Dec 8 15:30:44 UTC 2006
Revision: 1067
http://svn.sourceforge.net/geany/?rev=1067&view=rev
Author: eht16
Date: 2006-12-08 07:30:44 -0800 (Fri, 08 Dec 2006)
Log Message:
-----------
Fixed broken overtype update in the statusbar.
Removed unused field do_overwrite in document struct.
Modified Paths:
--------------
trunk/ChangeLog
trunk/src/document.c
trunk/src/document.h
trunk/src/sciwrappers.c
trunk/src/sciwrappers.h
trunk/src/ui_utils.c
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2006-12-08 09:56:31 UTC (rev 1066)
+++ trunk/ChangeLog 2006-12-08 15:30:44 UTC (rev 1067)
@@ -3,6 +3,10 @@
* src/build.c: Made the created run script for command execution a bit
more portable to other shells than bash (thanks to
Nacho Cabanes for reporting).
+ * src/document.c, src/document.h, src/sciwrappers.c, src/ui_utils.h,
+ src/sciwrappers.h:
+ Fixed broken overtype update in the statusbar.
+ Removed unused field do_overwrite in document struct.
2006-12-07 Frank Lanitz <frank at frank.uvena.de>
Modified: trunk/src/document.c
===================================================================
--- trunk/src/document.c 2006-12-08 09:56:31 UTC (rev 1066)
+++ trunk/src/document.c 2006-12-08 15:30:44 UTC (rev 1067)
@@ -305,7 +305,6 @@
this->mtime = 0;
this->changed = FALSE;
this->last_check = time(NULL);
- this->do_overwrite = FALSE;
this->readonly = FALSE;
this->line_breaking = app->pref_editor_line_breaking;
this->use_auto_indention = app->pref_editor_use_auto_indention;
Modified: trunk/src/document.h
===================================================================
--- trunk/src/document.h 2006-12-08 09:56:31 UTC (rev 1066)
+++ trunk/src/document.h 2006-12-08 15:30:44 UTC (rev 1067)
@@ -61,7 +61,6 @@
GtkTreeIter iter;
gboolean readonly;
gboolean changed;
- gboolean do_overwrite;
gboolean line_breaking;
gboolean use_auto_indention;
time_t last_check; // to remember the last disk check
Modified: trunk/src/sciwrappers.c
===================================================================
--- trunk/src/sciwrappers.c 2006-12-08 09:56:31 UTC (rev 1066)
+++ trunk/src/sciwrappers.c 2006-12-08 15:30:44 UTC (rev 1067)
@@ -903,3 +903,8 @@
return SSM(sci, SCI_BRACEMATCH, pos, 0);
}
+gint sci_get_overtype(ScintillaObject *sci)
+{
+ return SSM(sci, SCI_GETOVERTYPE, 0, 0);
+}
+
Modified: trunk/src/sciwrappers.h
===================================================================
--- trunk/src/sciwrappers.h 2006-12-08 09:56:31 UTC (rev 1066)
+++ trunk/src/sciwrappers.h 2006-12-08 15:30:44 UTC (rev 1067)
@@ -165,4 +165,6 @@
void sci_set_autoc_max_height (ScintillaObject * sci, gint val);
gint sci_find_bracematch (ScintillaObject * sci, gint pos);
+gint sci_get_overtype (ScintillaObject * sci);
+
#endif
Modified: trunk/src/ui_utils.c
===================================================================
--- trunk/src/ui_utils.c 2006-12-08 09:56:31 UTC (rev 1066)
+++ trunk/src/ui_utils.c 2006-12-08 15:30:44 UTC (rev 1067)
@@ -115,7 +115,7 @@
(doc_list[idx].changed) ? 42 : 32,
(line + 1), (col + 1),
sci_get_selected_text_length(doc_list[idx].sci) - 1,
- doc_list[idx].do_overwrite ? _("OVR") : _("INS"),
+ sci_get_overtype(doc_list[idx].sci) ? _("OVR") : _("INS"),
document_get_eol_mode(idx),
(doc_list[idx].readonly) ? ", read only" : "",
cur_tag,
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Commits
mailing list