---
name: "Gtk2::EntryCompletion"
section: "3pm"
platform: "linux"
package: "libgtk2-perl-doc"
version: "2:1.24992-1"
release: "Debian 10 (Buster)"
platforms: ["linux"]
url: "https://new.carta.tech/Gtk2::EntryCompletion"
---

# Gtk2::EntryCompletion(3pm)

wrapper for GtkEntryCompletion

## NAME

Gtk2::EntryCompletion - wrapper for GtkEntryCompletion

## HIERARCHY

```
  Glib::Object
  +----Gtk2::EntryCompletion
```

## INTERFACES

```
  Gtk2::CellLayout
  Gtk2::Buildable
```

## METHODS

### entrycompletion = Gtk2::EntryCompletion-\>new

### $completion-\>complete

### string or undef = $completion-\>get\_completion\_prefix

Since: gtk+ 2.12

### $completion-\>delete\_action ($index)

- •

  `$index` (integer)

### widget = $entry-\>get\_entry

### boolean = $completion-\>get\_inline\_completion

Since: gtk+ 2.6

### $completion-\>set\_inline\_completion ($inline\_completion)

- •

  `$inline_completion` (boolean)

Since: gtk+ 2.6

### boolean = $completion-\>get\_inline\_selection

Since: gtk+ 2.12

### $completion-\>set\_inline\_selection ($inline\_selection)

- •

  `$inline_selection` (boolean)

Since: gtk+ 2.12

### $completion-\>insert\_action\_markup ($index, $markup)

- •

  `$index` (integer)

- •

  `$markup` (string)

### $completion-\>insert\_action\_text ($index, $text)

- •

  `$index` (integer)

- •

  `$text` (string)

### $completion-\>insert\_prefix

Since: gtk+ 2.6

### $completion-\>set\_match\_func ($func, $func\_data=undef)

- •

  `$func` (scalar)

- •

  `$func_data` (scalar)

### integer = $completion-\>get\_minimum\_key\_length

### $completion-\>set\_minimum\_key\_length ($length)

- •

  `$length` (integer)

### treemodel = $completion-\>get\_model

### $completion-\>set\_model ($model)

- •

  `$model` (Gtk2::TreeModel or undef)

### boolean = $completion-\>get\_popup\_completion

Since: gtk+ 2.6

### $completion-\>set\_popup\_completion ($popup\_completion)

- •

  `$popup_completion` (boolean)

Since: gtk+ 2.6

### boolean = $completion-\>get\_popup\_set\_width

Since: gtk+ 2.8

### $completion-\>set\_popup\_set\_width ($popup\_set\_width)

- •

  `$popup_set_width` (boolean)

Since: gtk+ 2.8

### boolean = $completion-\>get\_popup\_single\_match

Since: gtk+ 2.8

### $completion-\>set\_popup\_single\_match ($popup\_single\_match)

- •

  `$popup_single_match` (boolean)

Since: gtk+ 2.8

### integer = $completion-\>get\_text\_column

Since: gtk+ 2.6

### $completion-\>set\_text\_column ($column)

- •

  `$column` (integer)

## PROPERTIES

- 'inline-completion' (boolean : default false : readable / writable / private)

  Whether the common prefix should be inserted automatically

- 'inline-selection' (boolean : default false : readable / writable / private)

  Your description here

- 'minimum-key-length' (integer : default 1 : readable / writable / private)

  Minimum length of the search key in order to look up matches

- 'model' (Gtk2::TreeModel : default undef : readable / writable / private)

  The model to find matches in

- 'popup-completion' (boolean : default true : readable / writable / private)

  Whether the completions should be shown in a popup window

- 'popup-set-width' (boolean : default true : readable / writable / private)

  If TRUE, the popup window will have the same size as the entry

- 'popup-single-match' (boolean : default true : readable / writable / private)

  If TRUE, the popup window will appear for a single match.

- 'text-column' (integer : default -1 : readable / writable / private)

  The column of the model containing the strings.

## SIGNALS

- **action-activated** (Gtk2::EntryCompletion, integer)

  - boolean = **cursor-on-match** (Gtk2::EntryCompletion, Gtk2::TreeModel, Gtk2::TreeIter)

  - boolean = **insert-prefix** (Gtk2::EntryCompletion, string)

  - boolean = **match-selected** (Gtk2::EntryCompletion, Gtk2::TreeModel, Gtk2::TreeIter)

  ## SEE ALSO

Gtk2, Glib::Object

## COPYRIGHT

Copyright (C) 2003-2011 by the gtk2-perl team.

This software is licensed under the LGPL.  See Gtk2 for a full notice.
