Style context api review
function | replacement | used in |
---|---|---|
gtk_style_context_add_provider_for_display | move to GtkSettings ? | |
gtk_style_context_remove_provider_for_display | move to GtkSettings ? | |
gtk_style_context_add_provider | - | |
gtk_style_context_remove_provider | - | |
gtk_style_context_save | - | cell renderers, label links, print dialog, undershoot/overshoot |
gtk_style_context_restore | - | cell renderers, label links, print dialog, undershoot/overshoot |
gtk_style_context_set_state | - | cell renderers, links, used with save/restore |
gtk_style_context_get_state | - | treeview |
gtk_style_context_set_scale | - | internal |
gtk_style_context_get_scale | gtk_widget_get_scale_factor | unused |
gtk_style_context_list_classes | gtk_widget_get_css_classes | |
gtk_style_context_add_class | gtk_widget_add_css_class | still used with save/restore |
gtk_style_context_remove_class | gtk_widget_remove_css_class | still used with save/restore |
gtk_style_context_has_class | gtk_widget_has_css_class | |
gtk_style_context_set_display | - | internal |
gtk_style_context_get_display | - | unused |
gtk_style_context_lookup_color | - | symbolic colors, used in a cell renderer |
gtk_style_context_get_color | move to GtkWidget ? | all over |
gtk_style_context_get_border | - | window, flowbox, cellrenderertoggle |
gtk_style_context_get_padding | - | window, tooltipwindow |
gtk_style_context_get_margin | - | window, tooltipwindow |
gtk_style_context_reset_widgets | - | dropped |
gtk_style_context_to_string | private | debugging, tests |
Open questions to make progress here:
- What is the fate of symbolic colors ?
- Do we add replacement for style property getters in GtkWidget ?
- What do we pass to snapshot apis instead of the style context ?
Edited by Matthias Clasen