Function

Pidginprefs_labeled_spin_button

Declaration [src]

GtkWidget*
pidgin_prefs_labeled_spin_button (
  GtkWidget* page,
  const gchar* title,
  const char* key,
  int min,
  int max,
  GtkSizeGroup* sg
)

Description [src]

Add a new spin button representing an int preference.

Parameters

page GtkWidget
 

The page to which the spin button will be added.

 The data is owned by the caller of the function.
title const gchar*
 

The text to be displayed as the spin button label.

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

The key of the int pref that will be represented by the spin button.

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

The minimum value of the spin button.

max int
 

The maximum value of the spin button.

sg GtkSizeGroup
 

If not NULL, the size group to which the spin button will be added.

 The data is owned by the caller of the function.

Return value

Returns: GtkWidget
 

An hbox containing both the label and the spinner. Can be used to set the widgets to sensitive or insensitive based on the value of a checkbox.

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