1
2@c %start of fragment
3
4@deftp Class <gtk-combo-box-entry>
5Derives from @code{<gtk-combo-box>}.
6
7This class defines the following slots:
8
9@table @code
10@item text-column
11A column in the data source model to get the strings from
12
13@end table
14
15@end deftp
16
17@deffn Function gtk-combo-box-entry-new  @result{}@tie{} (ret@tie{}@code{<gtk-widget>})
18Creates a new @code{<gtk-combo-box-entry>} which has a @code{<gtk-entry>} as
19child. After construction, you should set a model using
20@code{gtk-combo-box-set-model} and a text_column * using
21@code{gtk-combo-box-entry-set-text-column}.
22
23@table @var
24@item ret
25A new @code{<gtk-combo-box-entry>}.
26
27@end table
28
29Since 2.4
30
31@end deffn
32
33@deffn Function gtk-combo-box-entry-new-with-model  (model@tie{}@code{<gtk-tree-model>}) (text_column@tie{}@code{int}) @result{}@tie{} (ret@tie{}@code{<gtk-widget>})
34Creates a new @code{<gtk-combo-box-entry>} which has a @code{<gtk-entry>} as
35child and a list of strings as popup. You can get the @code{<gtk-entry>} from a
36@code{<gtk-combo-box-entry>} using GTK_ENTRY (GTK_BIN (combo_box_entry)->child).
37To add and remove strings from the list, just modify @var{model} using its data
38manipulation API.
39
40@table @var
41@item model
42A @code{<gtk-tree-model>}.
43
44@item text-column
45A column in @var{model} to get the strings from.
46
47@item ret
48A new @code{<gtk-combo-box-entry>}.
49
50@end table
51
52Since 2.4
53
54@end deffn
55
56@deffn Function gtk-combo-box-entry-new-text  @result{}@tie{} (ret@tie{}@code{<gtk-widget>})
57Convenience function which constructs a new editable text combo box, which is a
58@code{<gtk-combo-box-entry>} just displaying strings. If you use this function
59to create a text combo box, you should only manipulate its data source with the
60following convenience functions: @code{gtk-combo-box-append-text},
61@code{gtk-combo-box-insert-text}, @code{gtk-combo-box-prepend-text} and
62@code{gtk-combo-box-remove-text}.
63
64@table @var
65@item ret
66A new text @code{<gtk-combo-box-entry>}.
67
68@end table
69
70Since 2.4
71
72@end deffn
73
74@deffn Function gtk-combo-box-entry-set-text-column  (self@tie{}@code{<gtk-combo-box-entry>}) (text_column@tie{}@code{int})
75@deffnx Method set-text-column
76Sets the model column which @var{entry-box} should use to get strings from to be
77@var{text-column}.
78
79@table @var
80@item entry-box
81A @code{<gtk-combo-box-entry>}.
82
83@item text-column
84A column in @var{model} to get the strings from.
85
86@end table
87
88Since 2.4
89
90@end deffn
91
92@deffn Function gtk-combo-box-entry-get-text-column  (self@tie{}@code{<gtk-combo-box-entry>}) @result{}@tie{} (ret@tie{}@code{int})
93@deffnx Method get-text-column
94Returns the column which @var{entry-box} is using to get the strings from.
95
96@table @var
97@item entry-box
98A @code{<gtk-combo-box-entry>}.
99
100@item ret
101A column in the data source model of @var{entry-box}.
102
103@end table
104
105Since 2.4
106
107@end deffn
108
109
110@c %end of fragment
111