Re: Switching window after giving delay with g_usleep

2010-05-27 Thread Daniil Ivanov
Hi Pallavi!

  What you should do to achieve your goal:
  1. Connect callback to delete-event of the first window
  http://library.gnome.org/devel/gtk/2...t-delete-event
  2. In this callback add timeout callback with g_timeout_add
  http://library.gnome.org/devel/glib/...#g-timeout-add
  3. Do in this callback what you currently do in main_quit_handler
except of using g_usleep.

Thanks, Daniil

On Wed, May 26, 2010 at 3:28 PM, Pallavi Kandhare
pallavi.kandh...@yahoo.com wrote:
 Hello,
 I am using g_usleep in my 1st window. And after specified time interval I 
 want to display 2nd window.

 My code is as follows:

 HildonWindow *window;

 static gboolean main_quit_handler(GtkWidget *image)
 {
            GtkWidget *win;
            GtkWidget *vbox;

            GtkWidget *label;

            /* Create the main window */
            win = hildon_stackable_window_new();
            gtk_window_set_title(GTK_WINDOW (win), Display image );

        /* Setting a label in the new window */
            label = gtk_label_new(Hello);
            gtk_container_add(GTK_CONTAINER (win), label);

           g_usleep(500);
               gtk_container_remove(GTK_CONTAINER (window), image);

           gtk_widget_show_all(win);
           gtk_container_add(GTK_CONTAINER (window), label);
           gtk_widget_show_all ( GTK_WIDGET ( window ) );
 }

 int main
 {
    
    GtkWidget *image;
    gboolean value;

    image = gtk_image_new_from_file(my_file_path);
    gtk_container_add(GTK_CONTAINER (window), image);
    gtk_widget_show_all ( GTK_WIDGET ( window ) );

   gtk_quit_add(0, main_quit_handler, image);

    gtk_main();

    return 0;
 }

 When i run the code I am able to see only 1st window. 2nd window isnt visible.

 Any help please?




 ___
 maemo-developers mailing list
 maemo-developers@maemo.org
 https://lists.maemo.org/mailman/listinfo/maemo-developers

___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: Nokia N900 Theme Chooser Not Working

2010-05-27 Thread Eduard Pertíñez
you could try to find some vfat analiser and look for a given address in the 
hole fs of the disk. Then use the analiser to unmark the deleted file.

Eduard

Els historiadors creuen que fou als principis del segle XXI que a la data 
estelar Dimarts, 25 de maig de 2010, Cornelius Hald va escriure:
 fluke box wrote:
  Thanks Conny !
  Yeah,  Un-installing Widget Gallery solved my first problem.
  
  Any help regarding second problem ?
 
 Not really. Restore a more recent backup. If you don´t have one, I
 think, you´re out of luck. Sorry.
 
 Anyways, I don´t really think those are topics for the developers list.
 
 Cheers,
 Conny
 ___
 maemo-developers mailing list
 maemo-developers@maemo.org
 https://lists.maemo.org/mailman/listinfo/maemo-developers
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: Qt Autorotation

2010-05-27 Thread Luca Donaggio
On Wed, May 26, 2010 at 6:27 PM, Felipe Crochik fel...@crochik.com wrote:

 I combined the reply to all post:

 My application seems to start autorotating after I click on the
 application title to show the menu for the first time. I don't have to
 select anything and I don't do anything different on my code about the
 implementation of the menu.

 Very odd... I will have to try some different things to see if I can
 isolate
 the problem further.

 @Daniil: The test project works fine on my n900
 @Luca: I don't think you need to set on all windows, just the top most
 seems
 to be enough.
 @Attila: I did not know that.

 Thank you
 Felipe

 -Original Message-
 From: Daniil Ivanov [mailto:daniil.iva...@gmail.com]
 Sent: Wednesday, May 26, 2010 11:53 AM
 To: Felipe Crochik
 Cc: maemo-developers@maemo.org
 Subject: Re: Qt Autorotation

 Hi Felipe!

 Two things. Autorotation was around since N900 sales release.
 And this test app works for me fine in PR 1.2 without pressing anything.

 #include QApplication
 #include QMainWindow

 int
 main (int argc,
  char **argv)
 {
QApplication app(argc, argv);
QMainWindow win;
win.setAttribute(Qt::WA_Maemo5AutoOrientation, true);
win.show();

return app.exec();
 }

 ~Daniil.

 On Wed, May 26, 2010 at 6:21 PM, Felipe Crochik fel...@crochik.com
 wrote:
  Now that PR1.2 is out autorotation works!!! Great but.
  Has anybody figured out how to control the autorotation on the
 application
  (without the Ctrl+shift+r)?
 
  The WA_Maemo5AutoOrientation only tells the device that you want this
  application to autorotate but the user still needs to press the
 shortcut
  (I have the worst time with my fat fingers) to activate/deactivate it.
 And
  worst of all you need to do the same every time you start the
 application.
  At least I would like to allow the user to save as a setting for later...
 
  Thanks,
  Felipe
 
  ___
  maemo-developers mailing list
  maemo-developers@maemo.org
  https://lists.maemo.org/mailman/listinfo/maemo-developers
 


