File: GtkListItem.xs

package info (click to toggle)
libgtk-perl 0.7009-12
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 3,956 kB
  • ctags: 2,260
  • sloc: perl: 13,998; xml: 9,919; ansic: 2,894; makefile: 64; cpp: 45
file content (35 lines) | stat: -rw-r--r-- 605 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35

#include "EXTERN.h"
#include "perl.h"
#include "XSUB.h"

#include "GtkDefs.h"

MODULE = Gtk::ListItem		PACKAGE = Gtk::ListItem		PREFIX = gtk_list_item_

#ifdef GTK_LIST_ITEM

Gtk::ListItem_Sink
new(Class, string=0)
	SV *	Class
	char *	string
	ALIAS:
		Gtk::ListItem::new = 0
		Gtk::ListItem::new_with_label = 1
	CODE:
	if (!string)
		RETVAL = (GtkListItem*)(gtk_list_item_new());
	else
		RETVAL = (GtkListItem*)(gtk_list_item_new_with_label(string));
	OUTPUT:
	RETVAL

void
gtk_list_item_select(list_item)
	Gtk::ListItem	list_item

void
gtk_list_item_deselect(list_item)
	Gtk::ListItem	list_item

#endif