Method

GtkWidgetPathiter_set_object_name

since: 3.20

Declaration [src]

void
gtk_widget_path_iter_set_object_name (
  GtkWidgetPath* path,
  gint pos,
  const char* name
)

Description [src]

Sets the object name for a given position in the widget hierarchy defined by path.

When set, the object name overrides the object type when matching CSS.

Available since: 3.20

Parameters

pos

Type: gint

Position to modify, -1 for the path head.

name

Type: const char*

Object name to set or NULL to unset.

The argument can be NULL.
The data is owned by the caller of the method.
The value is a NUL terminated UTF-8 string.