Skip to content

Commit

Permalink
remove use of GeanyFunctions, fix deprecated warning (#15)
Browse files Browse the repository at this point in the history
This fixes the compiler warning about the deprecated GeanyFunctions
https://github.com/geany/geany/blob/9c91c287803ae05ce0f2aacd605564301e0ef4aa/src/plugindata.h#L408)
  • Loading branch information
andy5995 authored and xuhdev committed Jul 26, 2019
1 parent f39088a commit cc02b9d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions editorconfig-geany.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ PLUGIN_SET_INFO("EditorConfig", "EditorConfig Plugin for Geany",

GeanyPlugin* geany_plugin;
GeanyData* geany_data;
GeanyFunctions* geany_functions;

/* Reload EditorConfig menu item */
static GtkWidget* menu_item_reload_editorconfig;
Expand Down Expand Up @@ -142,7 +141,7 @@ load_editorconfig(const GeanyDocument* gd)
if (ec.indent_size == INDENT_SIZE_TAB) {
int cur_tabwidth = scintilla_send_message(sci, SCI_GETTABWIDTH, 0, 0);

/* set indent_size to tab_width here */
/* set indent_size to tab_width here */
scintilla_send_message(sci, SCI_SETINDENT, (uptr_t)cur_tabwidth, 0);
}

Expand Down

0 comments on commit cc02b9d

Please sign in to comment.