added a convenience function to not have SSM() in the outside of sciwrappers.c

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@31 ea778897-0a13-0410-b9d1-a72fbfd435f5
This commit is contained in:
Enrico Tröger 2005-12-01 22:50:05 +00:00
parent a10dcbbde8
commit 23be99d5f1
2 changed files with 9 additions and 0 deletions

View File

@ -17,6 +17,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*
* $Id$
*/
@ -801,3 +802,9 @@ gboolean sci_get_readonly(ScintillaObject *sci)
{
return SSM(sci, SCI_GETREADONLY, 0, 0);
}
// a simple convenience function to not have SSM() in the outside of this file
void sci_cmd(ScintillaObject * sci, gint cmd)
{
SSM(sci, cmd, 0, 0);
}

View File

@ -17,6 +17,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*
* $Id$
*/
@ -154,3 +155,4 @@ gint sci_get_lexer (ScintillaObject * sci);
void sci_set_readonly (ScintillaObject * sci, gboolean readonly);
gboolean sci_get_readonly (ScintillaObject * sci);
gint sci_get_zoom (ScintillaObject * sci);
void sci_cmd (ScintillaObject * sci, gint cmd);