Skip to content
  • Peng Wu's avatar
    sushi-font-widget: Add face_index argument · 3c48f73d
    Peng Wu authored and Daiki Ueno's avatar Daiki Ueno committed
    sushi_font_widget_new() now takes face index as the second argument.
    All callers changed.  The face index of the widget can be accessed
    through the "face-index" property.
    
    Setting the "uri" property with g_object_set() no longer starts font
    loading, while it does when it is set through the constructor.
    
    This is to prevent the same font from being loaded twice, when both
    "uri" and "face-index" are set with g_object_set().  To start loading,
    you can explicitly call sushi_font_widget_load() after setting the
    properties.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=752005
    3c48f73d