Re: Trigger a GtkEntryCompletion's popup
On Fri, 2015-10-09 at 09:56 +1100, Daniel Kasak wrote: > I had issues with GtkComboBoxText last time I tried it, though admittedly > that was a long time back. Anyway, yes I'm aware of these widgets, and use > GtkComboBox regularly. I'll look into GtkComboBoxText again. But the > question remains - is there a way to trigger the completion's popup? I am using GtkComboBoxText sine many years for my schematics editor for entering grid size, have predefined sizes 100, 50, 25 10 and allow entering arbitrary sizes, which can be also added to that list. Works fine in Ruby, so I assume that it will work fine everywhere. ( http://ssalewski.de/PetEd.html.en) Entry completion working for zero characters -- I have some difficulty understanding it. When there is zero input, there is not much to complete. May be useful, maybe you have to talk to developers and explain your use case. ___ gtk-list mailing list gtk-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-list
Re: Trigger a GtkEntryCompletion's popup
On Fri, Oct 9, 2015 at 6:43 AM, Stefan Salewskiwrote: >Entry completion working for zero > characters -- I have some difficulty understanding it. When there is > zero input, there is not much to complete. it means, typically, "show me all possible completions". Useful in cases where there are not that many options. ___ gtk-list mailing list gtk-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-list
Re: Trigger a GtkEntryCompletion's popup
On Thu, 2015-10-08 at 15:36 +1100, Daniel Kasak wrote: > Hi all. I have some GtkEntry widgets with a GtkEntryCompletion > attached. > I've set the minimum key length to 0, hoping this would make the > completion's popup appear on focus in, but it doesn't. I have noticed > that > if I type something, then hit backspace, the popup appears. So I guess > I > can hook up some code on focus-in to simulate this - ie insert some > text > and delete it. Is there a cleaner way of doing it? > Maybe you want a https://developer.gnome.org/gtk3/stable/GtkComboBox.html https://developer.gnome.org/gtk3/stable/GtkComboBoxText.html with active entry widget (has-entry = TRUE) ? So you can select from a list of text or enter own text. ___ gtk-list mailing list gtk-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-list
Re: Trigger a GtkEntryCompletion's popup
I had issues with GtkComboBoxText last time I tried it, though admittedly that was a long time back. Anyway, yes I'm aware of these widgets, and use GtkComboBox regularly. I'll look into GtkComboBoxText again. But the question remains - is there a way to trigger the completion's popup? Dan On Fri, Oct 9, 2015 at 8:21 AM, Stefan Salewskiwrote: > On Thu, 2015-10-08 at 15:36 +1100, Daniel Kasak wrote: > > Hi all. I have some GtkEntry widgets with a GtkEntryCompletion > > attached. > > I've set the minimum key length to 0, hoping this would make the > > completion's popup appear on focus in, but it doesn't. I have noticed > > that > > if I type something, then hit backspace, the popup appears. So I guess > > I > > can hook up some code on focus-in to simulate this - ie insert some > > text > > and delete it. Is there a cleaner way of doing it? > > > > Maybe you want a > > https://developer.gnome.org/gtk3/stable/GtkComboBox.html > https://developer.gnome.org/gtk3/stable/GtkComboBoxText.html > > with active entry widget (has-entry = TRUE) ? > > So you can select from a list of text or enter own text. > ___ gtk-list mailing list gtk-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-list
Trigger a GtkEntryCompletion's popup
Hi all. I have some GtkEntry widgets with a GtkEntryCompletion attached. I've set the minimum key length to 0, hoping this would make the completion's popup appear on focus in, but it doesn't. I have noticed that if I type something, then hit backspace, the popup appears. So I guess I can hook up some code on focus-in to simulate this - ie insert some text and delete it. Is there a cleaner way of doing it? Thanks. Dan ___ gtk-list mailing list gtk-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-list