1 /*
2  * Copyright (c) 2003 by the gtk2-perl team (see the file AUTHORS)
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Library General Public
6  * License as published by the Free Software Foundation; either
7  * version 2.1 of the License, or (at your option) any later version.
8  *
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12  * Library General Public License for more details.
13  *
14  * You should have received a copy of the GNU Library General Public
15  * License along with this library; if not, write to the
16  * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17  * Boston, MA  02110-1301  USA.
18  *
19  * $Id$
20  *
21  * NOTE: GtkList and GtkListItem are deprecated and only included b/c GtkCombo
22  * still makes use of them, they are subject to removal at any point so you
23  * should not utilize them unless absolutly necessary.)
24  *
25  */
26 
27 #include "gtk2perl.h"
28 
29 MODULE = Gtk2::ListItem	PACKAGE = Gtk2::ListItem	PREFIX = gtk_list_item_
30 
31 =for position DESCRIPTION
32 
33 =head1 DESCRIPTION
34 
35 Gtk2::ListItem is the widget used for each item in a Gtk2::List.  Gtk2::List
36 and Gtk2::ListItem are deprecated; use Gtk2::TreeView and a Gtk2::ListStore
37 instead.
38 
39 Gtk2::ListItem is included in Gtk2-Perl only because Gtk2::Combo contains a
40 Gtk2::List, and Gtk2::Combo's replacement, Gtk2::ComboBox, didn't appear in
41 gtk+ until 2.4.0.
42 
43 =cut
44 
45 #ifdef GTK_TYPE_LIST_ITEM
46 
47 ##  GtkWidget* gtk_list_item_new (void)
48 ##  GtkWidget* gtk_list_item_new_with_label (const gchar *label)
49 GtkWidget *
50 gtk_list_item_new (class, label=NULL)
51 	gchar * label
52     ALIAS:
53 	Gtk2::ListItem::new_with_label = 1
54     CODE:
55 	PERL_UNUSED_VAR (ix);
56 	if( label )
57 		RETVAL = gtk_list_item_new_with_label(label);
58 	else
59 		RETVAL = gtk_list_item_new();
60     OUTPUT:
61 	RETVAL
62 
63 ##  void gtk_list_item_select (GtkListItem *list_item)
64 void
65 gtk_list_item_select (list_item)
66 	GtkListItem * list_item
67 
68 ##  void gtk_list_item_deselect (GtkListItem *list_item)
69 void
70 gtk_list_item_deselect (list_item)
71 	GtkListItem * list_item
72 
73 #endif
74 
75