perlpanel-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Perlpanel-devel] Showing a Configuration Dialog


From: Gavin Brown
Subject: Re: [Perlpanel-devel] Showing a Configuration Dialog
Date: Thu, 08 Jul 2004 13:43:47 +0100

> I tried connecting to the "popup-menu" event, but i never get that event

popup-menu is new in Gtk+ 2.4.0, do you have an up-to-date version?

> 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 need to wrap the image in a GtkEventBox, since image widgets can't
accept signals.

> 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?

A dialog is preferred. You may find the CPUTemp applet useful, it
implements a very simple config dialog using Glade. Just copy the
configure() and prefs() methods into your applet code and modify their
inernals as needed.

If you continue to have problems, asking on the gtk-perl mailing list
might be a good idea.

Gavin.

-- 
Gavin Brown
e: address@hidden
w: http://jodrell.net/
PGP/GPG key ID: 891D8FCA





reply via email to

[Prev in Thread] Current Thread [Next in Thread]