Re:GtkTreeView search on windows. (1 viewing) (1) Guest
Favoured: 0
|
|
|
TOPIC: Re:GtkTreeView search on windows.
|
|
|
|
GtkTreeView search on windows. 2 Years, 3 Months ago
|
Karma: 0
|
|
I am having a problem with GtkTreeView search functionality on windows, which I believe pertains more to GTK2 than to php-gtk2 or my code.
I experience this problem in all GTK applications on my machine, Pidgin, for example.
The search functionality (Ctrl+F or lookahead find) within a GtkTreeView does not work properly. With Ctrl+F the entry pops up, but none of my text is entered. With lookahead find the first character I type is entered and that is it. The search works properly for that one character.
Has anyone else experienced this? Solved it?
|
|
|
|
|
|
|
The administrator has disabled public write access.
|
kksou (Admin)
Admin
Posts: 1233
|
|
Re:GtkTreeView search on windows. 2 Years, 3 Months ago
|
Karma: 20
|
Hi,
I think it's a bug with the windows version they provided on gtk.php.net.
I tried the mac compilation by Anant Narayanan: http://www.nabble.com/Installer-for-OS-X-to16555371.html
The interactive search is working fine.
Elizabeth: if you happen to see this post, would be really great if you could do all of us windows users a great favor to recompile the windows binary using the latest php-gtk cvs. I believe the problem with the interactive search will be fixed in the new compilation.
Regards,
/kksou
|
|
|
|
|
|
|
Last Edit: 2008/05/21 13:35 By kksou.
|
|
|
The administrator has disabled public write access.
|
|
|
|
Re:GtkTreeView search on windows. 2 Years, 3 Months ago
|
Karma: 0
|
|
Hello, thank you for the quick reply.
The issue is not appearing just with php-gtk2 though. I also see it with C++ gtk applications such as Gimp and Pidgin. I am wondering if any other windows users experience this issue.
-carl
|
|
|
|
|
|
|
The administrator has disabled public write access.
|
kksou (Admin)
Admin
Posts: 1233
|
|
Re:GtkTreeView search on windows. 2 Years, 3 Months ago
|
Karma: 20
|
|
They just released PHP-GTK 2.0.1 on May 16!
I tried the interactive search for treeview on the new version. Seems like it’s still not fixed yet for the windows version.
Something’s different though. Last time in windows, you need to hit ctrl-F to start the interactive search. Now, like the linux version, you can just start typing. However, it stops at the first character, and doesn’t receive any more keyboard input.
So apparently it's working, but only for the first character.
Regards,
/kksou
|
|
|
|
|
|
|
The administrator has disabled public write access.
|
|
|
|
Re:GtkTreeView search on windows. 2 Years, 3 Months ago
|
Karma: 0
|
|
One work-around I've found:
Use GtkTreeView->set_enable_search() to disable automatic interactive search.
Use GtkTreeView "start-interactive-search" to launch a dialog when interactive search is started manually with Ctrl+F.
Use GtkTreeView->set_search_entry() to set the search entry field to your own entry field within the dialog.
-carl
|
|
|
|
|
|
|
The administrator has disabled public write access.
|
kksou (Admin)
Admin
Posts: 1233
|
|
Re:GtkTreeView search on windows. 2 Years, 3 Months ago
|
Karma: 20
|
|
Hi Carl,
Your method is brilliant!
I just did a quick test. Yes, it worked!
I think this will benefit a lot of people who have migrated to v2.0/v2.0.1 and found that treeview interactive search is not working!
I will polish up the code and publish it tomorrow. I'm trying to see if I can automatically position the search window such that it appears as if it is the built-in one.
Regards,
/kksou
|
|
|
|
|
|
|
The administrator has disabled public write access.
|
|
|
|
Re:GtkTreeView search on windows. 2 Years, 3 Months ago
|
Karma: 0
|
|
Great I would be interested to see the code!
What I have at the moment is part of a prototype and not so pretty, otherwise I would've posted it. I did have one issue where the "start-interactive-search" signal was raised twice, did you encounter this?
-carl
|
|
|
|
|
|
|
The administrator has disabled public write access.
|
kksou (Admin)
Admin
Posts: 1233
|
|
|
|
|
|
|
The administrator has disabled public write access.
|
|
|
|
Re:GtkTreeView search on windows. 2 Years, 3 Months ago
|
Karma: 0
|
|
Hey, everything looks good! Nice work.
|
|
|
|
|
|
|
The administrator has disabled public write access.
|
|
|
|
|