| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The macros and functions are inconsistently named, and are not tied to
the "template" concept - to the point that it seems plausible to use
them without setting the template.
The new naming scheme is as follows:
gtk_widget_class_bind_template_child_full
gtk_widget_class_bind_template_callback_full
With the convenience macros:
gtk_widget_class_bind_template_child
gtk_widget_class_bind_template_child_internal
gtk_widget_class_bind_template_callback
https://bugzilla.gnome.org/show_bug.cgi?id=700898
https://bugzilla.gnome.org/show_bug.cgi?id=700896
|
|
|
|
|
|
|
|
|
|
| |
Using an offset from the struct means you can have children in
both the public and private (via G_PRIVATE_OFFSET) parts of the
instance. It also matches the new private macros nicer.
https://bugzilla.gnome.org/show_bug.cgi?id=702563
Signed-off-by: Emmanuele Bassi <ebassi@gnome.org>
|
|
|
|
| |
https://bugzilla.gnome.org/show_bug.cgi?id=702996
|
| |
|
|
|
|
|
|
|
|
| |
Deprecate gtk_widget_push_composite_child, gtk_widget_pop_composite_child,
gtk_widget_set_composite_name, gtk_widget_get_composite_name.
This API is just bloat and was never useful, this patch deprecates
it and removes all internal calls to the composite child APIs
|
|
|
|
|
| |
This is what the property declaration says, after all.
https://bugzilla.gnome.org/show_bug.cgi?id=695948
|
| |
|
|
|
|
| |
Fixes bug #661089.
|
|
|
|
| |
Display them the same way as Pango does.
|
|
|
|
| |
Previously, the font wasn't properly updated after some changes.
|
|
|
|
|
| |
In particular, display names of families that don't have an installed
font.
|
| |
|
|
|
|
|
| |
Returns a PangoFont{Family,Face} even when the font dialogue
has never been popped up.
|
|
|
|
|
| |
... to gtk_font_chooser_get_font_{family,face,size}, in order to
avoid naming conflicts in bindings.
|
|
|
|
| |
Add a way to set/get the font as a PangoFontDescription.
|
|
|
|
|
| |
Now that the setter doesn't return a value anymore, we can just use
g_object_[sg]et instead of having these vfuncs.
|
|
|
|
|
|
| |
The setter for the "font" property returned a boolean that indicated
whether the given font has been found. Instead, fall back to the default
font name when the given font doesn't exist.
|
| |
|
|
|
|
|
|
|
| |
GtkFontButton already has a property named "font-name" which may
conflict / be an ABI break when moving GtkFontButton to implement
GtkFontChooser. Also, this is more in line with how other parts in
gtk (e.g. GtkCellRendererText) call a font string property.
|
|
|
|
|
|
|
|
| |
Make the GtkFontChooser API similar to the Gtk{File,Recent,App}Chooser
APIs by introducing GtkFontChooser as an interface, that has a default
implementation in GtkFontChooserWidget.
https://bugzilla.gnome.org/show_bug.cgi?id=657627
|
| |
|
|
|
|
| |
GtkFontSelectionDialog
|
| |
|
| |
|
|
|
|
|
| |
Mainly removing unused h/v includes, but also adding some that
will be necessary as replacements.
|
| |
|
|
|
|
| |
Because it's FALSE in virtually all use cases.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
https://bugzilla.gnome.org/show_bug.cgi?id=623845
|
|
|
|
|
|
| |
Use gtk_widget_get_visible() instead
https://bugzilla.gnome.org/show_bug.cgi?id=69872
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Deprecate widget flag macros GTK_WIDGET_STATE, GTK_WIDGET_SAVED_STATE,
GTK_WIDGET_FLAGS, GTK_WIDGET_TOPLEVEL, GTK_WIDGET_NO_WINDOW and
GTK_WIDGET_COMPOSITE_CHILD.
Also deprecate the type macros GTK_WIDGET_TYPE, GTK_OBJECT_TYPE_NAME and
GTK_OBJECT_TYPE which have become redundant.
Instances of GTK_WIDGET_TOPLEVEL are replaced with gtk_widget_is_toplevel,
GTK_WIDGET_TYPE is replaced with G_OBJECT_TYPE, GTK_WIDGET_COMPOSITE_CHILD
is replaced with use of the "composite-child" property and uses of
GTK_WIDGET_NO_WINDOW are adjusted to use gtk_widget_get_has_window.
Uses of GTK_WIDGET_SAVED_STATE and GTK_WIDGET_FLAGS inside GtkWidget are
changed to direct flag usage.
Documentation is updated to refer to gtk_widget_set_has_window and
gtk_widget_get_has_window.
Gail and tests are updated as well.
Fixes: https://bugzilla.gnome.org/show_bug.cgi?id=69872
|