RcStyle.getStyleByPaths

Warning gtk_rc_get_style_by_paths has been deprecated since version 3.0 and should not be used in newly-written code. Use GtkStyleContext instead Creates up a GtkStyle from styles defined in a RC file by providing the raw components used in matching. This function may be useful when creating pseudo-widgets that should be themed like widgets but don't actually have corresponding GTK+ widgets. An example of this would be items inside a GNOME canvas widget.

class RcStyle
deprecated static
getStyleByPaths

Parameters

settings Settings

a GtkSettings object

widgetPath string

the widget path to use when looking up the style, or NULL if no matching against the widget path should be done. [allow-none]

classPath string

the class path to use when looking up the style, or NULL if no matching against the class path should be done. [allow-none]

type GType

a type that will be used along with parent types of this type when matching against class styles, or G_TYPE_NONE

Return Value

Type: Style

A style created by matching with the supplied paths, or NULL if nothing matching was specified and the default style should be used. The returned value is owned by GTK+ as part of an internal cache, so you must call g_object_ref() on the returned value if you want to keep a reference to it. [transfer none]

Meta