Kjell Ahlstedt
8911015549
gtkpopovermenubar: Make model nullable
...
The description of gtk_popover_menu_bar_new_from_model() and
gtk_popover_menu_bar_set_menu_model() says that model is nullable.
Make it so.
2022-11-18 18:09:42 +01:00
Matthias Clasen
9cbfbbdf39
stringsorter: Fix one case of collation handling
...
When not ignoring case, and not collating, we were
returning sort keys that were already freed. Oops.
Pointed out by clang.
2022-11-18 00:04:23 -05:00
Matthias Clasen
95fc5109bb
composetable: Fix a memory leak
...
Pointed out by clang.
2022-11-18 00:04:23 -05:00
Matthias Clasen
60aaf38f39
gdk: Clean up gdkprivate.h
...
Move apis to more specific headers.
2022-11-17 22:49:56 -05:00
Matthias Clasen
b12d31d189
Fix spelling errors
...
These were pointed out by codespell.
2022-11-17 22:49:45 -05:00
Matthias Clasen
0d2161ee40
Merge branch 'file-dialog-portals' into 'main'
...
file dialog: Use portals
See merge request GNOME/gtk!5221
2022-11-18 03:49:30 +00:00
Matthias Clasen
b0148972fd
filedialog: Use portals
...
We want this new API to be portal-first.
Make it so.
2022-11-17 15:52:53 -05:00
Cam Cook
2a14753739
Merge branch 'main' into ccook/doc-spelling-fixes
2022-11-16 23:23:42 -05:00
Cam Cook
4ccc3b53eb
doc/spelling changes: gtkselectionmodel.c, 'call this when the* selection changes'
2022-11-16 23:20:50 -05:00
Matthias Clasen
793954055e
Merge branch 'radioactiveman-main-patch-52462' into 'main'
...
label: Fix markup doc example
See merge request GNOME/gtk!5201
2022-11-17 03:46:43 +00:00
Thomas Lange
7adf720f08
label: Fix markup doc example
2022-11-17 03:46:01 +00:00
Matthias Clasen
501577196a
Merge branch 'matthiasc/for-main' into 'main'
...
Inspector: Add a missing event type
See merge request GNOME/gtk!5218
2022-11-16 19:24:54 +00:00
robxnano
adc0264dac
filechooser: Fix gtk_file_chooser_set_choice again
...
If the choice was in the form of a GtkDropDown, the code failed to
find the widget and so the choice never got set. Fixes #5346 .
2022-11-16 18:07:20 +00:00
Matthias Clasen
4eb017904b
Alertdialog: Cosmetics
2022-11-15 10:36:32 +00:00
Matthias Clasen
c9df9978d2
Inspector: Add a missing event type
...
We did not have a name for the new touchpad hold
events.
To prevent this from happening again in the future,
add a static assertion.
2022-11-15 07:18:41 +01:00
Cam Cook
d1bb927286
Documentation fix: Various spelling mistakes (and one use of the wrong verb) across a few domains that show up in documentation.
...
| domain | current | suggestion |
|--------|---------|------------|
| [GtkButton](https://gitlab.gnome.org/GNOME/gtk/-/blob/main/gtk/gtkbutton.c#L691 ) | "Buttons can has a flat appearance" | "Buttons can have a flat appearance" |
| [GtkCenterBox](https://gitlab.gnome.org/GNOME/gtk/-/blob/main/gtk/gtkcenterbox.c#L275 ) | "pas %NULL" | "pass %NULL" |
| [GtkEditable](https://gitlab.gnome.org/GNOME/gtk/-/blob/main/gtk/gtkeditable.c#L466 ) | "the text to append" | "the text to insert" |
| [GtkFlowbox](https://gitlab.gnome.org/GNOME/gtk/-/blob/main/gtk/gtkflowbox.c#L4921 ) | "the are equal" | "they are equal" |
| [GtkSelectionModel](https://gitlab.gnome.org/GNOME/gtk/-/blob/main/gtk/gtkselectionmodel.c#L550 ) | "Call this when a the selection changes" | "Call this when a selection changes" |
| [GtkWIndow](https://gitlab.gnome.org/GNOME/gtk/-/blob/main/gtk/gtkwindow.c#L5321 ) | "(e.g. the user or the window manager" | "(e.g. the user or the window manager)" |
2022-11-13 11:55:05 -05:00
Matthias Clasen
2daea9e459
Merge branch 'focus-no-parent' into 'main'
...
focus: fall back to old behaviour if we didn't focus anything
See merge request GNOME/gtk!5189
2022-11-11 10:29:00 +00:00
Matthias Clasen
d1bdc36331
window: fixups
2022-11-09 16:28:30 +01:00
Matthias Clasen
f9982a61e6
window: Use gdk_toplevel_export_handle
2022-11-09 16:28:29 +01:00
Matthias Clasen
9e28a407df
Merge branch 'ebassi/since-for-main' into 'main'
...
docs: Add deprecation notices for properties
See merge request GNOME/gtk!5204
2022-11-08 16:01:11 +00:00
Matthias Clasen
a5780beba7
Merge branch 'ccook/gtk_aspect_frame_doc_fix' into 'main'
...
doc/comment fix: @self misspelled as self@
See merge request GNOME/gtk!5200
2022-11-08 15:28:08 +00:00
Emmanuele Bassi
5a51cbe673
docs: Add deprecation notices for properties
2022-11-08 10:45:09 +00:00
Matthias Clasen
e00b96053b
colordialogbutton: Actually accept NULL
...
As pointed out in #5321 , my previous fix was not
good enough.
Fixes : #5321
2022-11-07 15:24:13 +01:00
Cam Cook
ed16946685
doc/comment fix: the ref to @self was misspelled as self@ for gtkaspectframe.h/gtk_aspect_frame_get_child
...
Noticed this while reviewing the gi-docgen docs for GtkAspectFrame while developing some java bindings.
It's my understanding that @self was intended; as it would cause gi-docgen to interpret it as a reference to
the the GtkAspectFrame pointer named 'self'.
2022-11-06 17:59:23 -05:00
Matthias Clasen
466db31aac
color/fontdialogbutton: Fix constructors
...
The arguments were meant to be nullable.
Make it so!
Fixes : #5321
2022-11-06 14:12:02 +01:00
Adam Williamson
e07f8ef506
focus: fall back to old behaviour if we didn't focus anything
...
8455b9ac74
seems to have introduced a problem where we can wind
up focusing no widget at all if the `while (parent)` loop doesn't
find a widget it can successfully move the focus to. This 'fixes'
that by falling back to doing the previous thing if we make it
all the way through that loop without moving the focus. Thanks to
@coreyberla for a hint to improve the implementation.
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2022-11-02 09:32:32 -07:00
Matthias Clasen
030e8c0bf9
Be consistent in preconditions for async API
...
Do the same checks in all our finish functions.
2022-10-31 16:40:54 -04:00
Emmanuele Bassi
d665b0e042
docs: Add missing Deprecated annotations
2022-10-30 20:08:39 +00:00
Emmanuele Bassi
37fadb20a9
docs: Add missing Since annotations
2022-10-30 20:08:21 +00:00
Matthias Clasen
a36bf22134
alertdialog: Small refactoring
...
Move the deprecated code out into its own function.
2022-10-30 08:52:02 -04:00
Matthias Clasen
9948053cd7
Deprecate GtkDialog
...
GtkDialog is too flexible in terms of UI (headerbars vs action bar,
etc), and has archaic APIs. It is time to retire it.
2022-10-29 15:27:53 -04:00
Matthias Clasen
f54ab91ff3
Deprecate GtkFileChooser and implementations
...
These are being replaced by GtkFileDialog.
This commit only moves the headers for GtkFileChooserWidget and
GtkFileChooserDialog to deprecated/, and keeps the implementations
in gtk/, since they will eventually be salvaged into a private
GtkFileChooserWindow.
2022-10-29 13:31:41 -04:00
Matthias Clasen
66b062a976
Deprecate GtkMessageDialog
...
It is getting replaced by GtkAlertDialog
This commit only moves the header to deprecated/,
and keeps the implementation in gtk/, since it will
eventually be salvaged into a private, dialog-free
widget.
2022-10-29 13:31:41 -04:00
Matthias Clasen
15572b0183
Deprecate GtkFontChooser and implementations
...
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.
2022-10-29 13:31:41 -04:00
Matthias Clasen
a51a6a3ee2
Deprecate GtkColorChooser and implementations
...
These are being replaced by GtkColorDialog
and GtkColorDialogButton.
This commit only moves the headers for GtkColorChooserWidget
and GtkColorChooserDialog to deprecated/, and keeps the
implementations in gtk/, since they will eventually be
salvaged into a private GtkColorChooserWindow.
2022-10-29 13:31:41 -04:00
Matthias Clasen
9839aca0bd
inspector: Port to async dialog API
2022-10-29 13:31:41 -04:00
Matthias Clasen
9ab732ce2d
gtk: Port to async dialog API
2022-10-29 13:31:41 -04:00
Matthias Clasen
6ed2d2b232
Add GtkFileDialog
...
Add an async API for picking a file, together with
a builder object for it. This is meant to replace direct
use of GtkFileChooserDialog.
2022-10-29 13:31:41 -04:00
Matthias Clasen
cccc74786f
Add GtkAlertDialog
...
This is replacing GtkMessageDialog with an
async API for showing informational messages.
2022-10-29 13:31:41 -04:00
Matthias Clasen
aeacc8f3c5
Add GtkFontDialogButton
...
This is like GtkColorDialogButton, but for fonts.
2022-10-29 13:31:41 -04:00
Matthias Clasen
7d0ebe02db
Add GtkFontDialog
...
This is similar to GtkColorDialog, but for fonts.
2022-10-29 13:31:41 -04:00
Matthias Clasen
655675e6a1
Add GtkColorDialogButton
...
This is a new color button implementation
built around GtkColorDialog.
2022-10-29 13:02:15 -04:00
Matthias Clasen
f877f33c19
Add GtkColorDialog
...
Add an async API for picking a color, together with
a builder object for it. This is meant to replace direct
use of GtkColorChooserDialog.
2022-10-29 10:18:37 -04:00
Matthias Clasen
2fce117d15
Add GtkDialogError
...
This error domain will be used by async apis
in future commits.
2022-10-29 10:18:37 -04:00
Matthias Clasen
bd5dedce12
fontchooser: Add a way to set a GtkFilter
...
We keep this private, since the chooser apis
are going away. This will be used in GtkFontDialog.
2022-10-29 10:18:37 -04:00
Matthias Clasen
bdc91c2339
messagedialog: Cosmetics
2022-10-28 22:23:04 -04:00
Matthias Clasen
5c9d68a550
printeroptionwidget: Drop unused include
2022-10-28 18:24:48 -04:00
Bilal Elmoussaoui
6ca33c639e
g-i: Add missing since annotation
2022-10-27 15:38:14 +00:00
Mat
f6eb84189f
Revert "treepopover: Do not propagate natural width of content"
...
This reverts commit 9c919ffa46
.
2022-10-26 13:58:10 +03:00
Emmanuele Bassi
21bc2c5078
docs: Remove mentions of Glade
...
Glade does not support GTK4, so we should not link to it when discussing
developing GTK4 applications.
2022-10-24 20:11:50 +01:00