Method

GtkWidgetpath

Declaration [src]

void
gtk_widget_path (
  GtkWidget* widget,
  guint* path_length,
  gchar** path,
  gchar** path_reversed
)

Description [src]

Obtains the full path to widget. The path is simply the name of a widget and all its parents in the container hierarchy, separated by periods. The name of a widget comes from gtk_widget_get_name(). Paths are used to apply styles to a widget in gtkrc configuration files. Widget names are the type of the widget by default (e.g. “GtkButton”) or can be set to an application-specific value with gtk_widget_set_name(). By setting the name of a widget, you allow users or theme authors to apply styles to that specific widget in their gtkrc file. path_reversed_p fills in the path in reverse order, i.e. starting with widget’s name instead of starting with the name of widget’s outermost ancestor.

Deprecated since:3.0

Use gtk_widget_get_path() instead.

Parameters

path_length guint*
 

Location to store length of the path, or NULL.

 The argument will be set by the function.
 The argument can be NULL.
path gchar**
 

Location to store allocated path string, or NULL.

 The argument will be set by the function.
 The argument can be NULL.
 The instance takes ownership of the data, and is responsible for freeing it.
 The value is a NUL terminated UTF-8 string.
path_reversed gchar**
 

Location to store allocated reverse path string, or NULL.

 The argument will be set by the function.
 The argument can be NULL.
 The instance takes ownership of the data, and is responsible for freeing it.
 The value is a NUL terminated UTF-8 string.