sourceview: Don't store the builder for the preferences in a global variable.
commit109066e642d9ede5f6ed01b1316e5a95e3ea3348
authorCarl-Anton Ingmarsson <ca.ingmarsson@gmail.com>
Wed, 28 Nov 2012 20:06:12 +0000 (28 21:06 +0100)
committerSébastien Granjoux <seb.sfo@free.fr>
Wed, 28 Nov 2012 20:28:19 +0000 (28 21:28 +0100)
treeee15443657129f0ef2d4dd57517915abcce02051
parentc50391dc424b4fba99a118d165465ea70c7ed1c6
sourceview: Don't store the builder for the preferences in a global variable.

There's no need to keep the builder alive since anjuta_preferences_add_from_builder()
will keep the widgets alive and we can just store all the widgets we want to interact with
in the plugin object.

This fixes a crasher when more than one preferences window is used at the same time for
different windows.

https://bugzilla.gnome.org/show_bug.cgi?id=689054
plugins/sourceview/plugin.c
plugins/sourceview/plugin.h