Re: GtkCombo
- From: Paul Davis <pbd Op Net>
- To: jgotts linuxsavvy com
- Cc: gtk-list gnome org
- Subject: Re: GtkCombo
- Date: Thu, 19 Apr 2001 18:50:00 -0400
In message <200104192202 SAA34526 ww2 tqstats com>you write:
>Do anyone know what signal to use to handle the user clicking on the down arro
>w
>in the GtkCombo widget? In nearly 100% of the cases with our application,
>getting a valid list is a very expensive operation and the state of other
>widgets changes that list, so we only want to generate the list when needed by
>the user (and never generate the list if the user just types what he wants int
>o
>the entry).
i believe that you want to use the "map" signal, and return FALSE from
your handler. its been a while since i did this, and i can't find the
code where i did it, so i'm not sure which widget you need to attach
to, but picking one of the lesser known signals like this is the way
to do this. i often do this for menus, for example: when map is
signalled, i redefine the content of the menu, return FALSE and voila:
a totally dynamic menu.
--p
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]