gnome do doesn't load my plugin (I start gnome-do in a terminal and
doesn't say anything about the gmc plugin)
I create a dir 'gmc' under ~/.local/share/gnome-do/plugins-0.6.0/
addins and copy gmc.dll there.

Here's the code:

// gmcAction.cs ->gmc.dll

using System;
using System.Diagnostics;
using System.IO;

using Mono.Unix;
using Do.Universe;

namespace Do.gmcAction
{
        public class gmcAction : AbstractAction
        {


                public gmcAction()
                {
                }

                public override string Name
                {
              get { return Catalog.GetString ("Buscar en GMC"); }
            }

            public override string Description
                {
              get { return Catalog.GetString ("Buscar un administrativo en
GMC, con codigo K."); }
            }

            public override string Icon
                {
              get { return "eog"; }
            }

            public override Type[] SupportedItemTypes
                {
              get {
                return new Type[] {
                        typeof (ITextItem)
                };
              }
            }

                public override bool SupportsItem (IItem item)
                {
                        if (item is ITextItem) {
                                return (((item as ITextItem).Text).Length==14);
                        }
                        return false;
                }

            public override IItem[] Perform (IItem[] items, IItem[]
modifierItems)
            {
//(...) there's actual code here, it works on my employer's propietary
systems
                        return null;
            }

        }
}

And here's the gmc.addin.xml:

<Addin
        id="gmc"
        namespace= "Do"
        version="1.0"
        name="Buscar en GMC"
        description="Buscar un administrativo en GMC, con codigo K."
        author="Jesus Rodriguez"
>

        <Runtime>
                <Import assembly="gmc.dll"/>
        </Runtime>

        <Dependencies>
                <Addin id="Core" version="1.0" />
        </Dependencies>

        <!-- Extensions included in this assembly -->
        <Extension path="/Do/Action">
                <Action type="Do.gmcAction.gmcAction" />
        </Extension>
</Addin>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"GNOME Do" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/gnome-do?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to