List Info

Thread: Module with multiple actions




Module with multiple actions
country flaguser name
United States
2007-09-01 18:40:26
I'm trying to extend one of my existing modules to support
multiple
actions.  I'm using a single match with multiple
"add_actions".  Unless
I include one of the stock actions, CopyToClipboardAction
for example,
Deskbar seems to pick the first action and ignore the rest. 
I'm
probably doing something horribly wrong, can anyone help? 
I've attached
a very simple test module that attempts to show what I am
doing.

Thanks.

-- 
Matthew Gregg <mcgbraintube.com>

_______________________________________________
deskbar-applet-list mailing list
deskbar-applet-listgnome.org
http://mail.gnome.org/mailman/listinfo/deskbar-applet-
list

  
Re: Module with multiple actions
country flaguser name
Germany
2007-09-02 06:00:29
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Matthew Gregg schrieb:
> I'm trying to extend one of my existing modules to
support multiple
> actions.  I'm using a single match with multiple
"add_actions".  Unless
> I include one of the stock actions,
CopyToClipboardAction for example,
> Deskbar seems to pick the first action and ignore the
rest.  I'm
> probably doing something horribly wrong, can anyone
help?  I've attached
> a very simple test module that attempts to show what I
am doing.
> 
Deskbar takes the first action you added when you activate
the match. If
a match has more than one action a '>' is displayed on
the right. If you
 click on it you will see a list of actions.

- --
Greetings,
Sebastian Pölsterl
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org


iD8DBQFG2pfN1ygZeJ3lLIcRAqb9AJ9lQqZWPHRVrmEjVr/mL0yKTeGUIACd
H/F3
wo7ACIuj7/v2yt1TuBYKUlQ=
=bMef
-----END PGP SIGNATURE-----
_______________________________________________
deskbar-applet-list mailing list
deskbar-applet-listgnome.org
http://mail.gnome.org/mailman/listinfo/deskbar-applet-
list

Re: Module with multiple actions
country flaguser name
United States
2007-09-02 14:41:06
On Sun, 2007-09-02 at 13:00 +0200, Sebastian Pölsterl
wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Matthew Gregg schrieb:
> > I'm trying to extend one of my existing modules to
support multiple
> > actions.  I'm using a single match with multiple
"add_actions".  Unless
> > I include one of the stock actions,
CopyToClipboardAction for example,
> > Deskbar seems to pick the first action and ignore
the rest.  I'm
> > probably doing something horribly wrong, can
anyone help?  I've attached
> > a very simple test module that attempts to show
what I am doing.
> > 
> Deskbar takes the first action you added when you
activate the match. If
> a match has more than one action a '>' is displayed
on the right. If you
>  click on it you will see a list of actions.
That's the problem, I am trying to add multiple actions, but
when the
module is activated I don't get a '>'.  Only the first
action I add is
available.  It appears that Deskbar ignores my actions
except one(the
first I add).

> 
> - --
> Greetings,
> Sebastian Pölsterl
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.6 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

> 
>
iD8DBQFG2pfN1ygZeJ3lLIcRAqb9AJ9lQqZWPHRVrmEjVr/mL0yKTeGUIACd
H/F3
> wo7ACIuj7/v2yt1TuBYKUlQ=
> =bMef
> -----END PGP SIGNATURE-----
-- 
Matthew Gregg <mcgbraintube.com>

_______________________________________________
deskbar-applet-list mailing list
deskbar-applet-listgnome.org
http://mail.gnome.org/mailman/listinfo/deskbar-applet-
list
Re: Module with multiple actions
country flaguser name
United States
2007-09-03 14:08:47
That was it thanks!

On Mon, 2007-09-03 at 12:06 +0200, Sebastian Pölsterl
wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Matthew Gregg schrieb:
> > On Sun, 2007-09-02 at 13:00 +0200, Sebastian
Pölsterl wrote:
> > Matthew Gregg schrieb:
> >>>> I'm trying to extend one of my
existing modules to support multiple
> >>>> actions.  I'm using a single match
with multiple "add_actions".  Unless
> >>>> I include one of the stock actions,
CopyToClipboardAction for example,
> >>>> Deskbar seems to pick the first action
and ignore the rest.  I'm
> >>>> probably doing something horribly
wrong, can anyone help?  I've attached
> >>>> a very simple test module that
attempts to show what I am doing.
> >>>>
> > Deskbar takes the first action you added when you
activate the match. If
> > a match has more than one action a '>' is
displayed on the right. If you
> >  click on it you will see a list of actions.
> 
> Right. A closer look revealed the problem. If two
actions return the
> same value for get_hash() (default is None) they will
be treated as the
> same and only the first action is actually added.
> I guess I should return the default value of get_hash
to something
> different. I'm thinking of id(self).
> 
> - --
> Greetings,
> Sebastian Pölsterl
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.6 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

> 
>
iD8DBQFG29y71ygZeJ3lLIcRArlrAJ9TX+8iy7qHLcR+jDy5nnMD/rLeBgCf
eA1z
> oE5AzyINizSyOm8pdMrpFiE=
> =Rca0
> -----END PGP SIGNATURE-----
-- 
Matthew Gregg <mcgbraintube.com>

_______________________________________________
deskbar-applet-list mailing list
deskbar-applet-listgnome.org
http://mail.gnome.org/mailman/listinfo/deskbar-applet-
list
[1-4]

about | contact  Other archives ( Real Estate discussion Medical topics )