Meeting on irc.gnome.org:#gtk-devel Meeting started February 14 2005 16:04 EST (21:04 UTC) In attendence: Manish Singh (yosh), Matthias Clasen (mclasen), Federico Mena Quintero (federico), Sven Neumann (neo) Anders Carlsson (andersca), Billy Biggs (vektor) so... I don't have anything particularly urgent to talk about are there things we should discuss ? whoever has topics, bring them up... I have a GtkComboBox wish, if you think that 's appropriate sure there's also a GtkFileChooser performance problem that I would like to discuss with federico if there are no other topics... just go ahead let's start on GtkComboBox then I saw that GtkEntryCompletion now has an API to add "actions" to the bottom of the completion popup I'd like to see such a thing being added to GtkComboBox hasn't it been like that for some time? I think it's new in 2.6 neo: the actions have been in GtkEntryCompletion since it entered gtk in 2.4 I'd like to easily add "Other..." to a GtkComboBox sure, this can be done using the current API but it is non-trivial to not let the "Other..." item become the selected item neo: so you need some way to hook up a custom action for that item, rather than the default "select this" ? so, I'd like to see a somewhat similar API that allows to do this w/o having to remember the last selected item and doing nasty stuff in GtkComboBox::changed something similar to GtkEntryCompletion for API symmetry? I've implemented this in GIMP http://cvs.gimp.org/viewcvs/gimp/app/display/gimpscalecombobox.c?rev=1.7&view=markup but this API is perhaps not suited for GTK+ since it actually uses GtkAction are there any other use cases beyond "Other..." ? a set of standard choices, then a separator and "Custom..." owen said that this would have been part of the original design but never got implemented oh, I wasn't aware of that a combobox must not have to many items, so it's probably not uncommon to select a set of common ones and to provide access to a larger set of choices it's just an idea, I found it useful and difficult to implement especially since GtkComboBox::changed is RUN_LAST :( neo: sounds like a reasonable idea to me. Can you file a bug for that, so that we don't forget it ? sure federico: are you around? does anyone else know about the ugly details inside the file-chooser ? neo: sorry, was distracted np do you or anyone else have other topics that we should discuss first ? neo: is your bug http://bugzilla.gnome.org/show_bug.cgi?id=166601 ? yes, probably you did a workaround that went into 2.4.14 which involves waiting 0.5 seconds, then show the dialog and populate it asynchronously right? that works rather well when changing directories from within the file-chooser Feb 14 16:48:59 --> jpe (~jpe@pool-141-154-126-130.bos.east.verizon.net) has joined #gtk-devel the problem is that calling gtk_file_chooser_set_uri() seems to block until the tree is populated it would be nice if the file-chooser could just switch to the given folder, test if the file exists() and return, queuing population of the folder at the moment opening a file-chooser is reasonably fast, unless the app calls gtk_file_chooser_set_uri() in the latter case, it can take very long for the dialog to show up it blocks!? the file chooser does this: when you change folders, it: 1. starts a 0.5 second timer 2. slurps as much of the folder as it can 3. if the timer triggers, the model is set on the treeview; subsequent files are added as they come in yes, it does that when you change folders 4. if it finishes loading before the timer triggers, the model is set on the treeview change folders from within the file-chooser if the current path is not the same as the path for set_uri(), then it remembers the uri you want, changes folders, and selects the uri when it finishes loading the folder but it does it also do that if the app selects a file using set_uri() oh, it actually does that? yes see gtk_file_chooser_default_select_path() I'm gone now, see you later perhaps we need to investigate further this was an idea we had to explain the behaviour that has been reported neo: where does it block? set_uri() needs to check if the file exists I agree; that's a bug --- but is there a situation in which you actually care? so it doesn't wait for the file to show in the list of read files ? sure, the GIMP file-chooser aren't you just doing "select the last file the user used, just for convenience"? if you open the file-chooser from a file that has a filename set, we select that file ... and if the file is gone, well, too bad and you'll appear on its parent folder anyway? well, we got bug-reports when we didn't do that neo: what is the exact problmem you are having? jimmac complained that it takes a long time for the gimp file-chooser to open and we are trying to figure out the cause ok, so it *is* the bug I mentioned :) do you know if that futex() shit actually happens due to set_uri()? (jimmac gave me the strace log that is in the bug) neo: I suggested that he use the unix backend for now, and it worked for him OK there's some funkiness going on with gnome-vfs and threads so my guess was wrong I see you are on it the bug he saw was that the file chooser takes much longer to come up if you instantiate it and set_folder than if you set_folder on an existing one (the latter is "it takes a short time to change folders with the gui") I have no idea of why that happens neo: I have a deadline at work that's keeping me busy; would you have time to track this down? it's ugly :( unlikely that I would find time to work myself into this code I can guide you through it :) I just had this idea at what could be causing it. but if you say the problem is in gnome-vfs ... oh? tell me well, I did, see above ah, ok (I thought you had thought of something else) neo: I'd love to have two things 1. a good strace log with timings and threads, both of opening a new file chooser and of setting the path in an existing one (also, possibly, of remapping an existing one like in the gimp) 2. a good ltrace to see what calls to gnome-vfs we are doing you don't mind if I add that request to the bug-report, do you? sure, go ahead no need to hurry with this just want to be able to respond to some of the complaints that we got about the new file-chooser we are getting quite a few of them, btw. these people haven't tried gtk+-2.6 yet though jimmac's report is about 2.6 yes, but most of the people with usability complaints base these on 2.4 sometimes even older 2.4 releases of course a few people won't stop complaining until the entry is back what are your mostfreqs about usablility? lack of entry and long delay before the dialog is displayed what specifically about lack of entry? "it's not exactly like in 2.2" or other? people say that they don't want to be forced to use the mouse type "*.jpg" and have it filter is already in bugzilla and Ctrl-L they say is undiscoverable being able to filter like that would be cool bullshit; everything is already accessible through the keyboard, and you can get to that dialog from the context menu you can even get to the context menu from the keyboard I don't follow the argumentation that the entry is needed don't tell me yes, it got a lot better in 2.6 there's one scenario that is valid if you have a directory with lots of files starting with the same prefix what do you do then? if you use Ctrl-L, you type the first few chars, it shows completion but it doesn't complete in the entry so that one could continue typing Tab used to do that in the old file-selector I'm having trouble visualizing it .jpg" well, imaging a directory with 1000 rendered images the entry starts empty what then? .jpg Type in 'd' and hit tab is faster than typing 'dscn_'. you type "ve" and get a popup that shows you the completion I have a directory of eclipse builds that all (generally) start with 'eclipse-I200502...'. the entry stays "ve" though it could fill in very-long-and-descriptive-name- huh? that works for me I could imagine that it would work nicely if it did that on Tab did that change in 2.6 also? I didn't try it for a while, just told you about the complaints we get federico: it fills it in the entry? (*not* the dropdown) type the start of the prefix, and the entry is filled with the longest common prefix. The LCP minus what you typed is selected. If you then hit Tab, you get the LCP in the entry, nothing selected, and the cursor at the end of the string like the entry starts empty I type "i" yes, it does, but it doesn't move the cursor after the filled-in chars so that one could type the missing bits just tried it again it displays "i[mg_2]" I then hit tab it displays "img_2|" the | is the blinking cursor ah this is img_2000.jpg, etc. yes, that works it's somewhat annoying that the completion popup is taken down and redisplayed yosh: http://bugzilla.gnome.org/show_bug.cgi?id=141153 neo: should be simple to fix. file a bug federico: the bug doesn't specifically mention spanning multiple directories when doing wildcards yosh: ENOTSUPPORTED yeah, and I miss it :P that's what gsearchtool is for having those extensions you proposed in the file-chooser would be cool gsearchtool doesn't help a whole lot when nagivating large image collections in gimp to open yosh: nautilus works pretty well for that or f-spot I'm in love with f-spot like the gimp is a terrible image browser it's a pretty decent image editor, though :) not browsing images. browsing *filenames* to edit yosh: how do you pick among img_XXXX.jpg? realistically, stuff from digital cameras is the only case where end users will get many similar filenames ... for which they should use a photo cataloguing tool, and drag and drop to the gimp to edit them drag and drop is slower than this, when you actually have a reasonable map in your head where things are also, say you have a project dir: with "originals", "web", "print" and you want to open different versions of the image. it's faster to have a single view to pick from I'd love to see an actual user test of that case I bet you they will create three shortcuts in their desktop and work from there shortcuts don't scale to 100s of projects hax0r-gone-graphic-designer doesn't count having a directory per client, with subdirs of different image uses isn't a hax0r thing I'd like to have "Copy Location" in Nautilus, it would copy the URL of the selected file to the primary selection middle click paste in the file chooser would be nice, but that's more of a hax0r thing ;) yeah, like middle-click paste in the gimp toolbox ;) yosh: http://bugzilla.gnome.org/show_bug.cgi?id=153212 heh, I figured that be easily to implement I like the solution suggested in the bug report it's less hackish, the user has a chance to understand what's happening should probably change the gimp implementation to use Open Location as well and http://bugzilla.gnome.org/show_bug.cgi?id=145121 oooh, it also has a patch now I added PATCH keywords for you to these two reports in case you haven't seen that yet: http://jimmac.musichall.cz/demos/misc/pathetic-performance-in-2.6.avi can't view that I don't have a codec it shows the problem we talked about already Meeting ended February 14, 17:25 EST (22:25 UTC)