Function

Plumautils_get_ui_objects

since: 1.0

Declaration [src]

gboolean
pluma_utils_get_ui_objects (
  const gchar* filename,
  gchar** root_objects,
  GtkWidget** error_widget,
  const gchar* object_name,
  ...
)

Description [src]

This function gets the requested objects from a GtkBuilder ui file. In case of error it returns FALSE and sets error_widget to a GtkLabel containing the error message to display.

Available since: 1.0

This function is not directly available to language bindings.

Parameters

filename

Type: const gchar*

The path to the gtk builder file.

The data is owned by the caller of the function.
The value is a NUL terminated UTF-8 string.
root_objects

Type: gchar**

A NULL terminated list of root objects to load or NULL to load all objects.

The data is owned by the caller of the function.
The value is a NUL terminated UTF-8 string.
error_widget

Type: GtkWidget

A pointer were a GtkLabel.

The data is owned by the caller of the function.
object_name

Type: const gchar*

The name of the first object.

The data is owned by the caller of the function.
The value is a NUL terminated UTF-8 string.
...

Type: 

A pointer were the first object is returned, followed by more name / object pairs and terminated by NULL.

Return value

Type: gboolean

FALSE if an error occurs, TRUE on success.