[geany/geany-plugins] e09f53: geanyminiscript: Don't access private fields

Colomban Wendling git-noreply at xxxxx
Thu Jun 9 09:47:59 UTC 2016


Branch:      refs/heads/master
Author:      Colomban Wendling <ban at herbesfolles.org>
Committer:   Colomban Wendling <ban at herbesfolles.org>
Date:        Thu, 03 Mar 2016 16:31:40 UTC
Commit:      e09f539b1dc5be714f10a2425806706c8b14bf8a
             https://github.com/geany/geany-plugins/commit/e09f539b1dc5be714f10a2425806706c8b14bf8a

Log Message:
-----------
geanyminiscript: Don't access private fields

This slightly changes the behavior as it will now follow the setting
from the project open at startup, if any.  It's however probably rather
an improvement, although caching the value is likely not to be a good
idea anyway.


Modified Paths:
--------------
    geanyminiscript/src/gms.c

Modified: geanyminiscript/src/gms.c
4 lines changed, 3 insertions(+), 1 deletions(-)
===================================================================
@@ -235,9 +235,11 @@ static void item_activate(GtkMenuItem *menuitem, gpointer gdata)
  */
 void plugin_init(GeanyData *data)
 {
+    const GeanyIndentPrefs *iprefs = editor_get_indent_prefs(NULL);
+
     gms_hnd = gms_new(geany->main_widgets->window,
                     data->interface_prefs->editor_font ,
-                    data->editor_prefs->indentation->width,
+                    iprefs->width,
 					geany->app->configdir
                     ) ;
 



--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).


More information about the Plugins-Commits mailing list