Function

Pidginadd_widget_to_vbox

since: 2.4

Declaration [src]

GtkWidget*
pidgin_add_widget_to_vbox (
  GtkBox* vbox,
  const char* widget_label,
  GtkSizeGroup* sg,
  GtkWidget* widget,
  gboolean expand,
  GtkWidget** p_label
)

Description [src]

Add a labelled widget to a GtkBox.

Available since: 2.4

Parameters

vbox

Type: GtkBox

The vertically-oriented GtkBox to add the widget to.

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

Type: const char*

The label to give the widget, can be NULL.

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

Type: GtkSizeGroup

The GtkSizeGroup to add the label to, can be NULL.

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

Type: GtkWidget

The GtkWidget to add.

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

Type: gboolean

Whether to expand the widget horizontally.

p_label

Type: GtkWidget

Place to store a pointer to the GtkLabel, or NULL if you don’t care.

The data is owned by the caller of the function.

Return value

Type: GtkWidget

A GtkBox already added to the GtkBox containing the GtkLabel and the GtkWidget.

The caller of the function takes ownership of the data, and is responsible for freeing it.