Comments (3)
Greetings.
I wrote a small patch which implements the first half of this issue. That is,
supporting basic search in comboboxtext lists. The custom attribute tag is
"key-search".
A sample script that demonstrates it is:
export DIALOG="
<window>
<vbox>
<comboboxtext key-search=\"true\">
<sensitive>enabled</sensitive>
<item>a</item>
<item>b</item>
<item>b</item>
<item>c</item>
<item>a</item>
</comboboxtext>
<button cancel></button>
</vbox>
</window>
"
gtkdialog -c --program=DIALOG
Pressing b will correctly iterate through the "b" options, likewise for "a".
I have one concern regarding the patch, though. Currently, it reads the
attribute through get_tag_attribute(attr, "key-search"), but because tag_attr
variables are not stored for callbacks, I had to invoke
attributeset_set_if_unset to store it and ask for it in the callback with
attributeset_is_avail.
I admit just today I got familiar with the gtkdialog code, so I ask, is there a
more polished way to do this? In any case, the patch does work, just maybe not
in the most efficiently possible way.
Original comment by [email protected]
on 9 Feb 2012 at 3:13
Attachments:
from gtkdialog.
Hi
Sorry for the delay in replying but my life's full of mundane things that waste
my time at the moment :s
Many thanks for your patch :) I'll have a look at it and apply it when I get
back into coding.
Regards,
Thunor
Original comment by [email protected]
on 27 Feb 2012 at 2:05
from gtkdialog.
When the comboboxtext widget is clicked or Enter is pressed resulting in the
popup appearing, no events whatsoever are reported for the comboboxtext widget
until the popup is closed, therefore I need to gain access to the popup as well
so this isn't as straightforward as one might think.
http://developer.gnome.org/gtk/2.24/GtkComboBox.html#gtk-combo-box-get-popup-acc
essible
I'll have to come back to this.
Original comment by [email protected]
on 28 Jul 2012 at 9:29
from gtkdialog.
Related Issues (20)
- gtk-layer-shell support - wayland/wlroots HOT 1
- gtkdialog throws warnings under X under cage HOT 7
- Simple examples not working
- all links are broken in wiki and docs
- docs need updating HOT 5
- attributeset_get_first(): set is NULL (gtk3 terminal widget)
- release `gtkdialog-0.8.5`
- menu item is rendered only partially
- gtk3 vte2 fg/bg/cursor color VTE-CRITICAL error HOT 3
- Last call for last minute inclusions for v0.8.5 HOT 9
- Build failure of 0.8.5 with autotools HOT 1
- gtk3 entry has-frame=false makes no visual difference
- Box using scrollable property in Gtk3 fails HOT 8
- Build Dependencies for Debian and Red-Hat HOT 3
- Debian package? HOT 4
- width-request and height-request not working on GTK3 version HOT 3
- gtkdialog.info file is not installed by meson
- Install location of Documentation
- make error with implicit declaration of function HOT 8
- Error messages in wayland HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gtkdialog.