summaryrefslogtreecommitdiff
path: root/gtk/gtkfontdialog.c
Commit message (Collapse)AuthorAgeFilesLines
* gtk/dialogs: Destroy the window promptly on finish async functionMarco Trevisan (TreviƱo)2023-04-121-0/+11
| | | | | | | | | | | | Some bindings (GJS!) could add temporary references to the GAsyncResult argument that we return, and thus to the GTask, which may cause the dialog not to close when the finish function is called (but at garbage collection instead!). To prevent this, just manually destroy the window (by removing the task data), so that we are not bound to the GTask lifetime anymore. Closes: https://gitlab.gnome.org/GNOME/gtk/-/issues/5741
* fontdialog: Handle Escape betterBenjamin Otte2022-12-241-1/+2
| | | | | | Closing the dialog by hitting Escape should have the same effect as clicking the cancel button. Make it so.
* dialog: GTK_DIALOG_ERROR_ABORTED => GTK_DIALOG_ERROR_CANCELLEDBenjamin Otte2022-12-241-1/+1
| | | | This is done via the GCancellable, so let's call it cancelling.
* dialog: GTK_DIALOG_ERROR_CANCELLED => GTK_DIALOG_ERROR_DISMISSEDBenjamin Otte2022-12-241-1/+1
| | | | | | The term "cancelling" is used with GCancellable, a user clicking a close button is not that. User input is usually described as "dismissing", so we use that term.
* fontdialog: Improve docsMatthias Clasen2022-12-091-4/+4
| | | | Be more specific about possible errors.
* fontdialog: Don't forget to propagate errorsMatthias Clasen2022-12-091-2/+2
| | | | Oops.
* fontdialog: Unset check cancellableMatthias Clasen2022-12-091-0/+5
|
* Be consistent in preconditions for async APIMatthias Clasen2022-10-311-0/+4
| | | | Do the same checks in all our finish functions.
* docs: Add missing Since annotationsEmmanuele Bassi2022-10-301-1/+1
|
* Deprecate GtkFontChooser and implementationsMatthias Clasen2022-10-291-1/+5
| | | | | | | | | | These are being replaced by GtkFontDialog and GtkFontDialogButton This commit only moves the headers for GtkFontChooserWidget and GtkFontChooserDialog to deprecated/, and keeps the implementations in gtk/, since they will eventually be salvaged into a private GtkFontChooserWindow.
* Add GtkFontDialogMatthias Clasen2022-10-291-0/+947
This is similar to GtkColorDialog, but for fonts.