[maemo-developers] [maemo-developers] show pictures with delay
From: rh ronny at get-intouch.comDate: Mon Sep 5 07:41:45 EEST 2005
- Previous message: [maemo-developers] Packages for minisip and dependencies
- Next message: [maemo-developers] show pictures with delay
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Here is my short snapshot code, this new code also for animate my pictures: myinc=10; void myview(HildonApp* app) { HildonAppView *appview; appview=HILDON_APPVIEW(hildon_appview_new("My View")); ..... if(myinc>0) { result2=g_strconcat(dirname,ressplit[oldpos2],NULL); gtk_image_set_from_file(picture2,result2); gtk_widget_set_size_request(picture2,16*myinc,160); free(result2); result21=g_strconcat(dirname,ressplit[oldpos3],NULL); gtk_image_set_from_file(picture21,result21); gtk_widget_set_size_request(picture21,16*(10-myinc),160); free(result21); } else ....... image = gtk_image_new_from_file("/home/sb/ronny/Pictures/background.jpg"); imageback=gtk_image_new_from_file("/home/sb/ronny/Pictures/back.jpg"); imagenext=gtk_image_new_from_file("/home/sb/ronny/Pictures/next.jpg"); buttonback=gtk_button_new(); gtk_widget_set_size_request(buttonback,130,60); gtk_button_set_image(buttonback,imageback); g_signal_connect(G_OBJECT(buttonback),"clicked", G_CALLBACK(callback_mainview),app); buttonnext=gtk_button_new(); gtk_widget_set_size_request(buttonnext,130,60); gtk_button_set_image(buttonnext,imagenext); g_signal_connect(G_OBJECT(buttonnext),"clicked", G_CALLBACK(callback_contentview),app); fix=gtk_fixed_new(); gtk_fixed_put(GTK_FIXED(fix),image,0,0); gtk_fixed_put(GTK_FIXED(fix),buttonback,10,414); gtk_fixed_put(GTK_FIXED(fix),imageback,10,414); gtk_fixed_put(GTK_FIXED(fix),buttonnext,660,414); gtk_fixed_put(GTK_FIXED(fix),imagenext,660,414); if(myinc>0) { gtk_fixed_put(GTK_FIXED(fix),picture2,471,115); gtk_fixed_put(GTK_FIXED(fix),picture21,471+(16*myinc),115); } else ....... gtk_container_add(GTK_CONTAINER(appview),fix); gtk_widget_show_all(GTK_WIDGET(appview)); hildon_app_set_appview( app, appview ); hildon_appview_set_fullscreen(appview, TRUE); if(myinc>0) { myinc--; g_usleep(500000); myview(app); } } Please kindly help. :) ----- Original Message ----- From: <ml_sergico at virgilio.it> To: <ronny at get-intouch.com> Sent: Thursday, September 01, 2005 4:59 PM Subject: R: [maemo-developers] show pictures with delay > > > ----Messaggio originale---- > Da: ronny at get-intouch.com > Data: 1-set- > 2005 11.41 > A: "maemo-developers"<maemo-developers at maemo.org> > Ogg: > [maemo-developers] show pictures with delay > > Hi all, > > I have a problem. > I have 8 pictures & I want to display those pictures one by one in one > GtkImage, with 500ms delay in every picture. > I try to refresh my > Hildonapp, Hildonappview & GtkImage every 500 ms automatically (loop), > but the result is always the first picture show off and then after 4 > sec, the last pictures show off. > Why the other pictures don't show off > ? > Does anyone know howto fix that problem ? > > Hello, > try to send a > _short_ snapshot of your code, maybe it could help understanding the > problem... > Bye > > Sergio "33%" Borghese > >
- Previous message: [maemo-developers] Packages for minisip and dependencies
- Next message: [maemo-developers] show pictures with delay
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]