File: GtkUIManager.xs

package info (click to toggle)
libgtk2-perl 2:1.2499-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 4,668 kB
  • ctags: 594
  • sloc: perl: 22,100; ansic: 122; makefile: 17
file content (84 lines) | stat: -rw-r--r-- 2,620 bytes parent folder | download | duplicates (7)
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
/*
 * Copyright (c) 2003 by the gtk2-perl team (see the file AUTHORS)
 *
 * Licensed under the LGPL, see LICENSE file for more information.
 *
 * $Id$
 */

#include "gtk2perl.h"

MODULE = Gtk2::UIManager	PACKAGE = Gtk2::UIManager	PREFIX = gtk_ui_manager_

GtkUIManager_noinc *gtk_ui_manager_new (class);
    C_ARGS:
	/*void*/

void gtk_ui_manager_set_add_tearoffs (GtkUIManager *self, gboolean add_tearoffs);

gboolean gtk_ui_manager_get_add_tearoffs (GtkUIManager *self);

void gtk_ui_manager_insert_action_group (GtkUIManager *self, GtkActionGroup *action_group, gint pos);

void gtk_ui_manager_remove_action_group (GtkUIManager *self, GtkActionGroup *action_group);

void gtk_ui_manager_get_action_groups (GtkUIManager *self);
    PREINIT:
	GList * groups, * i;
    PPCODE:
	groups = gtk_ui_manager_get_action_groups (self);
	for (i = groups ; i != NULL ; i = i->next)
		XPUSHs (sv_2mortal (newSVGtkActionGroup (i->data)));

GtkAccelGroup *gtk_ui_manager_get_accel_group (GtkUIManager *self);

GtkWidget *gtk_ui_manager_get_widget (GtkUIManager *self, const gchar *path);

## GSList *gtk_ui_manager_get_toplevels (GtkUIManager *self, GtkUIManagerItemType types);
void
gtk_ui_manager_get_toplevels (GtkUIManager *self, GtkUIManagerItemType types)
    PREINIT:
	GSList * toplevels, * i;
    PPCODE:
	toplevels = gtk_ui_manager_get_toplevels (self, types);
	for (i = toplevels ; i != NULL ; i = i->next)
		XPUSHs (sv_2mortal (newSVGtkWidget (i->data)));
	g_slist_free (toplevels);

GtkAction *gtk_ui_manager_get_action (GtkUIManager *self, const gchar *path);

=for apidoc __gerror__
=cut
guint gtk_ui_manager_add_ui_from_string (GtkUIManager *self, const gchar_length *buffer, int length(buffer));
    PREINIT:
	GError * error = NULL;
    CODE:
	RETVAL = gtk_ui_manager_add_ui_from_string (self, buffer, STRLEN_length_of_buffer, &error);
	if (!RETVAL)
		gperl_croak_gerror (NULL, error);
    OUTPUT:
	RETVAL

=for apidoc __gerror__
=cut
guint gtk_ui_manager_add_ui_from_file (GtkUIManager *self, const gchar *filename);
    PREINIT:
	GError * error = NULL;
    CODE:
	RETVAL = gtk_ui_manager_add_ui_from_file (self, filename, &error);
	if (!RETVAL)
		gperl_croak_gerror (NULL, error);
    OUTPUT:
	RETVAL

void gtk_ui_manager_add_ui (GtkUIManager *self, guint merge_id, const gchar *path, const gchar *name, const gchar_ornull *action, GtkUIManagerItemType type, gboolean top);

void gtk_ui_manager_remove_ui (GtkUIManager *self, guint merge_id);

gchar_own *gtk_ui_manager_get_ui (GtkUIManager *self);

void gtk_ui_manager_ensure_update (GtkUIManager *self);

guint gtk_ui_manager_new_merge_id (GtkUIManager *self);