File: GtkMenuShell.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 (51 lines) | stat: -rw-r--r-- 1,114 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51

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

#include "GtkDefs.h"

MODULE = Gtk::MenuShell		PACKAGE = Gtk::MenuShell	PREFIX = gtk_menu_shell_

#ifdef GTK_MENU_SHELL

void
gtk_menu_shell_append(menu_shell, child)
	Gtk::MenuShell	menu_shell
	Gtk::Widget	child
	ALIAS:
		Gtk::MenuShell::append = 0
		Gtk::MenuShell::prepend = 1
		Gtk::MenuShell::select_item = 2
	CODE:
	switch (ix) {
	case 0: gtk_menu_shell_append(menu_shell, child); break;
	case 1: gtk_menu_shell_prepend(menu_shell, child); break;
	case 2: gtk_menu_shell_select_item(menu_shell, child); break;
	}

void
gtk_menu_shell_insert(menu_shell, child, position)
	Gtk::MenuShell	menu_shell
	Gtk::Widget	child
	int	position

void
gtk_menu_shell_deactivate(menu_shell)
	Gtk::MenuShell	menu_shell
	ALIAS:
		Gtk::MenuShell::deactivate = 0
		Gtk::MenuShell::deselect = 1
	CODE:
	if (ix == 0)
		gtk_menu_shell_deactivate(menu_shell);
	else if (ix == 1)
		gtk_menu_shell_deselect (menu_shell);

void
gtk_menu_shell_activate_item (menu_shell, widget, force_deactivate)
	Gtk::MenuShell	menu_shell
	Gtk::Widget	widget
	gboolean	force_deactivate

#endif