Remove redundant SSM macros

This commit is contained in:
Matthew Brush 2017-08-03 18:34:31 -07:00 committed by Matthew Brush
parent b7c4bb0b4d
commit 371810181d
4 changed files with 5 additions and 11 deletions

View File

@ -67,10 +67,6 @@
#include <gdk/gdkkeysyms.h>
/* Note: use sciwrappers.h instead where possible.
* Do not use SSM in files unrelated to scintilla. */
#define SSM(s, m, w, l) scintilla_send_message(s, m, w, l)
static GHashTable *snippet_hash = NULL;
static GtkAccelGroup *snippet_accel_group = NULL;
static gboolean autocomplete_scope_shown = FALSE;

View File

@ -125,10 +125,6 @@ static GHashTable *named_style_hash = NULL;
static GeanyLexerStyle gsd_default = {0x000000, 0xffffff, FALSE, FALSE};
/* Note: use sciwrappers.h instead where possible.
* Do not use SSM in files unrelated to scintilla. */
#define SSM(s, m, w, l) scintilla_send_message(s, m, w, l)
/* filetypes should use the filetypes.foo [lexer_properties] group instead of hardcoding */
static void sci_set_property(ScintillaObject *sci, const gchar *name, const gchar *value)
{

View File

@ -42,9 +42,6 @@
#include <string.h>
#define SSM(s, m, w, l) scintilla_send_message(s, m, w, l)
/* line numbers visibility */
void sci_set_line_numbers(ScintillaObject *sci, gboolean set)
{

View File

@ -28,6 +28,11 @@
#include "ScintillaWidget.h" /* for ScintillaObject */
#ifdef GEANY_PRIVATE
#define SSM(s, m, w, l) scintilla_send_message(s, m, w, l)
#endif
G_BEGIN_DECLS
void sci_set_text (ScintillaObject *sci, const gchar *text);