Discussion Board

Page 1 of 2 12 LastLast
Results 1 to 15 of 21
  1. #1
    Registered User denniswang's Avatar
    Join Date
    Dec 2008
    Posts
    81
    i want to design a app that image viewer, it can be able to set the viewing image to specified homescreen wallpaper, how to do that?
    the platform is maemo 5(N900) and i will use QT to develop it.

  2. #2
    Nokia Developer Moderator divanov's Avatar
    Join Date
    Oct 2009
    Posts
    4,326
    You should save images' uris to the following GConf keys:
    /apps/osso/hildon-desktop/views/N/bg-image
    where N is a number of the desktop from 1 to 4 by default.
    Current active desktop number is saved in this GConf key:
    /apps/osso/hildon-desktop/views/current
    and list of active desktops (as hardcoding 1-4 is not probably a good idea)
    /apps/osso/hildon-desktop/views/active

    Useful link:
    http://linux.die.net/man/1/gconftool-2

  3. #3
    Registered User fily_love's Avatar
    Join Date
    Mar 2009
    Posts
    118
    Quote Originally Posted by divanov View Post
    You should save images' uris to the following GConf keys:
    /apps/osso/hildon-desktop/views/N/bg-image
    where N is a number of the desktop from 1 to 4 by default.
    Current active desktop number is saved in this GConf key:
    /apps/osso/hildon-desktop/views/current
    and list of active desktops (as hardcoding 1-4 is not probably a good idea)
    /apps/osso/hildon-desktop/views/active

    Useful link:
    http://linux.die.net/man/1/gconftool-2
    i found "hildon-desktop" file path in scratchbox , but i counldn't found the next file folder "views".
    my file path was [sbox-FREMANTLE_X86: /etc/hildon-desktop] >
    does it right??
    thank you for give me a long time help..

  4. #4
    Nokia Developer Moderator divanov's Avatar
    Join Date
    Oct 2009
    Posts
    4,326
    GConf keys have nothing to do with filesystem
    Code:
    $run-standalone.sh gconftool-2 -R /apps/osso/hildon-desktop/views
     current = 3
     active = [1,2,3,4]

  5. #5
    Registered User fily_love's Avatar
    Join Date
    Mar 2009
    Posts
    118
    Quote Originally Posted by divanov View Post
    GConf keys have nothing to do with filesystem
    Code:
    $run-standalone.sh gconftool-2 -R /apps/osso/hildon-desktop/views
     current = 3
     active = [1,2,3,4]
    sorry ,i am a little stupid,
    i want to set a image to background of screen, and how could i coding it??

  6. #6
    Nokia Developer Moderator divanov's Avatar
    Join Date
    Oct 2009
    Posts
    4,326
    Quote Originally Posted by fily_love View Post
    sorry ,i am a little stupid,
    i want to set a image to background of screen, and how could i coding it??
    You can use libgconf2-6 to access and alter GConf keys. Here is a documentation:
    http://library.gnome.org/devel/gconf/stable/

  7. #7
    Registered User ftball's Avatar
    Join Date
    Mar 2010
    Posts
    1
    Quote Originally Posted by divanov View Post
    You can use libgconf2-6 to access and alter GConf keys. Here is a documentation:
    http://library.gnome.org/devel/gconf/stable/
    hi , everybody, I am a new guy for develop qt on maemo, and I also want to write for this feature. I read for this talk, but still not very clearly for how to coding. Could these superiores can tell me more clarity to set background image ??

    thank you!

  8. #8
    Nokia Developer Moderator divanov's Avatar
    Join Date
    Oct 2009
    Posts
    4,326
    Quote Originally Posted by ftball View Post
    hi , everybody, I am a new guy for develop qt on maemo, and I also want to write for this feature. I read for this talk, but still not very clearly for how to coding. Could these superiores can tell me more clarity to set background image ??

    thank you!
    There are some small example applications showing how to access GConf keys
    http://people.gnome.org/~newren/tuto.../html/apd.html
    Last edited by divanov; 2010-03-30 at 09:35.

  9. #9
    Registered User fily_love's Avatar
    Join Date
    Mar 2009
    Posts
    118
    Quote Originally Posted by divanov View Post
    There are some small example applications showing how to access GConf keys
    http://people.gnome.org/~newren/tuto.../html/apd.html
    thanks !! so difficult!

  10. #10
    Nokia Developer Moderator divanov's Avatar
    Join Date
    Oct 2009
    Posts
    4,326
    Quote Originally Posted by fily_love View Post
    thanks !! so difficult!
    Cannot agree with you
    http://wiki.forum.nokia.com/index.ph...per_in_Maemo_5

  11. #11
    Registered User fily_love's Avatar
    Join Date
    Mar 2009
    Posts
    118
    [QUOTE=divanov;720547]Cannot agree with you
    http://wiki.forum.nokia.com/index.ph...per_in_Maemo_5[/QUOTE

    divanov, if you are in China ,i will treat you for dinner!!
    so nice man!

  12. #12
    Nokia Developer Moderator divanov's Avatar
    Join Date
    Oct 2009
    Posts
    4,326
    You are welcome. I'm not really located in China.

  13. #13
    Registered User denniswang's Avatar
    Join Date
    Dec 2008
    Posts
    81
    Quote Originally Posted by divanov View Post
    You are welcome. I'm not really located in China.
    hi divanov, i have some problem with the setWallpaper() function, what is the parameter of that function. the first one is my wallpaper path what i want, the second one is return ID in the getXIntProperty() function. but it doesn't work, the problem is the return value of gconf_client_set_string(), maybe the parameter is wrong when call that.

  14. #14
    Nokia Developer Moderator divanov's Avatar
    Join Date
    Oct 2009
    Posts
    4,326
    Quote Originally Posted by denniswang View Post
    hi divanov, i have some problem with the setWallpaper() function, what is the parameter of that function. the first one is my wallpaper path what i want, the second one is return ID in the getXIntProperty() function. but it doesn't work, the problem is the return value of gconf_client_set_string(), maybe the parameter is wrong when call that.
    And what is a content of gconf_client_set_string error message?

  15. #15
    Registered User denniswang's Avatar
    Join Date
    Dec 2008
    Posts
    81
    Quote Originally Posted by divanov View Post
    And what is a content of gconf_client_set_string error message?
    the error is "segmentation fault"

Page 1 of 2 12 LastLast

Similar Threads

  1. Nokia 5800 homescreen issues
    By gtbarry in forum General Development Questions
    Replies: 7
    Last Post: 2009-06-23, 04:18
  2. Theme studio 2.2 ( how to set the wallpaper full screen)
    By rohit330 in forum Themes/Carbide.ui
    Replies: 2
    Last Post: 2009-03-31, 05:58
  3. Set Exif Gps Info Latitude.
    By shashishaw in forum Symbian C++
    Replies: 15
    Last Post: 2009-03-24, 16:50
  4. Set a Wallpaper in 3rd edition??
    By ismalg in forum Symbian C++
    Replies: 9
    Last Post: 2007-05-21, 13:24
  5. How can set wallpaper by program?
    By nanara in forum Symbian Tools & SDKs
    Replies: 4
    Last Post: 2007-03-08, 04:55

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved