gtk issueshttps://gitlab.gnome.org/GNOME/gtk/-/issues2024-03-12T06:23:18Zhttps://gitlab.gnome.org/GNOME/gtk/-/issues/5689Add a replacement for GtkEntryCompletion2024-03-12T06:23:18ZEmmanuele BassiAdd a replacement for GtkEntryCompletionNow that `GtkEntryCompletion` has been deprecated, we need to figure out a possible replacement.
The "suggestion entry" widget in gtk4-demo seems to be a good starting point, but there are various use cases covered (badly) by `GtkEntryC...Now that `GtkEntryCompletion` has been deprecated, we need to figure out a possible replacement.
The "suggestion entry" widget in gtk4-demo seems to be a good starting point, but there are various use cases covered (badly) by `GtkEntryCompletion` that may not fit into a single widget. We may even delegate this particular widget to libadwaita, if it gets too niche.
It would be good to gather requirements from the current users of `GtkEntryCompletion`, and loop the design team into the topic.https://gitlab.gnome.org/GNOME/gtk/-/issues/4976Incorrect autocomplete popup location in the Gtk3 file dialog2023-02-07T16:31:38ZDima Ryazanovdima@gmail.comIncorrect autocomplete popup location in the Gtk3 file dialog## Steps to reproduce
1. Have a multi-monitor setup
2. Open a file dialog in any Gtk3 app
3. Start typing a file name to trigger autocomplete
## Current behavior
The popup menu is displayed far to the right of the input box
## Expe...## Steps to reproduce
1. Have a multi-monitor setup
2. Open a file dialog in any Gtk3 app
3. Start typing a file name to trigger autocomplete
## Current behavior
The popup menu is displayed far to the right of the input box
## Expected outcome
The popup should be next to the input box
## Version information
Gtk 3.24.34
## Additional information
Just a guess, but could be related to https://gitlab.gnome.org/GNOME/gtk/-/issues/683https://gitlab.gnome.org/GNOME/gtk/-/issues/3316EntryCompletion doesn't pop up correctly under sway (wayland) unless parent w...2020-11-07T20:59:29ZDaniel Kahn GillmorEntryCompletion doesn't pop up correctly under sway (wayland) unless parent window is vertically maximized[test.py](/uploads/e9f20fe93e5a677f60af3c722540026e/test.py) creates a simple Gtk app with a GtkEntryCompletion object attached to a GtkEntry object toward the bottom of the window.. I'm running it under [sway](https://swaywm.org/), a t...[test.py](/uploads/e9f20fe93e5a677f60af3c722540026e/test.py) creates a simple Gtk app with a GtkEntryCompletion object attached to a GtkEntry object toward the bottom of the window.. I'm running it under [sway](https://swaywm.org/), a tiling wayland compositor.
I'm running this on debian unstable, with libgtk-3-0 3.24.23-2, and sway 1.5-5.
When the app window is vertically maximized, the Completion "dropdown" appears above the Entry, as expected. But if the app window is not vertically maximized, the dropdown appears *below* the Entry, with the result that it's nearly invisible. Some screenshots:
![20201101_23h45m31s_grim](/uploads/6146b5068ccc7284d51217e4bf0f1e41/20201101_23h45m31s_grim.png)
![20201101_23h45m24s_grim](/uploads/4cadf0f857de2ff0d633ae1099d254db/20201101_23h45m24s_grim.png)
![20201101_23h45m22s_grim](/uploads/eba6b18f258e78d7dda68ddc792bbbec/20201101_23h45m22s_grim.png)
It looks like the GtkEntryCompletion is confused about where to render its dropdown in this situation.
If i can do to help debug this further, let me know what you need.
Thanks for GTK!https://gitlab.gnome.org/GNOME/gtk/-/issues/2891Add GtkListView:focused-position2023-12-11T18:46:29ZMatthias ClasenAdd GtkListView:focused-positionThis would be a writable position that normally is updated by the focus machinery. It is similar to the cursor concept in GtkTreeView.
It could be used by entry completion to ensure the selected items stays in visible range.This would be a writable position that normally is updated by the focus machinery. It is similar to the cursor concept in GtkTreeView.
It could be used by entry completion to ensure the selected items stays in visible range.https://gitlab.gnome.org/GNOME/gtk/-/issues/2794Wrong GtkEntryCompletion position on wayland with multi-monitor configuration2023-02-20T16:19:25ZpolterWrong GtkEntryCompletion position on wayland with multi-monitor configuration## Steps to reproduce
1. Setup 2 monitors (in my case, 1920x1080 and 2560x1440)
2. Open GTK3 application with popups in text fields such as Gnome Weather, Evolution, Geary, etc.
3. Move this application to the most right monitor
4. ...## Steps to reproduce
1. Setup 2 monitors (in my case, 1920x1080 and 2560x1440)
2. Open GTK3 application with popups in text fields such as Gnome Weather, Evolution, Geary, etc.
3. Move this application to the most right monitor
4. Try to write something in field that has GtkEntryCompletion popup
<!--
You should try and reproduce with the demos applications available
under the `demos` directory, or the test programs in the `tests` directory.
Alternatively, please attach a *small and self-contained* example
*written in C* that exhibits the issue.
-->
## Current behavior
Pop-up menu is misplaced, it is positioned much to the right of the cursor, sometimes it goes out of the screen.
## Expected outcome
Pop-up should be positioned under the cursor as it does on the left (first) screen.
## Version information
* GTK 3.24 (gtk3-3.24.20-1.fc32.x86_64)
* GNOME 3.36
* Fedora 32
* Intel Corporation HD Graphics 630 (rev 04)
## Additional information
![Screencast_28.05.2020_01_25_18](/uploads/acf519cdd3a35191704bcc7a87e3a11a/Screencast_28.05.2020_01_25_18.webm)
Minimal example:
```
#include <gtk/gtk.h>
#include <stdlib.h>
gboolean func(GtkEntryCompletion *completion,
const gchar *key,
GtkTreeIter *iter,
gpointer user_data) {
GtkTreeModel *model = gtk_entry_completion_get_model(completion);
gchar *item;
gtk_tree_model_get(model, iter, 0, &item, -1);
gboolean ans = (atoi(key) % 2 == atoi(item) % 2);
g_free(item);
return ans;
}
int main(int argc, char *argv[]) {
gtk_init(&argc, &argv);
GtkWidget *window = gtk_window_new(GTK_WINDOW_TOPLEVEL);
GtkWidget *entry = gtk_entry_new();
GtkEntryCompletion *completion = gtk_entry_completion_new();
GtkListStore *ls = gtk_list_store_new(1, G_TYPE_STRING);
GtkTreeIter iter;
int i;
char buf[20];
for(i=0; i<20; i++) {
gtk_list_store_append(ls, &iter);
sprintf(buf, "%d", i);
gtk_list_store_set(ls, &iter, 0, buf, -1);
}
gtk_entry_completion_set_model(completion, GTK_TREE_MODEL(ls));
gtk_entry_completion_set_match_func(completion, (GtkEntryCompletionMatchFunc)func, NULL, NULL);
gtk_entry_set_completion(GTK_ENTRY(entry), completion);
gtk_entry_completion_set_text_column(completion, 0);
gtk_container_add(GTK_CONTAINER(window), entry);
gtk_widget_show_all(window);
gtk_main();
return 0;
}
```https://gitlab.gnome.org/GNOME/gtk/-/issues/699Entry completion drop-down is misplaced on external monitor when on Wayland2023-09-24T00:23:19ZBugzillaEntry completion drop-down is misplaced on external monitor when on Wayland## Submitted by Debarshi Ray `@debarshir`
**[Link to original bug (#774065)](https://bugzilla.gnome.org/show_bug.cgi?id=774065)**
## Description
If you run gtk3-demo -> Entry -> Entry Completion inside a Wayland session on an extern...## Submitted by Debarshi Ray `@debarshir`
**[Link to original bug (#774065)](https://bugzilla.gnome.org/show_bug.cgi?id=774065)**
## Description
If you run gtk3-demo -> Entry -> Entry Completion inside a Wayland session on an external monitor and type "total", the entry completion drop-down is placed somewhere far away from the GtkEntry. Depending on the exact layout, you might see it somewhere outside the GtkWindow or might not see it at all.
It works as expected if the GtkWindow is placed on the laptop's built-in display.
Versions:
gtk3-3.22.2-1.fc25.x86_64
mutter-3.22.1-6.fc25.x86_64
The bug is visible regardless of whether the external monitor is set as primary or not.
Version: 3.22.xhttps://gitlab.gnome.org/GNOME/gtk/-/issues/249gtkentry completion API support for getting dropdown item selection2020-09-29T03:16:26ZBugzillagtkentry completion API support for getting dropdown item selection## Submitted by Reinout van Schouwen
**[Link to original bug (#309035)](https://bugzilla.gnome.org/show_bug.cgi?id=309035)**
## Description
In Epiphany we need to be able to delete entries from the completion dropdown
list by pressi...## Submitted by Reinout van Schouwen
**[Link to original bug (#309035)](https://bugzilla.gnome.org/show_bug.cgi?id=309035)**
## Description
In Epiphany we need to be able to delete entries from the completion dropdown
list by pressing the Delete key. (See [bug 117892](https://bugzilla.gnome.org/show_bug.cgi?id=117892))
Please make this possible with the gtkentry completion API.
Version: 3.22.x
### Blocking
* [Bug 117892](https://bugzilla.gnome.org/show_bug.cgi?id=117892)
* [Bug 314754](https://bugzilla.gnome.org/show_bug.cgi?id=314754)
### See also
* [Bug 778626](https://bugzilla.gnome.org/show_bug.cgi?id=778626)