v0.2.1 c0399be

gtkcomboboxtext.go RawHistoryFolder

1// Package gtk was automatically generated by github.com/bnema/puregotk DO NOT EDIT
2package gtk
3
4import (
5	"github.com/ebitengine/purego"
6
7	"github.com/bnema/puregotk/pkg/core"
8	"github.com/bnema/puregotk/v4/gdk"
9	"github.com/bnema/puregotk/v4/glib"
10	"github.com/bnema/puregotk/v4/gobject"
11	"github.com/bnema/puregotk/v4/gobject/types"
12)
13
14// A `GtkComboBoxText` is a simple variant of `GtkComboBox` for text-only
15// use cases.
16//
17// <picture>
18//
19//	<source srcset="combo-box-text-dark.png" media="(prefers-color-scheme: dark)">
20//	<img alt="An example GtkComboBoxText" src="combo-box-text.png">
21//
22// </picture>
23//
24// `GtkComboBoxText` hides the model-view complexity of `GtkComboBox`.
25//
26// To create a `GtkComboBoxText`, use [ctor@Gtk.ComboBoxText.new] or
27// [ctor@Gtk.ComboBoxText.new_with_entry].
28//
29// You can add items to a `GtkComboBoxText` with
30// [method@Gtk.ComboBoxText.append_text],
31// [method@Gtk.ComboBoxText.insert_text] or
32// [method@Gtk.ComboBoxText.prepend_text] and remove options with
33// [method@Gtk.ComboBoxText.remove].
34//
35// If the `GtkComboBoxText` contains an entry (via the
36// [property@Gtk.ComboBox:has-entry] property), its contents can be retrieved
37// using [method@Gtk.ComboBoxText.get_active_text].
38//
39// You should not call [method@Gtk.ComboBox.set_model] or attempt to pack more
40// cells into this combo box via its [iface@Gtk.CellLayout] interface.
41//
42// ## GtkComboBoxText as GtkBuildable
43//
44// The `GtkComboBoxText` implementation of the `GtkBuildable` interface supports
45// adding items directly using the `<items>` element and specifying `<item>`
46// elements for each item. Each `<item>` element can specify the “id”
47// corresponding to the appended text and also supports the regular
48// translation attributes “translatable”, “context” and “comments”.
49//
50// Here is a UI definition fragment specifying `GtkComboBoxText` items:
51// ```xml
52// <object class="GtkComboBoxText">
53//
54//	<items>
55//	  <item translatable="yes" id="factory">Factory</item>
56//	  <item translatable="yes" id="home">Home</item>
57//	  <item translatable="yes" id="subway">Subway</item>
58//	</items>
59//
60// </object>
61// ```
62//
63// ## CSS nodes
64//
65// ```
66// combobox
67// ╰── box.linked
68//
69//	├── entry.combo
70//	├── button.combo
71//	╰── window.popup
72//
73// ```
74//
75// `GtkComboBoxText` has a single CSS node with name combobox. It adds
76// the style class .combo to the main CSS nodes of its entry and button
77// children, and the .linked class to the node of its internal box.
78type ComboBoxText struct {
79	ComboBox
80}
81
82var xComboBoxTextGLibType func() types.GType
83
84func ComboBoxTextGLibType() types.GType {
85	return xComboBoxTextGLibType()
86}
87
88func ComboBoxTextNewFromInternalPtr(ptr uintptr) *ComboBoxText {
89	cls := &ComboBoxText{}
90	cls.Ptr = ptr
91	return cls
92}
93
94var xNewComboBoxText func() uintptr
95
96// Creates a new `GtkComboBoxText`.
97func NewComboBoxText() *ComboBoxText {
98	var cls *ComboBoxText
99
100	cret := xNewComboBoxText()
101
102	if cret == 0 {
103		return nil
104	}
105	gobject.IncreaseRef(cret)
106	cls = &ComboBoxText{}
107	cls.Ptr = cret
108	return cls
109}
110
111var xNewComboBoxTextWithEntry func() uintptr
112
113// Creates a new `GtkComboBoxText` with an entry.
114func NewComboBoxTextWithEntry() *ComboBoxText {
115	var cls *ComboBoxText
116
117	cret := xNewComboBoxTextWithEntry()
118
119	if cret == 0 {
120		return nil
121	}
122	gobject.IncreaseRef(cret)
123	cls = &ComboBoxText{}
124	cls.Ptr = cret
125	return cls
126}
127
128var xComboBoxTextAppend func(uintptr, uintptr, string)
129
130// Appends @text to the list of strings stored in @combo_box.
131//
132// If @id is non-%NULL then it is used as the ID of the row.
133//
134// This is the same as calling [method@Gtk.ComboBoxText.insert]
135// with a position of -1.
136func (x *ComboBoxText) Append(IdVar *string, TextVar string) {
137
138	IdVarPtr := core.GStrdupNullable(IdVar)
139	defer core.GFreeNullable(IdVarPtr)
140
141	xComboBoxTextAppend(x.GoPointer(), IdVarPtr, TextVar)
142
143}
144
145var xComboBoxTextAppendText func(uintptr, string)
146
147// Appends @text to the list of strings stored in @combo_box.
148//
149// This is the same as calling [method@Gtk.ComboBoxText.insert_text]
150// with a position of -1.
151func (x *ComboBoxText) AppendText(TextVar string) {
152
153	xComboBoxTextAppendText(x.GoPointer(), TextVar)
154
155}
156
157var xComboBoxTextGetActiveText func(uintptr) string
158
159// Returns the currently active string in @combo_box.
160//
161// If no row is currently selected, %NULL is returned.
162// If @combo_box contains an entry, this function will
163// return its contents (which will not necessarily
164// be an item from the list).
165func (x *ComboBoxText) GetActiveText() string {
166
167	cret := xComboBoxTextGetActiveText(x.GoPointer())
168	return cret
169}
170
171var xComboBoxTextInsert func(uintptr, int, uintptr, string)
172
173// Inserts @text at @position in the list of strings stored in @combo_box.
174//
175// If @id is non-%NULL then it is used as the ID of the row.
176// See [property@Gtk.ComboBox:id-column].
177//
178// If @position is negative then @text is appended.
179func (x *ComboBoxText) Insert(PositionVar int, IdVar *string, TextVar string) {
180
181	IdVarPtr := core.GStrdupNullable(IdVar)
182	defer core.GFreeNullable(IdVarPtr)
183
184	xComboBoxTextInsert(x.GoPointer(), PositionVar, IdVarPtr, TextVar)
185
186}
187
188var xComboBoxTextInsertText func(uintptr, int, string)
189
190// Inserts @text at @position in the list of strings stored in @combo_box.
191//
192// If @position is negative then @text is appended.
193//
194// This is the same as calling [method@Gtk.ComboBoxText.insert]
195// with a %NULL ID string.
196func (x *ComboBoxText) InsertText(PositionVar int, TextVar string) {
197
198	xComboBoxTextInsertText(x.GoPointer(), PositionVar, TextVar)
199
200}
201
202var xComboBoxTextPrepend func(uintptr, uintptr, string)
203
204// Prepends @text to the list of strings stored in @combo_box.
205//
206// If @id is non-%NULL then it is used as the ID of the row.
207//
208// This is the same as calling [method@Gtk.ComboBoxText.insert]
209// with a position of 0.
210func (x *ComboBoxText) Prepend(IdVar *string, TextVar string) {
211
212	IdVarPtr := core.GStrdupNullable(IdVar)
213	defer core.GFreeNullable(IdVarPtr)
214
215	xComboBoxTextPrepend(x.GoPointer(), IdVarPtr, TextVar)
216
217}
218
219var xComboBoxTextPrependText func(uintptr, string)
220
221// Prepends @text to the list of strings stored in @combo_box.
222//
223// This is the same as calling [method@Gtk.ComboBoxText.insert_text]
224// with a position of 0.
225func (x *ComboBoxText) PrependText(TextVar string) {
226
227	xComboBoxTextPrependText(x.GoPointer(), TextVar)
228
229}
230
231var xComboBoxTextRemove func(uintptr, int)
232
233// Removes the string at @position from @combo_box.
234func (x *ComboBoxText) Remove(PositionVar int) {
235
236	xComboBoxTextRemove(x.GoPointer(), PositionVar)
237
238}
239
240var xComboBoxTextRemoveAll func(uintptr)
241
242// Removes all the text entries from the combo box.
243func (x *ComboBoxText) RemoveAll() {
244
245	xComboBoxTextRemoveAll(x.GoPointer())
246
247}
248
249func (c *ComboBoxText) GoPointer() uintptr {
250	if c == nil {
251		return 0
252	}
253	return c.Ptr
254}
255
256func (c *ComboBoxText) SetGoPointer(ptr uintptr) {
257	c.Ptr = ptr
258}
259
260// Requests the user's screen reader to announce the given message.
261//
262// This kind of notification is useful for messages that
263// either have only a visual representation or that are not
264// exposed visually at all, e.g. a notification about a
265// successful operation.
266//
267// Also, by using this API, you can ensure that the message
268// does not interrupts the user's current screen reader output.
269func (x *ComboBoxText) Announce(MessageVar string, PriorityVar AccessibleAnnouncementPriority) {
270
271	XGtkAccessibleAnnounce(x.GoPointer(), MessageVar, PriorityVar)
272
273}
274
275// Retrieves the accessible parent for an accessible object.
276//
277// This function returns `NULL` for top level widgets.
278func (x *ComboBoxText) GetAccessibleParent() *AccessibleBase {
279	var cls *AccessibleBase
280
281	cret := XGtkAccessibleGetAccessibleParent(x.GoPointer())
282
283	if cret == 0 {
284		return nil
285	}
286	cls = &AccessibleBase{}
287	cls.Ptr = cret
288	return cls
289}
290
291// Retrieves the accessible role of an accessible object.
292func (x *ComboBoxText) GetAccessibleRole() AccessibleRole {
293
294	cret := XGtkAccessibleGetAccessibleRole(x.GoPointer())
295	return cret
296}
297
298// Retrieves the implementation for the given accessible object.
299func (x *ComboBoxText) GetAtContext() *ATContext {
300	var cls *ATContext
301
302	cret := XGtkAccessibleGetAtContext(x.GoPointer())
303
304	if cret == 0 {
305		return nil
306	}
307	cls = &ATContext{}
308	cls.Ptr = cret
309	return cls
310}
311
312// Queries the coordinates and dimensions of this accessible
313//
314// This functionality can be overridden by `GtkAccessible`
315// implementations, e.g. to get the bounds from an ignored
316// child widget.
317func (x *ComboBoxText) GetBounds(XVar *int, YVar *int, WidthVar *int, HeightVar *int) bool {
318
319	cret := XGtkAccessibleGetBounds(x.GoPointer(), XVar, YVar, WidthVar, HeightVar)
320	return cret
321}
322
323// Retrieves the first accessible child of an accessible object.
324func (x *ComboBoxText) GetFirstAccessibleChild() *AccessibleBase {
325	var cls *AccessibleBase
326
327	cret := XGtkAccessibleGetFirstAccessibleChild(x.GoPointer())
328
329	if cret == 0 {
330		return nil
331	}
332	cls = &AccessibleBase{}
333	cls.Ptr = cret
334	return cls
335}
336
337// Retrieves the next accessible sibling of an accessible object
338func (x *ComboBoxText) GetNextAccessibleSibling() *AccessibleBase {
339	var cls *AccessibleBase
340
341	cret := XGtkAccessibleGetNextAccessibleSibling(x.GoPointer())
342
343	if cret == 0 {
344		return nil
345	}
346	cls = &AccessibleBase{}
347	cls.Ptr = cret
348	return cls
349}
350
351// Queries a platform state, such as focus.
352//
353// This functionality can be overridden by `GtkAccessible`
354// implementations, e.g. to get platform state from an ignored
355// child widget, as is the case for `GtkText` wrappers.
356func (x *ComboBoxText) GetPlatformState(StateVar AccessiblePlatformState) bool {
357
358	cret := XGtkAccessibleGetPlatformState(x.GoPointer(), StateVar)
359	return cret
360}
361
362// Resets the accessible property to its default value.
363func (x *ComboBoxText) ResetProperty(PropertyVar AccessibleProperty) {
364
365	XGtkAccessibleResetProperty(x.GoPointer(), PropertyVar)
366
367}
368
369// Resets the accessible relation to its default value.
370func (x *ComboBoxText) ResetRelation(RelationVar AccessibleRelation) {
371
372	XGtkAccessibleResetRelation(x.GoPointer(), RelationVar)
373
374}
375
376// Resets the accessible state to its default value.
377func (x *ComboBoxText) ResetState(StateVar AccessibleState) {
378
379	XGtkAccessibleResetState(x.GoPointer(), StateVar)
380
381}
382
383// Sets the parent and sibling of an accessible object.
384//
385// This function is meant to be used by accessible implementations that are
386// not part of the widget hierarchy, and but act as a logical bridge between
387// widgets. For instance, if a widget creates an object that holds metadata
388// for each child, and you want that object to implement the `GtkAccessible`
389// interface, you will use this function to ensure that the parent of each
390// child widget is the metadata object, and the parent of each metadata
391// object is the container widget.
392func (x *ComboBoxText) SetAccessibleParent(ParentVar Accessible, NextSiblingVar Accessible) {
393
394	XGtkAccessibleSetAccessibleParent(x.GoPointer(), ParentVar.GoPointer(), NextSiblingVar.GoPointer())
395
396}
397
398// Updates the next accessible sibling.
399//
400// That might be useful when a new child of a custom accessible
401// is created, and it needs to be linked to a previous child.
402func (x *ComboBoxText) UpdateNextAccessibleSibling(NewSiblingVar Accessible) {
403
404	XGtkAccessibleUpdateNextAccessibleSibling(x.GoPointer(), NewSiblingVar.GoPointer())
405
406}
407
408// Informs ATs that the platform state has changed.
409//
410// This function should be used by `GtkAccessible` implementations that
411// have a platform state but are not widgets. Widgets handle platform
412// states automatically.
413func (x *ComboBoxText) UpdatePlatformState(StateVar AccessiblePlatformState) {
414
415	XGtkAccessibleUpdatePlatformState(x.GoPointer(), StateVar)
416
417}
418
419// Updates a list of accessible properties.
420//
421// See the [enum@Gtk.AccessibleProperty] documentation for the
422// value types of accessible properties.
423//
424// This function should be called by `GtkWidget` types whenever
425// an accessible property change must be communicated to assistive
426// technologies.
427//
428// Example:
429// ```c
430// value = gtk_adjustment_get_value (adjustment);
431// gtk_accessible_update_property (GTK_ACCESSIBLE (spin_button),
432//
433//	GTK_ACCESSIBLE_PROPERTY_VALUE_NOW, value,
434//	-1);
435//
436// ```
437func (x *ComboBoxText) UpdateProperty(FirstPropertyVar AccessibleProperty, varArgs ...interface{}) {
438
439	XGtkAccessibleUpdateProperty(x.GoPointer(), FirstPropertyVar, varArgs...)
440
441}
442
443// Updates an array of accessible properties.
444//
445// This function should be called by `GtkWidget` types whenever an accessible
446// property change must be communicated to assistive technologies.
447//
448// This function is meant to be used by language bindings.
449func (x *ComboBoxText) UpdatePropertyValue(NPropertiesVar int, PropertiesVar []AccessibleProperty, ValuesVar []gobject.Value) {
450
451	XGtkAccessibleUpdatePropertyValue(x.GoPointer(), NPropertiesVar, PropertiesVar, ValuesVar)
452
453}
454
455// Updates a list of accessible relations.
456//
457// This function should be called by `GtkWidget` types whenever an accessible
458// relation change must be communicated to assistive technologies.
459//
460// If the [enum@Gtk.AccessibleRelation] requires a list of references,
461// you should pass each reference individually, followed by `NULL`, e.g.
462//
463// ```c
464// gtk_accessible_update_relation (accessible,
465//
466//	GTK_ACCESSIBLE_RELATION_CONTROLS,
467//	  ref1, NULL,
468//	GTK_ACCESSIBLE_RELATION_LABELLED_BY,
469//	  ref1, ref2, ref3, NULL,
470//	-1);
471//
472// ```
473func (x *ComboBoxText) UpdateRelation(FirstRelationVar AccessibleRelation, varArgs ...interface{}) {
474
475	XGtkAccessibleUpdateRelation(x.GoPointer(), FirstRelationVar, varArgs...)
476
477}
478
479// Updates an array of accessible relations.
480//
481// This function should be called by `GtkWidget` types whenever an accessible
482// relation change must be communicated to assistive technologies.
483//
484// This function is meant to be used by language bindings.
485func (x *ComboBoxText) UpdateRelationValue(NRelationsVar int, RelationsVar []AccessibleRelation, ValuesVar []gobject.Value) {
486
487	XGtkAccessibleUpdateRelationValue(x.GoPointer(), NRelationsVar, RelationsVar, ValuesVar)
488
489}
490
491// Updates a list of accessible states.
492//
493// See the [enum@Gtk.AccessibleState] documentation for the
494// value types of accessible states.
495//
496// This function should be called by `GtkWidget` types whenever
497// an accessible state change must be communicated to assistive
498// technologies.
499//
500// Example:
501//
502// ```c
503// value = GTK_ACCESSIBLE_TRISTATE_MIXED;
504// gtk_accessible_update_state (GTK_ACCESSIBLE (check_button),
505//
506//	GTK_ACCESSIBLE_STATE_CHECKED, value,
507//	-1);
508//
509// ```
510func (x *ComboBoxText) UpdateState(FirstStateVar AccessibleState, varArgs ...interface{}) {
511
512	XGtkAccessibleUpdateState(x.GoPointer(), FirstStateVar, varArgs...)
513
514}
515
516// Updates an array of accessible states.
517//
518// This function should be called by `GtkWidget` types whenever an accessible
519// state change must be communicated to assistive technologies.
520//
521// This function is meant to be used by language bindings.
522func (x *ComboBoxText) UpdateStateValue(NStatesVar int, StatesVar []AccessibleState, ValuesVar []gobject.Value) {
523
524	XGtkAccessibleUpdateStateValue(x.GoPointer(), NStatesVar, StatesVar, ValuesVar)
525
526}
527
528// Gets the ID of the @buildable object.
529//
530// `GtkBuilder` sets the name based on the ID attribute
531// of the `<object>` tag used to construct the @buildable.
532func (x *ComboBoxText) GetBuildableId() string {
533
534	cret := XGtkBuildableGetBuildableId(x.GoPointer())
535	return cret
536}
537
538// Emits the `GtkCellEditable::editing-done` signal.
539func (x *ComboBoxText) EditingDone() {
540
541	XGtkCellEditableEditingDone(x.GoPointer())
542
543}
544
545// Emits the `GtkCellEditable::remove-widget` signal.
546func (x *ComboBoxText) RemoveWidget() {
547
548	XGtkCellEditableRemoveWidget(x.GoPointer())
549
550}
551
552// Begins editing on a @cell_editable.
553//
554// The `GtkCellRenderer` for the cell creates and returns a `GtkCellEditable` from
555// gtk_cell_renderer_start_editing(), configured for the `GtkCellRenderer` type.
556//
557// gtk_cell_editable_start_editing() can then set up @cell_editable suitably for
558// editing a cell, e.g. making the Esc key emit `GtkCellEditable::editing-done`.
559//
560// Note that the @cell_editable is created on-demand for the current edit; its
561// lifetime is temporary and does not persist across other edits and/or cells.
562func (x *ComboBoxText) StartEditing(EventVar *gdk.Event) {
563
564	XGtkCellEditableStartEditing(x.GoPointer(), EventVar.GoPointer())
565
566}
567
568// Adds an attribute mapping to the list in @cell_layout.
569//
570// The @column is the column of the model to get a value from, and the
571// @attribute is the property on @cell to be set from that value. So for
572// example if column 2 of the model contains strings, you could have the
573// “text” attribute of a `GtkCellRendererText` get its values from column 2.
574// In this context "attribute" and "property" are used interchangeably.
575func (x *ComboBoxText) AddAttribute(CellVar *CellRenderer, AttributeVar string, ColumnVar int) {
576
577	XGtkCellLayoutAddAttribute(x.GoPointer(), CellVar.GoPointer(), AttributeVar, ColumnVar)
578
579}
580
581// Unsets all the mappings on all renderers on @cell_layout and
582// removes all renderers from @cell_layout.
583func (x *ComboBoxText) Clear() {
584
585	XGtkCellLayoutClear(x.GoPointer())
586
587}
588
589// Clears all existing attributes previously set with
590// gtk_cell_layout_set_attributes().
591func (x *ComboBoxText) ClearAttributes(CellVar *CellRenderer) {
592
593	XGtkCellLayoutClearAttributes(x.GoPointer(), CellVar.GoPointer())
594
595}
596
597// Returns the underlying `GtkCellArea` which might be @cell_layout
598// if called on a `GtkCellArea` or might be %NULL if no `GtkCellArea`
599// is used by @cell_layout.
600func (x *ComboBoxText) GetArea() *CellArea {
601	var cls *CellArea
602
603	cret := XGtkCellLayoutGetArea(x.GoPointer())
604
605	if cret == 0 {
606		return nil
607	}
608	gobject.IncreaseRef(cret)
609	cls = &CellArea{}
610	cls.Ptr = cret
611	return cls
612}
613
614// Returns the cell renderers which have been added to @cell_layout.
615func (x *ComboBoxText) GetCells() *glib.List {
616
617	cret := XGtkCellLayoutGetCells(x.GoPointer())
618	return cret
619}
620
621// Adds the @cell to the end of @cell_layout. If @expand is %FALSE, then the
622// @cell is allocated no more space than it needs. Any unused space is
623// divided evenly between cells for which @expand is %TRUE.
624//
625// Note that reusing the same cell renderer is not supported.
626func (x *ComboBoxText) PackEnd(CellVar *CellRenderer, ExpandVar bool) {
627
628	XGtkCellLayoutPackEnd(x.GoPointer(), CellVar.GoPointer(), ExpandVar)
629
630}
631
632// Packs the @cell into the beginning of @cell_layout. If @expand is %FALSE,
633// then the @cell is allocated no more space than it needs. Any unused space
634// is divided evenly between cells for which @expand is %TRUE.
635//
636// Note that reusing the same cell renderer is not supported.
637func (x *ComboBoxText) PackStart(CellVar *CellRenderer, ExpandVar bool) {
638
639	XGtkCellLayoutPackStart(x.GoPointer(), CellVar.GoPointer(), ExpandVar)
640
641}
642
643// Re-inserts @cell at @position.
644//
645// Note that @cell has already to be packed into @cell_layout
646// for this to function properly.
647func (x *ComboBoxText) Reorder(CellVar *CellRenderer, PositionVar int) {
648
649	XGtkCellLayoutReorder(x.GoPointer(), CellVar.GoPointer(), PositionVar)
650
651}
652
653// Sets the attributes in the parameter list as the attributes
654// of @cell_layout.
655//
656// See [method@Gtk.CellLayout.add_attribute] for more details.
657//
658// The attributes should be in attribute/column order, as in
659// gtk_cell_layout_add_attribute(). All existing attributes are
660// removed, and replaced with the new attributes.
661func (x *ComboBoxText) SetAttributes(CellVar *CellRenderer, varArgs ...interface{}) {
662
663	XGtkCellLayoutSetAttributes(x.GoPointer(), CellVar.GoPointer(), varArgs...)
664
665}
666
667// Sets the `GtkCellLayout`DataFunc to use for @cell_layout.
668//
669// This function is used instead of the standard attributes mapping
670// for setting the column value, and should set the value of @cell_layout’s
671// cell renderer(s) as appropriate.
672//
673// @func may be %NULL to remove a previously set function.
674func (x *ComboBoxText) SetCellDataFunc(CellVar *CellRenderer, FuncVar *CellLayoutDataFunc, FuncDataVar uintptr, DestroyVar *glib.DestroyNotify) {
675
676	XGtkCellLayoutSetCellDataFunc(x.GoPointer(), CellVar.GoPointer(), glib.NewCallbackNullable(FuncVar), FuncDataVar, glib.NewCallback(DestroyVar))
677
678}
679
680func init() {
681	core.SetPackageName("GTK", "gtk4")
682	core.SetSharedLibraries("GTK", []string{"libgtk-4.so.1"})
683	var libs []uintptr
684	for _, libPath := range core.GetPaths("GTK") {
685		lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL)
686		if err != nil {
687			panic(err)
688		}
689		libs = append(libs, lib)
690	}
691
692	core.PuregoSafeRegister(&xComboBoxTextGLibType, libs, "gtk_combo_box_text_get_type")
693
694	core.PuregoSafeRegister(&xNewComboBoxText, libs, "gtk_combo_box_text_new")
695	core.PuregoSafeRegister(&xNewComboBoxTextWithEntry, libs, "gtk_combo_box_text_new_with_entry")
696
697	core.PuregoSafeRegister(&xComboBoxTextAppend, libs, "gtk_combo_box_text_append")
698	core.PuregoSafeRegister(&xComboBoxTextAppendText, libs, "gtk_combo_box_text_append_text")
699	core.PuregoSafeRegister(&xComboBoxTextGetActiveText, libs, "gtk_combo_box_text_get_active_text")
700	core.PuregoSafeRegister(&xComboBoxTextInsert, libs, "gtk_combo_box_text_insert")
701	core.PuregoSafeRegister(&xComboBoxTextInsertText, libs, "gtk_combo_box_text_insert_text")
702	core.PuregoSafeRegister(&xComboBoxTextPrepend, libs, "gtk_combo_box_text_prepend")
703	core.PuregoSafeRegister(&xComboBoxTextPrependText, libs, "gtk_combo_box_text_prepend_text")
704	core.PuregoSafeRegister(&xComboBoxTextRemove, libs, "gtk_combo_box_text_remove")
705	core.PuregoSafeRegister(&xComboBoxTextRemoveAll, libs, "gtk_combo_box_text_remove_all")
706
707}

Keyboard shortcuts

Single-key shortcuts are on. ctrl k and esc work whatever this says.

ctrl k :
go to a section, branch, tag, file or repository
?
this list
j k
move the row cursor down / up
enter
open the row under the cursor; on Files, a directory opens or closes in place
↑ ↓ ← → home end
in the file tree (focus on a row): previous / next row, close / open a directory or go to its parent / first entry, first / last row. They never open a file
l h
on Files: open a directory or a file / close a directory or go up to its parent, then to the parent page. Elsewhere: into the side panel (on a merge request, its files) / back to the content; there j k move between its controls
g g G
first / last row
/
filter the list; on Files, find a file anywhere in the repository (esc clears, enter opens the best match)
b
switch branch or tag
g s g f g c g b g m g i g r g a
tabs: summary, files, commits, branches & tags, merge requests, issues, releases, actions (when available)
g h
home
w
wide mode: use the whole width of the screen, or not (remembered)
y
copy a permalink pinned to the commit
d u x
diff: split / unified / collapse or expand all
e E
diff: the whole file in view / every file, with the lines the hunks hide
n
merge request: next note in the diff
esc
close a dialog, leave a field

Branches 1

Tags 102

↑↓ moveenter openesc close