https://bugs.documentfoundation.org/show_bug.cgi?id=162995

--- Comment #2 from Michael Weghorn <[email protected]> ---
(In reply to Caolán McNamara from comment #1)
> Code for these is in vcl/unx/gtk3/fpicker/SalGtkFilePicker.cxx in
> SalGtkFilePicker::SalGtkFilePicker I think. There are various
> GTK_CHECK_VERSION conditionals in there, but I think it should generally
> work so hopefully something minor like requiring these to be explicitly
> shown where maybe that was implicit in earlier versions of gtk

This line there looks relevant:

#if !GTK_CHECK_VERSION(4, 0, 0)
    gtk_file_chooser_set_extra_widget( GTK_FILE_CHOOSER( m_pDialog ), m_pVBox
);
#endif

Items are added to m_pVBox for GTK 4 as well, but I don't see where m_pVBox is
added to the file chooser.

`gtk_file_chooser_set_extra_widget` seems gone for GTK 4, the doc for
GtkFileChooser [1] mentions this instead:

> You can add extra widgets to a file chooser to provide options that are not
> present in the default design, by using gtk_file_chooser_add_choice(). Each
> choice has an identifier and a user visible label; additionally, each choice
> can have multiple options. If a choice has no option, it will be rendered as a
> check button with the given label; if a choice has options, it will be 
> rendered
> as a combo box.

The doc also mentions that GtkFileChooser is deprecated in GTK 4.10 and
GtkFileDialog [2] should be used instead. For that one, I don't see any mention
of being able to add custom widgets in the doc.


[1] https://docs.gtk.org/gtk4/iface.FileChooser.html
[2] https://docs.gtk.org/gtk4/class.FileDialog.html

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to