summaryrefslogtreecommitdiff
path: root/gtk/gtkfontchooser.c
Commit message (Collapse)AuthorAgeFilesLines
* Add missing (closure) GIR annotationsRobert Ancell2020-01-131-1/+1
|
* font chooser: Make the language property writableMatthias Clasen2018-04-021-2/+18
| | | | | | | | 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-2/+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/+9
| | | | | | | | 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.
* The big versioning cleanupMatthias Clasen2018-02-061-39/+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 chooser: Add properties for features and languageMatthias Clasen2018-01-031-0/+75
| | | | | | 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 chooser: introduce font chooser levelsMatthias Clasen2018-01-031-0/+55
| | | | | This is a more systematic approach to reducing the level of detail in the font chooser.
* Use Unicode in translatable stringsPiotr Drąg2016-12-191-1/+1
| | | | | | See https://developer.gnome.org/hig/stable/typography.html https://bugzilla.gnome.org/show_bug.cgi?id=772371
* introspection: This patch fixes nullable return values fixes for the ↵Alberto Ruiz2016-01-081-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | following symbols in gtk gtk_accel_group_query gtk_accel_group_from_accel_closure gtk_accel_label_get_accel_widget gtk_accessible_get_widget gtk_actionable_get_action_name gtk_app_chooser_get_app_info gtk_app_chooser_button_get_heading gtk_app_chooser_dialog_get_heading gtk_application_get_window_by_id gtk_assistant_get_nth_page gtk_binding_set_find gtk_builder_get_object gtk_builder_lookup_callback_symbol gtk_builder_get_application gtk_button_get_image gtk_cell_area_get_focus_from_sibling gtk_cell_renderer_start_editing gtk_cell_view_get_model gtk_cell_view_get_displayed_row gtk_clipboard_get_owner gtk_container_get_focus_child gtk_container_get_focus_vadjustment gtk_container_get_focus_hadjustment gtk_dialog_get_widget_for_response gtk_drag_get_source_widget gtk_drag_dest_get_target_list gtk_drag_source_get_target_list gtk_entry_completion_get_model gtk_entry_completion_compute_prefix gtk_expander_get_label_widget gtk_file_chooser_get_filename gtk_file_chooser_get_current_folder gtk_file_chooser_get_uri gtk_file_chooser_get_current_folder_uri gtk_file_chooser_get_preview_widget gtk_file_chooser_get_preview_file gtk_file_chooser_get_preview_filename gtk_file_chooser_get_preview_uri gtk_file_chooser_get_extra_widget gtk_file_chooser_get_filter gtk_file_chooser_native_get_accept_label gtk_file_chooser_native_get_cancel_label gtk_file_filter_get_name gtk_font_chooser_get_font_family gtk_font_chooser_get_font_face gtk_font_chooser_get_font gtk_font_chooser_get_font_desc gtk_font_chooser_get_font_map gtk_frame_get_label gtk_gesture_get_device gtk_gesture_get_window gtk_gl_area_get_error gtk_header_bar_get_title gtk_header_bar_get_subtitle gtk_header_bar_get_custom_title gtk_icon_info_get_filename gtk_icon_view_get_path_at_pos gtk_icon_view_get_model gtk_image_get_pixbuf gtk_image_get_animation gtk_label_get_mnemonic_widget gtk_label_get_attributes gtk_check_version gtk_menu_button_get_popup gtk_menu_button_get_menu_model gtk_menu_button_get_align_widget gtk_menu_button_get_popover gtk_menu_item_get_submenu gtk_menu_item_get_accel_path gtk_native_dialog_get_title gtk_native_dialog_get_transient_for gtk_notebook_get_nth_page gtk_notebook_get_tab_label_text gtk_notebook_get_menu_label gtk_notebook_get_menu_label_text gtk_notebook_get_group_name gtk_notebook_get_action_widget gtk_offscreen_window_get_surface gtk_offscreen_window_get_pixbuf gtk_paned_get_child1 gtk_paned_get_child2 gtk_places_sidebar_get_location gtk_places_sidebar_get_nth_bookmark gtk_plug_get_socket_window gtk_popover_get_default_widget gtk_progress_bar_get_text gtk_recent_filter_get_name gtk_recent_manager_lookup_item gtk_settings_get_default gtk_socket_get_plug_window gtk_stack_sidebar_get_stack gtk_stack_switcher_get_stack gtk_style_context_get_section gtk_style_context_get_parent gtk_style_context_get_frame_clock gtk_test_find_widget gtk_text_buffer_get_mark gtk_text_tag_table_lookup gtk_text_view_get_tabs gtk_text_view_toggle_cursor_visible gtk_text_view_get_window gtk_toolbar_get_nth_item gtk_tool_button_get_label gtk_tool_button_get_icon_name gtk_tool_button_get_label_widget gtk_tool_button_get_icon_widget gtk_tool_palette_get_drop_item gtk_tool_palette_get_drop_group gtk_tree_model_filter_convert_child_path_to_path gtk_tree_model_filter_convert_path_to_child_path gtk_tree_model_sort_convert_child_path_to_path gtk_tree_model_sort_convert_path_to_child_path gtk_tree_view_get_column gtk_tree_view_get_bin_window gtk_tree_view_column_get_widget gtk_tree_view_column_get_tree_view gtk_widget_get_frame_clock gtk_window_group_get_current_device_grab GtkTextBufferSerializeFunc
* Intern all signal names beforehandMatthias Clasen2015-09-121-1/+1
| | | | This avoids pointless allocations
* Redo font map support in GtkFontChooserMatthias Clasen2015-06-131-15/+5
| | | | | | | | 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.
* Fix return value error in gtk_font_chooser_get_font_mapTing-Wei Lan2015-05-121-1/+1
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=749248
* GtkFontChooser: Add an example to the docsMatthias Clasen2015-05-071-4/+24
|
* GtkFontChooser: Allow a custom font mapMatthias Clasen2015-05-071-0/+56
| | | | | | | This lets applications show their own fonts instead of or in addition to system fonts. https://bugzilla.gnome.org/show_bug.cgi?id=748771
* GtkFontChooser: Use G_PARAM_EXPLICIT_NOTIFY for show-preview-entryMatthias Clasen2014-06-091-1/+1
| | | | Implementors will have to be adjusted.
* docs: use Returns: consistentlyWilliam Jon McCann2014-02-191-7/+7
| | | | Instead of Return value:
* docs: use proper quotesWilliam Jon McCann2014-02-051-5/+5
|
* Minor doc cleanupMatthias Clasen2013-03-141-2/+2
| | | | | | Remove widget references from interface docs. https://bugzilla.gnome.org/show_bug.cgi?id=695874
* Change FSF AddressJavier Jardón2012-02-271-3/+1
|
* fontchooser: List font description as font descriptionBenjamin Otte2011-09-191-1/+1
| | | | | Otherwise there will be two properties listed as "Font" in property selectors (in Glade or testfontchooser).
* Clarify conditions when get_font_{family,face} return NULLChristian Persch2011-09-131-2/+6
|
* Rename gtk_font_chooser_get_{family,face,size}Christian Persch2011-09-131-6/+6
| | | | | ... to gtk_font_chooser_get_font_{family,face,size}, in order to avoid naming conflicts in bindings.
* Add GtkFontChooser:font-desc propertyChristian Persch2011-09-131-2/+81
| | | | Add a way to set/get the font as a PangoFontDescription.
* Remove GtkFontChooser:[sg]et_fontChristian Persch2011-09-131-3/+7
| | | | | Now that the setter doesn't return a value anymore, we can just use g_object_[sg]et instead of having these vfuncs.
* Setters should not return a booleanChristian Persch2011-09-131-13/+6
| | | | | | 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.
* Trivial: Fix up function name in the docsMatthias Clasen2011-09-131-1/+1
|
* Rename GtkFontChooser:font-name to :fontChristian Persch2011-09-131-10/+10
| | | | | | | 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 GtkFontChooser an interfaceChristian Persch2011-09-131-1115/+82
| | | | | | | | 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
* GtkFontChooser: mark 'no matches' string for translationMatthias Clasen2011-09-051-1/+1
|
* GtkFontChooser: escape markup where requiredMatthias Clasen2011-09-041-14/+11
| | | | | Since we use markup in the list, we need to escape the font name and preview text pieces that we embed there.
* Trivial: include cleanupsMatthias Clasen2011-08-281-1/+0
|
* More include cleanupsMatthias Clasen2011-08-281-4/+2
|
* GtkFontChooser: Add a ::font-activated signalMatthias Clasen2011-08-241-1/+47
| | | | This signal gets emitted when a font in the list is activated.
* Make setting fontname work, independent of a screenMatthias Clasen2011-08-151-20/+41
|
* Keep the currently selected font over theme changesMatthias Clasen2011-08-151-14/+34
| | | | | When repopulating the list of fonts, don't loose the current selection, unless the font is no longer in the list.
* Add filtering to the font chooserMatthias Clasen2011-08-151-81/+109
|
* Add 'no matches' functionalityMatthias Clasen2011-08-151-31/+18
| | | | | Initial cut at showing a 'no matches' message if the font list is empty.
* Make the fontchooser dialog come up in a reasonable sizeMatthias Clasen2011-08-151-0/+1
| | | | | This is not a perfect solution; we really just want to set a nice default size, but GTK+ does not make that easy.
* Just use a single gridMatthias Clasen2011-08-151-12/+7
| | | | The subgrid didn't really add anything.
* Clean up error handlingMatthias Clasen2011-08-151-7/+9
|
* Rename some staticsMatthias Clasen2011-08-151-8/+8
| | | | gtk_font_chooser_ref_{family,face} -> gtk_font_chooser_set_{family,face}
* Avoid extraneous signals at destroy timeMatthias Clasen2011-08-151-17/+41
| | | | | We need to disconnect the cursor-changed handler before the treeview gets destroyed, to avoid unwanted emissions.
* Simplify a few thingsMatthias Clasen2011-08-151-60/+49
| | | | | Adwaita seems to misrender focus on entries with margins, so use spacing instead. Also, don't use entry buffer unnecessarily.
* Trivial formatting fixesMatthias Clasen2011-08-151-87/+85
| | | | Just committing these is easier than writing them up.
* GtkFontChooser: get_font_name did not return the font sizeAlberto Ruiz2011-08-151-1/+7
|
* GtkFontChooser: Stub code to handle empty list by search.Alberto Ruiz2011-08-151-4/+70
|
* GtkFontChooser: font-name property notification wasn't properly propagated ↵Alberto Ruiz2011-08-151-18/+4
| | | | during size change from the spinbutton
* GtkFontChooser: Using G_N_ELEMENTS instead of a defineAlberto Ruiz2011-08-151-4/+3
|
* GtkFontChooser: Using the widget instead of the private struct as signal ↵Alberto Ruiz2011-08-151-31/+43
| | | | data in all conects
* GtkFontChooser: Fixed coding style wrt spacing around operatorsAlberto Ruiz2011-08-151-5/+5
|