Top |
TeplStyleSchemeChooserWidgetTeplStyleSchemeChooserWidget — A simple GtkSourceStyleSchemeChooser |
GObject ╰── GInitiallyUnowned ╰── GtkWidget ╰── GtkContainer ╰── GtkBin ╰── TeplStyleSchemeChooserWidget
TeplStyleSchemeChooserWidget implements AtkImplementorIface, GtkBuildable and GtkSourceStyleSchemeChooser.
TeplStyleSchemeChooserWidget is a simple implementation of the GtkSourceStyleSchemeChooser interface.
It shows a list with the name and description of each GtkSourceStyleScheme,
taken from the default GtkSourceStyleSchemeManager (as returned by
gtk_source_style_scheme_manager_get_default()
).
TeplStyleSchemeChooserWidget contains a GtkScrolledWindow internally. When the “map” signal is emitted, it scrolls to the selected row (useful when the list is long).
There is also an additional convenience property: “tepl-style-scheme-id”.
TeplStyleSchemeChooserWidget *
tepl_style_scheme_chooser_widget_new (void
);
Since: 5.0
gchar *
tepl_style_scheme_chooser_widget_get_style_scheme_id
(TeplStyleSchemeChooserWidget *chooser
);
Since: 5.0
void tepl_style_scheme_chooser_widget_set_style_scheme_id (TeplStyleSchemeChooserWidget *chooser
,const gchar *style_scheme_id
);
Sets the “tepl-style-scheme-id” property.
The GtkSourceStyleScheme is taken from the default
GtkSourceStyleSchemeManager as returned by
gtk_source_style_scheme_manager_get_default()
.
Since: 5.0
“tepl-style-scheme-id”
property “tepl-style-scheme-id” char *
The “style-scheme” ID, as a string. This property is useful for binding it to a GSettings key.
When the “style-scheme” is NULL
, this
property contains the empty string.
Owner: TeplStyleSchemeChooserWidget
Flags: Read / Write
Default value: ""
Since: 5.0