My favorites | Sign in
Logo
                
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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
## Most entries here are for specifying the add methods for each Container
## Others are here for renaming some parameters or to specify default values.
##
## Usage:
## Tweak a creation method:
## new.creation_method_name=param1[=value];param2[=value]
## Tweak the default creation method
## new = param1[=value];param2[=value]
## List the container add methods:
## adds=add_method_1;add_method_2
## Tweak an add method:
## add.add_method_1=param1[=value];param2=[value]
##
## Given a specific container X, the order of picking a method is
## - the implicits files in --implicitsdir come first, in the order the dirs
## were specified, then comes the installed ${PREFIX}/share/gtkaml/*.implicits
## - then the methods listed under the [X] group, in the order they are listed
## - then the methods listed under [Y] where X extends Y.
## (repeated for the whole class hierarchy)
##
## You can have your own NS.implicits file, where NS is a Vala namespace
## You specify an aditional folder for gtkamlc too look in with --implicitsdir
## And the files configuring the same namespace NS have their definitions merged

[Label]
## rename the parameter 'str' to 'label'
new = label
new.with_mnemonic = label

[MenuItem]
## rename the parameter 'str' to 'label'
new.with_label = label
new.with_mnemonic = label

[Container]
## see issue #7 - we can't use add () for the moment because its a signal
adds=add_with_properties

[ScrolledWindow]
## actually add_with_properties reffers to Container.add_with_properties
## Here we just make it the first to pick by default
adds = add_with_properties;add_with_viewport
new = hadjustment={null};vadjustment={null}

[Box]
adds = pack_start;pack_end;pack_start_defaults;pack_end_defaults
## defaulting as per pack_start_defaults/pack_end_defaults
add.pack_start = widget;expand=true;fill=true;padding=0
add.pack_end = widget;expand=true;fill=true;padding=0

[VBox]
## default values
new = homogeneous=false;spacing=0

[HBox]
## default values
new = homogeneous=false;spacing=0

[Fixed]
adds = put

[Paned]
adds = add1;add2;pack1;pack2

[Layout]
adds = put

[Window]
## defaulting to toplevel window
new = type={WindowType.TOPLEVEL}

[MenuShell]
adds = append;prepend;insert;
## renaming parameter
add.insert = position

[ImageMenuItem]
## defaulting the accel_group attribute to null
new.from_stock = stock_id;accel_group={null}

[Notebook]
adds = append_page;append_page_menu;prepend_page;prepend_page_menu;insert_page;insert_page_menu

[Socket]
adds = add_id

[Table]
adds = attach;attach_defaults;
## renaming parameters
new = n_rows;n_columns;homogeneous

[Toolbar]
adds = insert

[TreeView]
adds = append_column;remove_column;insert_column

[TreeViewColumn]
adds = pack_start;pack_end;add_attribute

[Dialog]
adds = add_action_widget

[ActionGroup]
adds = add_action;add_action_with_accel
Show details Hide details

Change log

r352 by b100dian on Aug 17, 2008   Diff
updated archlinux build;
removed a ; from implicits file
Go to: 
Project members, sign in to write a code review

Older revisions

r322 by b100dian on Apr 13, 2008   Diff
refactoring for vala 0.3.1 changes
r320 by b100dian on Apr 11, 2008   Diff
commented implicits file
r225 by b100dian on Mar 03, 2008   Diff
further tweaked the example
All revisions of this file

File info

Size: 2846 bytes, 105 lines
Hosted by Google Code