Re: Signals for combobox entry

2008-10-07 Thread Dave Howorth
Mike Martin wrote: > however for the comboboxentry, changed isnt acceptable as it fires on > every change (runs database query so not good performance) > > No keypress events seem to be generated for CBE so are there any other > approaches that will fire only when whole field has been updated? Co

Signals for combobox entry

2008-10-07 Thread Mike Martin
Hi I have a drop-down box which adds to the display depending on selection Combobox Comboboxentry Entry However I am having problems with signals with the combobox entry the actions are Combobox = changed Entry = Keypress event (tab/entry/return) however for the comboboxentry, changed isnt ac

RE: Signals for combobox entry

2008-10-07 Thread Jeff Hallock
Here are two examples that will exhibit the behavior you desire: my $combo = Gtk2::ComboBoxEntry->new; $combo->signal_connect(changed => \&changed); $combo->signal_connect('focus-out-event' => \&focus_out); sub changed { my $combo = shift; $combo->{changed} = TRUE; } sub focus_ou

TreeView stack

2008-10-07 Thread Kevin Ryde
A couple more probable stack gremlins in TreeView. The tooltip one is pretty clear. The column get_size depends on how that func is implemented, but looking at the code of 2.12/14 it calls its renderers (as opposed to returning pre-computed size). --- GtkTreeView.xs 08 Oct 2008 09:22:12 +1100 1.

StatusIcon stack

2008-10-07 Thread Kevin Ryde
A callback stack case in StatusIcon position_menu. Nosing around its code it calls out to the menu size_request to figure how big the menu is (or would like to be). --- GtkStatusIcon.xs 08 Oct 2008 09:30:39 +1100 1.10 +++ GtkStatusIcon.xs 08 Oct 2008 09:30:52 +1100 @@ -93,7 +93,11 @@ icon = S

TreeDragSource stack

2008-10-07 Thread Kevin Ryde
This is the drag_data_get I think I mentioned before but didn't post, it's a usual one for an interface implementable in perl. --- GtkTreeDnd.xs 08 Oct 2008 09:41:01 +1100 1.12 +++ GtkTreeDnd.xs 08 Oct 2008 09:41:34 +1100 @@ -148,7 +148,7 @@ gtk_tree_drag_source_drag_data_get (GtkTreeDragSource