summaryrefslogtreecommitdiff
path: root/gtk/gtkfontbutton.c
Commit message (Collapse)AuthorAgeFilesLines
* gtk: Don't include gtkstylecontext.h from gtkcsstypesprivate.hBenjamin Otte2019-03-191-7/+6
| | | | And make sure it's included everywhere it's needed.
* all: Don't warn about deprecated gtk_window_present usageBastien Nocera2019-02-251-0/+2
| | | | Avoid compilation warnings about internal users of gtk_window_present().
* widget: Don't pass a position to ->size_allocateTimm Bäder2018-11-131-3/+9
| | | | | The values have been 0/0 for a long time now, so just drop the GtkAllocation argument and replace it with width and height.
* fontbutton: Remove priv pointerTimm Bäder2018-06-181-101/+125
|
* font-button: Suggest non deprecated function in docsMohammed Sadiq2018-06-071-1/+1
| | | | | gtk_font_button_get_font_name() has been deprecated in 3.22 and its public API is removed from GTK4.
* widget: Remove clip from size-allocate vfuncBenjamin Otte2018-04-051-3/+2
| | | | As the clip is no longer needed, get rid of it.
* font button: fix compiler warningsMatthias Clasen2018-04-051-2/+4
| | | | A PangoLanguage is not a string.
* font button: Fix a crashMatthias Clasen2018-04-021-2/+1
| | | | | Since we are now storing the language as a PangoLanguage, we must not free it anymore.
* font chooser: Make the language property writableMatthias Clasen2018-04-021-5/+23
| | | | | | | | 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.
* font chooser: Align property defaultsMatthias Clasen2018-03-311-3/+1
| | | | | Set the default font chooser level to the same value we use in the backports, to preserve font chooser behavior.
* font chooser: Make levels flagsMatthias Clasen2018-03-271-6/+10
| | | | | | | | 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.
* font button: notify when ::font-features changesMatthias Clasen2018-03-271-0/+1
| | | | | Lack of notification was causing the font-features to not show up in the inspector.
* GtkWidget: Start renaming widget->windowAlexander Larsson2018-03-201-1/+1
| | | | | | | | | | | | | | | 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*
* The big versioning cleanupMatthias Clasen2018-02-061-24/+0
| | | | | | | 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.
* font button: Use GtkWindow::hide-on-closeMatthias Clasen2018-01-161-5/+4
| | | | Instead of the ::delete-event signal.
* font button: Take variations into accountMatthias Clasen2018-01-031-1/+67
| | | | | We need to apply variations too, when we are using the font to render the button label.
* font chooser: Add properties for features and languageMatthias Clasen2018-01-031-2/+26
| | | | | | 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.
* font button: Remove show-font and show-sizeMatthias Clasen2018-01-031-160/+16
| | | | | These are now handled in a more systematic fashion using GtkFontChooserLevel.
* font chooser: introduce font chooser levelsMatthias Clasen2018-01-031-0/+35
| | | | | This is a more systematic approach to reducing the level of detail in the font chooser.
* Remove font-name leftoversMatthias Clasen2017-12-211-4/+2
| | | | | There were still a few places where the font-name property was used internally.
* font button: Drop the font-name propertyMatthias Clasen2017-12-211-52/+6
| | | | | | We already have the GtkFontChooser::font property which serves the same purpose, so get rid of the duplication.
* gtk: Intern css namesMatthias Clasen2017-11-171-1/+1
| | | | This avoids a bunch of strdups at startup.
* build: Enable -Wswitch-enum and -Wswitch-defaultBenjamin Otte2017-10-061-0/+8
| | | | | | | | | | | | | | | | | | | 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.
* widget: Add baseline and out_clip parameters to size-allocateTimm Bäder2017-07-191-7/+5
| | | | | | | | | | | 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.
* set clip of more widgetsTimm Bäder2017-07-191-2/+4
|
* fontbutton: Call the css node "fontbutton"Timm Bäder2017-07-191-2/+2
| | | | Otherwise the default looks like a button inside a button.
* Remove now useless snapshot implementationsTimm Bäder2017-07-191-11/+0
|
* Chain up in size-allocate implementationsTimm Bäder2017-05-011-0/+2
| | | | Otherwise we're not setting an allocation at all.
* gtkfontbutton: hexpand the font labelTimm Bäder2017-01-221-1/+2
| | | | To restore the previous look.
* fontbutton: Be a GtkWidgetTimm Bäder2017-01-201-19/+74
|
* cssprovider: Remove GError out argument from load functionsBenjamin Otte2016-10-171-1/+1
| | | | People should use the GtkCssProvider::parsing-error signal instead.
* font button: Fix translation of font-name defaultMatthias Clasen2016-04-251-1/+1
| | | | | The default value should come out of regular translations, not property translations.
* font button: Convert from pango to css properlyMatthias Clasen2016-04-181-6/+123
| | | | | This utility function should probably find a home somewhere else. For now, this makes the deprecation warning go away.
* Add message contexts to translated stringsMatthias Clasen2016-02-161-1/+1
| | | | | | | 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
* font button: Add an element nameMatthias Clasen2015-10-301-0/+11
| | | | Give this GtkButton subclass element name button and style class .font.
* Redo font map support in GtkFontChooserMatthias Clasen2015-06-131-10/+14
| | | | | | | | 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.
* GtkFontChooser: Allow a custom font mapMatthias Clasen2015-05-071-7/+34
| | | | | | | This lets applications show their own fonts instead of or in addition to system fonts. https://bugzilla.gnome.org/show_bug.cgi?id=748771
* GtkFontButton: Stop using deprecated APIMatthias Clasen2014-10-021-17/+44
|
* GtkFontButton: Make sure the dialog isn't destroyed on delete-eventRui Matos2014-09-281-0/+3
| | | | | | | | | | | 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
* GtkFontButton: Avoid criticalsMatthias Clasen2014-08-151-2/+8
| | | | | The font_family and font_face members may be NULL, and we shouldn't cause critical warnings in that case.
* GtkFontButton: Limit the decimals shown for sizeMatthias Clasen2014-08-151-1/+1
| | | | | | | 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
* GtkFontButton: Use the same font name as the font chooserMatthias Clasen2014-08-151-9/+6
| | | | | | | 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.
* GtkFontButton: Use G_PARAM_EXPLICIT_NOTIFYMatthias Clasen2014-06-091-4/+4
|
* GtkFontButton Trivial cleanupMatthias Clasen2014-06-091-4/+2
| | | | Replace GTK_PARAM_READABLE|GTK_PARAM_WRITABLE by GTK_PARAM_READWRITE.
* GtkFontButton: Fix the handling of show-preview-buttonMatthias Clasen2014-06-091-4/+9
| | | | We were not storing the value at all, and not notifying.
* docs: use Returns: consistentlyWilliam Jon McCann2014-02-191-2/+2
| | | | Instead of Return value:
* docs: use apostrophe in *'reWilliam Jon McCann2014-02-071-1/+1
|
* docs: don't use <emphasis>William Jon McCann2014-01-281-1/+1
| | | | It is a little heavy handed. The text can speak for itself.
* resources: move resources into a subdirectoryWilliam Jon McCann2014-01-231-1/+1
|
* Another round of template binding api changesMatthias Clasen2013-07-261-3/+3
| | | | | | | | | | | 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.