Hi Carlos, Carlos Nieves Ónega writes: > [...] > > You will need at least GTK 2.4. > > I thought gschem will still provide GTK 2.2 compatibility for a while... > is it going to require GTK >= 2.4, or is the current code still > necessary and included with an #if, for example? >
Indeed, if we want to keep compatibility with GTK 2.2 we will have to '#if' the new code and stay with what we have currently. For the file selection dialog, GTK 2.2 has no support for filtering on file extensions and previewing. And GTK 2.4 introduces some nice filtering capabilities on GtkTreeModels that are used in the component selection dialog (see below). Sooner or later gEDA will support GTK 2.4 (remember that 2.2 is now almost 3 years old). Maybe not this release but what about next one? > [...] > I'd simplify the dialog as much as we can... for example: > - If the filename is not really necessary most of the times, I'd move > it to a tooltip (displays it only if the cursor is over the symbol entry > for some seconds), and/or use a contextual menu, like "copy > filename". I agree with you. I also had in mind the tooltip for the filename. > [...] > - Regarding the search, I'd like to know which filter is applied to > the symbols I'm seeing. This means displaying the criteria or the words > I have searched for (how powerful will the search mechanism be? ). If > this is going to clutter the dialog, then one possibility would be to > display all the search-related widgets only if the user wants to do a > search.... Right now, the search applies to symbol names: a symbol matches the search if its name starts with the search text. I was thinking of hiding the search controls in an expander (GTK 2.4). I also would like to add other search criteria. For example on certain attribute values. However I think it will require some kind of pre-build index as it would be very time consumming to test every symbol in library. Providing we can create a tree model with all relevant information for symbols, searching someting is it is greatly simplified with GtkTreeFilters (GTK 2.4). Regards, Patrick
