[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Perlpanel-devel] Showing a Configuration Dialog
From: |
Moshe Kaminsky |
Subject: |
Re: [Perlpanel-devel] Showing a Configuration Dialog |
Date: |
Thu, 8 Jul 2004 00:05:18 +0300 |
User-agent: |
Mutt/1.5.6i |
Hi,
* Thomas <address@hidden> [07/07/04 23:14]:
> Hello, I am working on a weather applet, but I am having problems getting a
> configuration dialog shown. The applet's widget is a Gtk2::Button, and i
> would like to be able to show a configuration dialog when the user
> right-clicks on the button (or pop up a menu and allow them to configure it
> from there).
>
> I tried connecting to the "popup-menu" event, but i never get that event, and
> i also tried connecting to the button-release-event event, but then i never
> get the "clicked' event. I also tried replacing the button with a GtkImage
> object (the button only contains an image), but then i never receive
> button-release-events or button-press-events.
You may connect to 'button_release_event' for all buttons. You get the
actual button clicked as $_[1]->button inside the handler (for some
reason, they don't do it for the 'clicked' event). You may want to look
at an applet I've sent a few days ago to the list, Biff.pm, where I do
the same. You may also find the way I build the config dialog useful
(using the addConfigItem function).
HTH
Moshe
>
> What is the preferred way of configuring an applet? is there a way to add the
> applet's configuration dialog to the global configuration dialog?
>
> Thanks for any help
>
> Thomas Stephens
> address@hidden
>
>
> _______________________________________________
> Perlpanel-devel mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/perlpanel-devel
>
--
I love deadlines. I like the whooshing sound they make as they fly by.
-- Douglas Adams
Moshe Kaminsky <address@hidden>
pgpTOFCMTKLON.pgp
Description: PGP signature