Felipe, you're absolutely right: once set the autorotation flag in the
topmost window of the stack, the others seem  to retain it.
Only issue remaining is that once you open a new stacked window, it starts
in landscape mode, disregarding current device orientation, *but* its child
widgets are layed out respecting the correct screen proportions.
I can check for screen geometry and set the landscape or portrait flag
accordingly, but I'm wondering if this will disable the accelerometers from
then on (ie: overriding the autorotation flag set before).
Any clue on this?

-- 
Luca Donaggio
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Which one is active on my phone GPRS or WiFi?

2010-05-27 Thread sandeep kodimela
HI all
I'm just trying to find out the the active connection on my 
phone among the available(GPRS,WiFi).
Can anybody suggest me how to 
do it?

Thanks in advance

Regards
Sandeep
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: Which one is active on my phone GPRS or WiFi?

2010-05-27 Thread Nicola Mfb
On Thu, May 27, 2010 at 11:01 AM, sandeep kodimela
sandeep.kodim...@votarytech.com wrote:
 HI all
 I'm just trying to find out the the active connection on my
 phone among the available(GPRS,WiFi).
 Can anybody suggest me how to
 do it?

I'm experimenting the bearer module of qt-mobility and works nice,
it's one of the easier way.

Regards

 Niko
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: Qt Autorotation

2010-05-27 Thread Felipe Crochik
Luca,
I ran into the same issue - the new windows always start on landscape - and 
used the same workaround - checked the screen resolution and when taller set 
the portrait attribute.
And yes, I believe you are right, setting the attribute will disable the 
autorotation for the new window (does not affect the original one though).
I tried to set the portrait attribute and then the autorotation on the new 
window but then the window will start again on landscape mode. 
One workaround I did not try was to set the portrait attribute and a timer for 
a little after the window is showing to set the autorotation attribute.
It seems that the autorotation dispatcher only check the window attributes 
after the window is showing and/or on a predefined schedule (maybe it is a 
bug). 
My application (macuco2 on the dev repository if you want to try) seems to take 
some time after starting to start receiveing the signals... Sometimes only 
starts after you show the menu for the first time.
Felipe 

 Felipe, you're absolutely right: once set the autorotation flag in the
 topmost window of the stack, the others seem   to retain it.
 Only issue remaining is that once you open a new stacked window, it
 starts in landscape mode, disregarding current device orientation, *but*
 its child widgets are layed out respecting the correct screen
 proportions. I can check for screen geometry and set the landscape or
 portrait flag accordingly, but I'm wondering if this will disable the
 accelerometers from then on (ie: overriding the autorotation flag set
 before). Any clue on this?
 
 -- 
 Luca Donaggio

___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: No Virtual images found in download site

2010-05-27 Thread daniel wilms

Hi,

ext Pavan Kumar wrote:

Hi,
  Today i wanted to download *Maemo SDK Virtual Images *for windows 
platform. I dont see images 
in http://tablets-dev.nokia.com/maemo-dev-env-downloads.php 


Were they removed for upgraded images ?


there will be really soon an update of the VMWare images. To avoid, that 
people download outdated images, we removed them from the server for a 
short while. I will let you know, when they are back up. Sorry for the 
inconvenience.


Daniel


regards,
Pavan



___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: No Virtual images found in download site

2010-05-27 Thread Pavan Kumar
Thanks daniel for the info.

On Thursday, May 27, 2010, daniel wilms daniel.wi...@nokia.com wrote:
 Hi,

 ext Pavan Kumar wrote:

 Hi,
   Today i wanted to download *Maemo SDK Virtual Images *for windows platform. 
 I dont see images in http://tablets-dev.nokia.com/maemo-dev-env-downloads.php
 Were they removed for upgraded images ?


 there will be really soon an update of the VMWare images. To avoid, that 
 people download outdated images, we removed them from the server for a short 
 while. I will let you know, when they are back up. Sorry for the 
 inconvenience.

 Daniel


 regards,
 Pavan




___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Alternate Line Service (ALS) support

2010-05-27 Thread Christopher Intemann
Hello,

I have the CPHS service alternate line service activate on my simcard.
This service features a seperated line with a second number to distinguish
between business and private calls. On many Nokia handsets, one can switch
between lines by holding the hash button for a few seconds.
The N900 does not officialy support this service.
I read somewhere that it was possible to at least receive calls on the
second line.
However, when I try to call my phone on the second line, the call will not
get through.
Is there any way to acivate the second line on the N900 at least for
incomming calls?
Thanks,
 Chris
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


QT4.6 with PR1.2 has introduced issues

2010-05-27 Thread Ram Kurvakat
Hello,

I have seen a few issues with the QT 4.6 version released with PR1.2.
I've been using QT4.6 since PR1.1 and there seems to be these annoying changes 
since.

I've provided some links to marked images to explain the issue so its easier to 
comprehend.

Issue1 : http://bit.ly/cYPtRW http://bit.ly/cYPtRW 

Issue2 : http://bit.ly/cPjtAG http://bit.ly/cPjtAG 

Issue3 : http://bit.ly/a5E4sk http://bit.ly/a5E4sk 

Could somebody please throw some light on these issues since it appears in all 
development Ive done using QT4.6 from PR1.1.
These changes were totally unexpected and not only that, it seems anything than 
an improvement, maybe even bugs.
Please do not answer this by saying QT4.6 on PR1.1 was a beta deveopment 
version, in that case it seems then from the examples above the beta version 
was more proper.

Thanks a lot for any help with this.

cheers
--
krk969
(Ram)
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers