[maemo-developers] hildron_entry and activate signal

From: Fred Lefévère-Laoide Fred at Lefevere-Laoide.net
Date: Tue Sep 29 11:33:33 EEST 2009
Hi Cornelius,

I tried Enter and Return on my keyboard : no dice !

I suppose I'll try the gtk_widget_activate way for debugging purpose.

Can anyone confirm this behavior in the SDK so that I can open a bug ?

Fred

Le 29/09/2009 09:41, Cornelius Hald a écrit :
> Hi Fred,
>
> I just tried the "activate" signal on HildonEntry and as expected. The
> problem, that you cannot activate in scratchbox might be, that the
> 'Enter' key of our tablets is emitting a 'Keypad-Enter' signal. So to
> activate a widget you have to press the 'Enter' key on the keypad.
>
> Another way (for testing) would be to call gtk_widget_activate() on the
> HildonEntry. This also should emit the right signal.
>
> Hope that helps!
> Conny
>
>
> On Tue, 2009-09-29 at 08:51 +0200, Fred Lefévère-Laoide wrote:
>> Hi,
>>
>> I can't manage to fiure the activate signal on a hildon_entry in the SDK
>> And my code crashes on the real device (that I do not have :( )
>>
>> Any hint or idea ?
>>
>> the same code works fine in Diablo with a gtk_text_entry instead of a
>> hildon_text_entry ...
>>
>> here is the relevant code
>> main->filter_tb = hildon_entry_new(HILDON_SIZE_AUTO);
>> ...
>> g_signal_connect(G_OBJECT(main->filter_tb), "activate",
>> G_CALLBACK(callback_filter), main);
>> ...
>> void callback_filter(GtkWidget *widget, MainView *mainview ) {
>>       gchar *ftxt = NULL;
>>       GList *onrec=NULL;
>>
>>       ftxt = hildon_entry_get_text(HILDON_ENTRY(widget));
>>
>>       ...
>>
>> }
>>
>> Thanks for your help
>>
>> Fred
>> _______________________________________________
>> maemo-developers mailing list
>> maemo-developers at maemo.org
>> https://lists.maemo.org/mailman/listinfo/maemo-developers
>

More information about the maemo-developers mailing list