-
-
Notifications
You must be signed in to change notification settings - Fork 90
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
library: Add Text Fields entry #205
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
margin-bottom: 10; | ||
} | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice adding the search entries/results 👍
However — it's not really how GNOME would do it because it makes content reflow. Consider using a scrolled window.
WDYT of using GtkEntryCompleton instead? There is a demo in GTK Demo
I know it's deprecated but GTK5 will take years and we can port to whatever new mechanism is added then.
I think it will make the code simpler too.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For the content reflow, do you want me to wrap the ListBox in a ScrolledWindow?
I thought of using GtkEntryCompletion but since it was deprecated I didn't think to show it. If you're fine with it, I can replace the Search Entry with a GtkEntryCompletion demo instead.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, let's make an exception for this one and use the deprecated API since there is no replacement just yet. It was deprecated to get rid of cell renderer (the underlying backend) — not because we don't have to have this UI pattern.
I'm sure we'll get a replacement.
one more thing - don't forget yo add yourself to contributors in |
Okay I will :) |
There we go okay. This PR has been marked as draft because of an issue with |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
see #205 (comment)
Is there anything else left to be done for this PR then? |
I do get this error when loading the demo
But I guess it can't be helped. |
Adds Text Input (
Entry
/PasswordEntry
/SearchEntry
) widgets.Issue workbenchdev/demos#3