Function

Pidginadd_widget_to_vbox

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.

Parameters

vbox GtkBox
 

The vertically-oriented GtkBox to add the widget to.

 The data is owned by the caller of the function.
widget_label 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 GtkSizeGroup
 

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

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

The GtkWidget to add.

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

Whether to expand the widget horizontally.

p_label 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

Returns: 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.