| GTK+ 2 Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | Object Hierarchy | Implemented Interfaces | Signals | ||||
#include <gtk/gtk.h> struct GtkListItem; GtkWidget * gtk_list_item_new (void); GtkWidget * gtk_list_item_new_with_label (const gchar *label); void gtk_list_item_select (GtkListItem *list_item); void gtk_list_item_deselect (GtkListItem *list_item);
GObject +----GInitiallyUnowned +----GtkObject +----GtkWidget +----GtkContainer +----GtkBin +----GtkItem +----GtkListItem
"end-selection" :Action"extend-selection" :Action"scroll-horizontal" :Action"scroll-vertical" :Action"select-all" :Action"start-selection" :Action"toggle-add-mode" :Action"toggle-focus-row" :Action"undo-selection" :Action"unselect-all" :Action
The GtkListItem widget is used for each item in a GtkList.
GtkList has has been deprecated since GTK+ 2.0 and should not be used in newly written code. Use GtkTreeView instead.
struct GtkListItem;
GtkListItem is deprecated and should not be used in newly-written code.
The GtkListItem struct contains private data only, and should only be accessed using the functions below.
GtkWidget * gtk_list_item_new (void);
gtk_list_item_new is deprecated and should not be used in newly-written code.
Creates a new GtkListitem.
Returns : |
a new GtkListItem. |
GtkWidget * gtk_list_item_new_with_label (const gchar *label);
gtk_list_item_new_with_label is deprecated and should not be used in newly-written code.
Creates a new GtkListItem with a child label containing the given string.
|
the string to use for the child label. |
Returns : |
a new GtkListItem with a child GtkLabel with the text set to
label. |
void gtk_list_item_select (GtkListItem *list_item);
gtk_list_item_select is deprecated and should not be used in newly-written code.
Selects the item, by emitting the item's "select" signal. Depending on the selection mode of the list, this may cause other items to be deselected.
|
a GtkListItem. |
void gtk_list_item_deselect (GtkListItem *list_item);
gtk_list_item_deselect is deprecated and should not be used in newly-written code.
Deselects the item, by emitting the item's "deselect" signal.
|
a GtkListItem. |
"end-selection" signalvoid user_function (GtkListItem *listitem,
gpointer user_data) : Action
|
the object which received the signal. |
|
user data set when the signal handler was connected. |
"extend-selection" signalvoid user_function (GtkListItem *listitem,
GtkScrollType arg1,
gfloat arg2,
gboolean arg3,
gpointer user_data) : Action
|
the object which received the signal. |
|
user data set when the signal handler was connected. |
"scroll-horizontal" signalvoid user_function (GtkListItem *listitem,
GtkScrollType arg1,
gfloat arg2,
gpointer user_data) : Action
|
the object which received the signal. |
|
user data set when the signal handler was connected. |
"scroll-vertical" signalvoid user_function (GtkListItem *listitem,
GtkScrollType arg1,
gfloat arg2,
gpointer user_data) : Action
|
the object which received the signal. |
|
user data set when the signal handler was connected. |
"select-all" signalvoid user_function (GtkListItem *listitem,
gpointer user_data) : Action
|
the object which received the signal. |
|
user data set when the signal handler was connected. |
"start-selection" signalvoid user_function (GtkListItem *listitem,
gpointer user_data) : Action
|
the object which received the signal. |
|
user data set when the signal handler was connected. |
"toggle-add-mode" signalvoid user_function (GtkListItem *listitem,
gpointer user_data) : Action
|
the object which received the signal. |
|
user data set when the signal handler was connected. |
"toggle-focus-row" signalvoid user_function (GtkListItem *listitem,
gpointer user_data) : Action
|
the object which received the signal. |
|
user data set when the signal handler was connected. |
"undo-selection" signalvoid user_function (GtkListItem *listitem,
gpointer user_data) : Action
|
the object which received the signal. |
|
user data set when the signal handler was connected. |
"unselect-all" signalvoid user_function (GtkListItem *listitem,
gpointer user_data) : Action
|
the object which received the signal. |
|
user data set when the signal handler was connected. |