GNOME Bugzilla – Bug 743260
Popover atached to Gtk::CellEditable (cast to Gtk::Entry) not load properly
Last modified: 2018-05-22 12:13:39 UTC
Popover atached to Gtk::CellEditable (cast to Gtk::Entry) not load properly. The PopOvers apears 1 second atached to TreeView. After disappears and reappears atached to CellEditable. Gtk::Popover m_pop; // Handler Cell Edit void MyClass::cellrenderer_validated_on_editing_started_value (Gtk::CellEditable* cell_editable, const Glib::ustring& path) { Gtk::Entry* pEntry = dynamic_cast<Gtk::Entry*> (celleditable_validated); if (pEntry) { m_pop.set_relative_to (*pEntry); m_pop.set_position (Gtk::POS_RIGHT); . . . } }
I added a Gtk::Popover to the example program at https://git.gnome.org/browse/gtkmm-documentation/tree/examples/book/treeview/editable_cells but it didn't behave the way you describe. Can you please attach a complete (but preferably short) program that can be compiled and tested.
Created attachment 295089 [details] Example to reproduce bug
I used the tags (FIXME - END FIXME) to differentiate the code that I added.
Comment on attachment 295089 [details] Example to reproduce bug I used the tags (FIXME - END FIXME) to differentiate the code that I added.
I have filed the gtk+ bug 743437.
Created attachment 361414 [details] extracted/concatenated test case Isn't this really just a duplicate of the GTK+ one? Though in this case, with the entry editable, it does show another symptom, which may or may not be directly related: the popover sometimes briefly appears at the right place, with transition, then jumps back to the top-left of the 2nd column. Also, there is a problem with the test case; it adds the button more than once, so it piles up these warnings: (a.exe:7636): Gtk-WARNING **: Attempting to add a widget with type gtkmm__GtkButton to a container of type gtkmm__GtkPopover, but the widget is already inside a container of type gtkmm__GtkPopover, please remove the widget from its existing container first.
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/gtkmm/issues/9.