• [^] # Re: Firefox ou XUL ?

    Posté par . En réponse au journal Ayé, on peut compiler Firefox pour GTK+3 (si on veut). Évalué à 2.

    Pour les deprecated, je ne retrouve pas ça dans la doc, à part :

    La doc de Gnome est assez mal foutue à ce niveau. On va dire qu'après les décimations de GTK 3.2 et 3.4, 3.6 et 3.8 font presque pale figure.
    En deprecated on a quand même
    En 3.8 :
    GtkGradient qui prend une claque :
    Fonctions impactées :
    gtk_gradient_add_color_stop, function in GtkGradient
    gtk_gradient_new_linear, function in GtkGradient
    gtk_gradient_new_radial, function in GtkGradient
    gtk_gradient_ref, function in GtkGradient
    gtk_gradient_resolve, function in GtkGradient
    gtk_gradient_to_string, function in GtkGradient
    gtk_gradient_unref, function in GtkGradient

    GtkIconTheme qui se fait (encore) shooter (on pouvait s'y attendre)
    gtk_icon_info_copy, function in GtkIconTheme
    gtk_icon_info_free, function in GtkIconTheme

    GtkMenu : vous vous souvenez quand on disait ques CSS ne seraient pas obligatoires ? Ben en fait…
    GtkMenu:horizontal-padding, object property in GtkMenu
    GtkMenu:vertical-padding, object property in GtkMenu
    GtkMenuBar:internal-padding, object property in GtkMenuBar
    GtkMenuItem:horizontal-padding, object property in GtkMenuItem

    GtkSettings : On ne gère pas les couleurs soi-même
    GtkSettings:color-hash, object property in GtkSettings
    GtkSettings:gtk-color-scheme, object property in GtkSettings

    GtkStyle* : On ne gère pas non plus les styles soi-même
    gtk_style_properties_lookup_color, function in GtkStyleProperties
    gtk_style_properties_lookup_property, function in GtkStyleProperties
    gtk_style_properties_map_color, function in GtkStyleProperties
    gtk_style_properties_register_property, function in GtkStyleProperties
    gtk_style_provider_get_icon_factory, function in GtkStyleProvider
    gtk_style_provider_get_style, function in GtkStyleProvider

    GtkSymbolicColor : J'ai déjà dit qu'on ne gérait pas les couleurs soi-même.
    gtk_symbolic_color_new_alpha, function in GtkSymbolicColor
    gtk_symbolic_color_new_literal, function in GtkSymbolicColor
    gtk_symbolic_color_new_mix, function in GtkSymbolicColor
    gtk_symbolic_color_new_name, function in GtkSymbolicColor
    gtk_symbolic_color_new_shade, function in GtkSymbolicColor
    gtk_symbolic_color_new_win32, function in GtkSymbolicColor
    gtk_symbolic_color_ref, function in GtkSymbolicColor
    gtk_symbolic_color_resolve, function in GtkSymbolicColor
    gtk_symbolic_color_to_string, function in GtkSymbolicColor
    gtk_symbolic_color_unref, function in GtkSymbolicColor

    GtkThemingEngine : MAIS ARRRH ! Pas les thèmes !
    gtk_theming_engine_get_direction, function in GtkThemingEngine
    gtk_theming_engine_get_font, function in GtkThemingEngine
    gtk_theming_engine_register_property, function in GtkThemingEngine

    En 3.6 :
    GtkInfoBar qui se fait rayer :
    GtkInfoBar:action-area-border, object property in GtkInfoBar
    GtkInfoBar:button-spacing, object property in GtkInfoBar
    GtkInfoBar:content-area-border, object property in GtkInfoBar
    GtkInfoBar:content-area-spacing, object property in GtkInfoBar

    GtkStyleContext (certains éléments ont été deprecated en 3.8 - je emts ca sur le compte d'un oubli)
    gtk_style_context_cancel_animations, function in GtkStyleContext
    gtk_style_context_get_direction, function in GtkStyleContext
    gtk_style_context_get_font, function in GtkStyleContext
    gtk_style_context_notify_state_change, function in GtkStyleContext
    gtk_style_context_pop_animatable_region, function in GtkStyleContext
    gtk_style_context_push_animatable_region, function in GtkStyleContext
    gtk_style_context_scroll_animations, function in GtkStyleContext
    gtk_style_context_set_direction, function in GtkStyleContext
    gtk_style_context_state_is_running, function in GtkStyleContext

    GtkToolbar : petite claque sur la thémabilité - comme d'hab
    GtkToolbar:internal-padding, object property in GtkToolbar
    GtkToolbar:shadow-type, object property in GtkToolbar

    De façon générale tout ce qui touche au changement de couleur, de placement, d'espacement ou de thème se fait copieusement marraver la gueule d'une version à l'autre. Le rpoblème dans un produit comme Firefox est que ca oblige à avoir deux jeux de widgets : celui pour la fenêtre elle même, et celui pour le contenu.