Re: [PATCH 0/7] Storing enable/disable add-in status in conf. file.
- From: Łukasz Krotowski <lukasz krotowski gmail com>
- To: gnote-list gnome org
- Subject: Re: [PATCH 0/7] Storing enable/disable add-in status in conf. file.
- Date: Mon, 24 May 2010 13:47:07 +0200
2010/5/22 Aurimas Černius <aurisc4 gmail com>:
> One more thing: it seems there is no default configuration. In Tomboy some
> addins are disabled by default.
Well, not exactly. Default configuration is taken from default add-ins
constructors.
Yes, there could be some global configuration with add-ins enabled status
but the simplest solution is just set enabled to false in ctors. E.g.
if one wants
to disable Underline add-in have to:
1) Modify add-in:
--- a/src/addins/underline/underlinenoteaddin.cpp
+++ b/src/addins/underline/underlinenoteaddin.cpp
@@ -35,6 +35,7 @@ namespace underline {
UnderlineModule::UnderlineModule()
{
ADD_INTERFACE_IMPL(UnderlineNoteAddin);
+ enabled(false);
}
const char * UnderlineModule::id() const
2) rm ~/.config/gnote/addins/global.ini and restart.
And it's disabled by default.
[
Date Prev][Date Next] [
Thread Prev][Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]