Alexander Larsson
1698369d52
Merge branch 'icon-theme-api-rework' into 'master'
...
Icon theme api rework
See merge request GNOME/gtk!1390
2020-02-10 12:45:56 +00:00
Alexander Larsson
96a4bb446c
Fix typo in GtkIconPaintable is-symbolic property
2020-02-10 13:30:57 +01:00
Alexander Larsson
ad0e901061
icon-theme: Add back and fix test for handling non-square icons
...
We test this by looking at the produced render nodes now that
we don't actualluy scale the icon. Also, it turns out that this
code was broken due to some typos, so we also fix those.
2020-02-10 13:17:15 +01:00
Alexander Larsson
ba781eca74
Expose gtk_icon_paintable_new_for_file
2020-02-10 13:17:15 +01:00
Alexander Larsson
8f1253ad26
GtkIconPaintable: Add properties for file, icon-name and is-symbolic
2020-02-10 13:17:05 +01:00
Matthias Clasen
e123fff545
Merge branch 'baselineoverlay' into 'master'
...
A baseline overlay
See merge request GNOME/gtk!840
2020-02-10 12:07:18 +00:00
Alexander Larsson
904eecd1ed
icon paintable: Replace get_filename and get_resource_path with get_file()
...
This returns a GFile which can represent both the above.
2020-02-10 12:33:17 +01:00
Alexander Larsson
344ad65031
Rename GTK_ICON_LOOKUP_LOAD_IN_THREAD to GTK_ICON_LOOKUP_PRELOAD
2020-02-10 11:43:47 +01:00
Alexander Larsson
14b3b684ef
icontheme: Always return some icon name in get_icon_name() for lookup results
...
If you called gtk_icon_theme_lookup(), then always return some useful
icon name from gtk_icon_paintable_get_icon_name(), even if we picked
an unthemed icon.
Also rewrite the gtk_icon_paintable_get_icon_name() docs to make this
clearer.
2020-02-10 11:40:00 +01:00
Matthias Clasen
9309153abc
Remove GTK_DEBUG=baselines
...
This has been reimplemented differently
in the inspector.
2020-02-10 00:10:43 -05:00
Matthias Clasen
643417dc32
widget: Stop embedding baseline debugging
...
The inspector has an overlay that achieves the
same, in a cleaner way.
2020-02-10 00:10:43 -05:00
Matthias Clasen
4a978dc8c4
inspector: Draw baselines as an overlay
2020-02-10 00:10:43 -05:00
Matthias Clasen
bc4637fff6
Remove unused includes
...
We eventually want to get rid of GtkSelectionData.
As a first step, stop including gtkselection.h unnecessarily.
2020-02-09 23:59:22 -05:00
Matthias Clasen
07988fc17f
win32: One more build fix
2020-02-09 23:04:10 -05:00
Matthias Clasen
4f79676b0b
win32: Fix the build
2020-02-09 22:58:53 -05:00
Matthias Clasen
900ff743f1
Merge branch 'main-cleanup' into 'master'
...
Cleanup in gtkmain.h
See merge request GNOME/gtk!1403
2020-02-10 03:55:11 +00:00
Benjamin Otte
810f55c006
filechooser: Remove outdated hack
...
In GTK2, the filechooser was using a Paned, so switching between sidebar
and files list with the arrow keys didn't work (the slider would be
selected instead). So in
https://bugzilla.gnome.org/show_bug.cgi?id=161489 a crude hack was added
to make this possible.
Over the years the filechooser code has changed so that it now would do
this by default, yet the hack had been retained.
2020-02-09 16:54:38 -05:00
Benjamin Otte
fce37b137d
gdk: Make gdk_keyval_name() return a const char
...
The string is const, so return it like that.
2020-02-09 16:50:22 -05:00
Matthias Clasen
998384aa08
Remove unused include
2020-02-09 16:50:22 -05:00
Emmanuele Bassi
327441fa3e
cssprovider: Remove unused include
2020-02-09 16:50:22 -05:00
Matthias Clasen
b927609e21
Remove gtk_propagate_event from public API
...
This is not a function that can be safely called
outside of GTK.
2020-02-09 11:00:53 -05:00
Matthias Clasen
688f8bf085
Remove gtk_main_do_event from public API
2020-02-09 10:55:56 -05:00
Matthias Clasen
057f41532b
Remove gtk_main_do_event from the docs
2020-02-09 10:55:37 -05:00
Matthias Clasen
ebc24d75af
testsuite: Stop using gtk_main_do_event
...
Instead, emit ::event on the surface. Neither of
these is a proper test api, but one works as well
as the other.
2020-02-09 10:54:26 -05:00
Matthias Clasen
c1970009ff
docs: Remove more mentions of gtk_main_do_event
2020-02-09 10:45:33 -05:00
Matthias Clasen
8f0fc24516
docs: Remove a reference to gtk_main_do_event
...
It is not great to put a function in the public api and
document it as "do not call this" only so we can refer
to its docs in other places. Therefore, fold the docs
directly into the input handling overview chapter.
2020-02-09 10:38:01 -05:00
Matthias Clasen
ba825dce29
docs: Remove a mention of gtk_main_do_event
2020-02-09 10:37:24 -05:00
Matthias Clasen
c4b16f7424
css: Add a comment
...
All the other color values have this comment,
best to be consistent.
2020-02-09 10:23:27 -05:00
Matthias Clasen
cffff36436
Merge branch 'wip/baedert/remove-outline-properties' into 'master'
...
css: Remove outline border radius properties
Closes #2414
See merge request GNOME/gtk!1402
2020-02-09 15:03:44 +00:00
Matthias Clasen
7de5b391ab
gsk: Update docs sections
2020-02-08 19:40:56 -05:00
Matthias Clasen
0e15032635
gsk: Small documentation additions
2020-02-08 19:36:25 -05:00
Matthias Clasen
be2ba89900
Fix a doc comment
...
Signals take two colons.
2020-02-08 19:27:32 -05:00
Matthias Clasen
a824be2bb9
docs: Drop a few no longer existing symbols
2020-02-08 19:25:13 -05:00
Matthias Clasen
348dcaa4a3
docs: Update the switch thumbnail
...
Make the thumbnail for switches reflect the
current appearance of this widget.
2020-02-08 19:22:23 -05:00
Matthias Clasen
f240bcbbc4
emojichooser: Fix the docs
...
Make the emojichooser show up in the docs.
2020-02-08 19:21:57 -05:00
Matthias Clasen
621a427627
Fix the build with -Dgtk_doc=true
...
We need to export the emoji chooser symbols to
really make it public api.
2020-02-08 19:04:19 -05:00
Matthias Clasen
645f49cf2b
Fix build with -Dgtk_doc=true
...
Toolbars were removed, so don't try to create
thumbnails of them.
2020-02-08 19:02:46 -05:00
Timm Bäder
01ba11fc71
css: Remove outline border radius properties
...
These are always set to the same value as the corresponding border
radius properties. They are also non-standard, so remove them and
replace them with the border radius properties everywhere.
Fixes #2414
2020-02-08 20:43:16 +01:00
Matthias Clasen
f6b0e0e1c2
Merge branch 'avoid-mime-sniffing' into 'master'
...
Avoid mime sniffing where possible
See merge request GNOME/gtk!1400
2020-02-08 15:44:16 +00:00
Matthias Clasen
2f17ab3ce7
Avoid mime sniffing where possible
...
When we are loading symbolic pngs or svgs, we know
that we need to the png or svg loader, so there is
no need to go through (surprisingly expensive) mime
sniffing to find the right loader.
2020-02-08 10:22:54 -05:00
Matthias Clasen
55b60f6da9
gtk-demo: Don't call gtk_main_quit
...
It doesn't work with GtkApplications that do not
call gtk_main().
2020-02-07 16:25:02 -05:00
Matthias Clasen
1f74695758
Adwaita: Fix selection in vertical spin buttons
...
This was broken by more specific selectors.
2020-02-07 15:43:07 -05:00
Matthias Clasen
1ab70e2dfa
Merge branch 'patch-1' into 'master'
...
Update migrating-3to4.xml (fixed typo, in line 377)
See merge request GNOME/gtk!1398
2020-02-07 19:23:55 +00:00
J Arun Mani
3cbb3dc0f4
Update migrating-3to4.xml
2020-02-07 18:30:42 +00:00
Matthias Clasen
e3afb2fec8
label: Don't use gtk_widget_peek_style_context
...
We may just not have a style context. And we can just
as well go directly to the css styles.
2020-02-07 13:16:45 -05:00
Timm Bäder
d3857f8bd3
window: Move variable initialziation just before usage
2020-02-07 13:16:45 -05:00
Timm Bäder
655711fef2
Rename gtk_widget{get,set,has}_style_class to _css_class
...
We want to use css instead of style everywhere now.
2020-02-07 13:16:45 -05:00
Timm Bäder
69fa15981c
treepopover: Fix header guard
2020-02-07 13:16:32 -05:00
Timm Bäder
2a46d5960d
box: Move vfunc implementations before class_init
...
Just like we do everywhere else. This way we can also get rid of all the
prototypes.
2020-02-07 13:16:32 -05:00
Timm Bäder
b9b5cae6d2
calendar: Remove day-selected-double-click signal
...
It doesn't really make sense to treat double clicks here different than
single clicks (and is bad UX), and it also breaks switching months by
quickly trying to single-click the last/first days in the calendar.
2020-02-07 13:16:32 -05:00