[maemo-developers] [maemo-developers] Switching between appviews ...

From: Jorge Souza sao_jorge31 at yahoo.com.br
Date: Sat Jul 2 00:48:29 EEST 2005
Hi all,

I wonder if someone could help me with a relative
newbie question. Actually, I'm not able to make the
switch between two 'hildonappviews' work properly.
What I am trying to do is basically build two
different HildonAppView with some widgets in them, and
switching between these appviews using the hildon
environment task navigator (with the mouse/stylus).

Following is the code that handles this switching
(inside the "switch_to" signal callback):

<quoted>

gtk_container_remove(GTK_CONTAINER(appview),
	 GTK_WIDGET(label_test1)); 
gtk_container_add(GTK_CONTAINER(appview),
	      GTK_WIDGET(label_test2));
gtk_widget_show(GTK_WIDGET(label_test2));

hildon_app_notify_view_changed(appview, label_test2);

</quoted>

I implemented a relative simple program to illustrate
better this situation. Take a look at 

<http://200.129.163.1/~agan/screenshot1.jpg>

After the switching, the first label (label_test1) is
remove as well, the newone (label_test2) is added, but
it is not showed.

Am I missing something !? What am I doing wrong ?!

ps: If the quoted code is not enought to a good
unterstanding of my problem, please tell me, and I
just attach it (it is not big - about 100 loc).

ps: if this is not the correct mail list to make
question like mine, could you point me the right one
!?

regards.

Jorge Souza


	
	
		
_______________________________________________________ 
Yahoo! Acesso Grátis - Internet rápida e grátis. 
Instale o discador agora! http://br.acesso.yahoo.com/

More information about the maemo-developers mailing list