| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
And make sure it's included everywhere it's needed.
|
|
|
|
| |
Avoid compilation warnings about internal users of gtk_window_present().
|
|
|
|
|
| |
The values have been 0/0 for a long time now, so just drop the
GtkAllocation argument and replace it with width and height.
|
| |
|
|
|
|
|
| |
gtk_font_button_get_font_name() has been deprecated in 3.22 and
its public API is removed from GTK4.
|
|
|
|
| |
As the clip is no longer needed, get rid of it.
|
|
|
|
| |
A PangoLanguage is not a string.
|
|
|
|
|
| |
Since we are now storing the language as a PangoLanguage,
we must not free it anymore.
|
|
|
|
|
|
|
|
| |
This is meant as an input to the font chooser.
We don't want the user to select a language, but
rather have fonts presented as they would work for
the current language. Therefore, do away with the
lang/script combo on the tweak page.
|
|
|
|
|
| |
Set the default font chooser level to the same value we use
in the backports, to preserve font chooser behavior.
|
|
|
|
|
|
|
|
| |
Turn the GtkFontChooserLevel field into flags, and
add flags for OpenType variations and features. The
motivation for this is to make font-features in the UI
opt-in, since applications need to support them by
applying the pango attribute.
|
|
|
|
|
| |
Lack of notification was causing the font-features to not
show up in the inspector.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This is an automated change doing these command:
git sed -f g gtk_widget_set_has_window gtk_widget_set_has_surface
git sed -f g gtk_widget_get_has_window gtk_widget_get_has_surface
git sed -f g gtk_widget_set_parent_window gtk_widget_set_parent_surface
git sed -f g gtk_widget_get_parent_window gtk_widget_get_parent_surface
git sed -f g gtk_widget_set_window gtk_widget_set_surface
git sed -f g gtk_widget_get_window gtk_widget_get_surface
git sed -f g gtk_widget_register_window gtk_widget_register_surface
git sed -f g gtk_widget_unregister_window gtk_widget_unregister_surface
git checkout NEWS*
|
|
|
|
|
|
|
| |
Remove all the old 2.x and 3.x version annotations.
GTK+ 4 is a new start, and from the perspective of a
GTK+ 4 developer all these APIs have been around since
the beginning.
|
|
|
|
| |
Instead of the ::delete-event signal.
|
|
|
|
|
| |
We need to apply variations too, when we are using
the font to render the button label.
|
|
|
|
|
|
| |
These can't be returned as part of the font description,
so we need new api for them. For now, this is just readonly
properties. Maybe these should be writable too, eventually.
|
|
|
|
|
| |
These are now handled in a more systematic fashion
using GtkFontChooserLevel.
|
|
|
|
|
| |
This is a more systematic approach to reducing the
level of detail in the font chooser.
|
|
|
|
|
| |
There were still a few places where the font-name
property was used internally.
|
|
|
|
|
|
| |
We already have the GtkFontChooser::font property
which serves the same purpose, so get rid of the
duplication.
|
|
|
|
| |
This avoids a bunch of strdups at startup.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This patch makes that work using 1 of 2 options:
1. Add all missing enums to the switch statement
or
2. Cast the switch argument to a uint to avoid having to do that (mostly
for GdkEventType).
I even found a bug while doing that: clearing a GtkImage with a surface
did not notify thae surface property.
The reason for enabling this flag even though it is tedious at times is
that it is very useful when adding values to an enum, because it makes
GTK immediately warn about all the switch statements where this enum is
relevant.
And I expect changes to enums to be frequent during the GTK4 development
cycle.
|
|
|
|
|
|
|
|
|
|
|
| |
Since setting a clip is mandatory for almost all widgets, we can as well
change the size-allocate signature to include a out_clip parameter, just
like GtkCssGadget did. And since we now always propagate baselines, we
might as well pass that one on to size-allocate.
This way we can also make sure to transform the clip returned from
size-allocate to parent-coordinates, i.e. the same coordinate space
priv->allocation is in.
|
| |
|
|
|
|
| |
Otherwise the default looks like a button inside a button.
|
| |
|
|
|
|
| |
Otherwise we're not setting an allocation at all.
|
|
|
|
| |
To restore the previous look.
|
| |
|
|
|
|
| |
People should use the GtkCssProvider::parsing-error signal instead.
|
|
|
|
|
| |
The default value should come out of regular translations, not
property translations.
|
|
|
|
|
| |
This utility function should probably find a home somewhere else.
For now, this makes the deprecation warning go away.
|
|
|
|
|
|
|
| |
The string "None" is used in multiple contexts; add message contexts
to give translators a chance to translate them accordingly.
https://bugzilla.gnome.org/show_bug.cgi?id=762165
|
|
|
|
| |
Give this GtkButton subclass element name button and style class .font.
|
|
|
|
|
|
|
|
| |
We can't add properties to the interface, since it breaks
3rd party implementations of the GtkFontChooser interface.
These exist, for example in gnumeric.
So, instead of a new property, add getter/setter vfuncs.
|
|
|
|
|
|
|
| |
This lets applications show their own fonts instead of
or in addition to system fonts.
https://bugzilla.gnome.org/show_bug.cgi?id=748771
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
The remaining code assumes that the dialog doesn't get destroyed, but
it actually does on delete-event.
In particular, the filter function and the preview text are lost as
soon as the dialog is created and thus when we create a new dialog we
don't have those properties to set on it anymore.
https://bugzilla.gnome.org/show_bug.cgi?id=719936
|
|
|
|
|
| |
The font_family and font_face members may be NULL, and we
shouldn't cause critical warnings in that case.
|
|
|
|
|
|
|
| |
It doesn't make sense to show a font size with 6 digits. Use
the same formatting we use in the font chooser widget now.
https://bugzilla.gnome.org/show_bug.cgi?id=724996
|
|
|
|
|
|
|
| |
The font chooser constructs the display name for the font from
the family and face names. Do the same in the font button, so
we don't end up calling the same font by different names, which
would be confusing.
|
| |
|
|
|
|
| |
Replace GTK_PARAM_READABLE|GTK_PARAM_WRITABLE by GTK_PARAM_READWRITE.
|
|
|
|
| |
We were not storing the value at all, and not notifying.
|
|
|
|
| |
Instead of Return value:
|
| |
|
|
|
|
| |
It is a little heavy handed. The text can speak for itself.
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
We rename the gtk_widget_class_bind_template_child{_internal}
macros by appending a _private to their name. Otherwise, it
would be too magic to pass the 'public' names as arguments,
but affect a member of the Private struct. At the same time,
Add two new macros with the old names,
gtk_widget_class_bind_template_child{_internal} that operate
on members of the instance struct.
|