Results 1 to 4 of 4

Thread: GTK_FILE_CHOOSER problem

  1. #1

    Default GTK_FILE_CHOOSER problem

    When I use this application that calls gtk_file_chooser_set_current_folder(GTK_FILE_CHOOSER(fs), g_get_home_dir());, The GTK File Chooser dialog comes up but the buttons are disabled. There is also no entries for my home directory and the dialog shows no directories. In the section for Places, all that is shown is Recently Used and filesystem. Clicking on filesystem does nothing. Clicking on Recently Used brings up a list of files but no directory.

    The app is called Celestia and I can build the gnome version and everything works fine. Only the GTK gui does not work correctly. Both versions build virtually the same code. The only difference is the settings file but I haven't found anything that would cause this behavior. Also, I never had this problem with openSuse 10.2 and this never happened with code that I built on openSuse10.2. I think?

    The dialog is gtk_file_chooser_dialog_new which uses GTK_FILE_CHOOSER_ACTION_SAVE.

    Any help would be appreciated.
    Thank You in advance
    spopo

  2. #2

    Default Re: GTK_FILE_CHOOSER problem

    Quote Originally Posted by spopo View Post
    When I use this application that calls gtk_file_chooser_set_current_folder(GTK_FILE_CHOOSER(fs), g_get_home_dir());, The GTK File Chooser dialog comes up but the buttons are disabled. There is also no entries for my home directory and the dialog shows no directories. In the section for Places, all that is shown is Recently Used and filesystem. Clicking on filesystem does nothing. Clicking on Recently Used brings up a list of files but no directory.
    I couldn't see a way to edit the first post so I'll add in this here.
    Another thing I noticed about the Places section of the dialog is that when the cursor is hovering over 2 blank spaces under Recently Used, I can see the path to my home directory and desktop in a yellow box. Clicking on those blank spaces does nothing though.
    spopo

  3. #3

    Default Re: GTK_FILE_CHOOSER problem

    I'm starting to get some feedback from others that have this problem too. Probably due to a problem with GTK version 2.14.
    Here is a link to an image that shows the problem with the GTK Save As window.
    [img=http://img197.imageshack.us/img197/4676/snapshot7p.th.jpg]

    And a link to an image that shows the window working correctly. This is using GNOME libs too. Both use the same code to build this window.
    [img=http://img200.imageshack.us/img200/8199/snapshot6c.th.jpg]



    spop

  4. #4

    Default Re: GTK_FILE_CHOOSER problem

    I was just told today that someone else is having the same problem after he installed Suse 11.1. I'm wondering if there is something I need to set up because I think GTK uses this new GVFS. How do you set that up? I have a folder in my home directory, which is on it's own partition, called .gvfs and it's empty. This kind of tells me that it needs some configuring or something.
    Also, will the line "g_get_home_dir" still work with GVFS?
    spopo

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •