summaryrefslogtreecommitdiff
path: root/gtk/gtkentryprivate.h
Commit message (Collapse)AuthorAgeFilesLines
* Convert headers to #pragma onceMatthias Clasen2023-03-311-3/+1
| | | | The conversion was done by guard2one.
* Merge branch 'completion' into 'main'Matthias Clasen2022-10-211-1/+2
|\ | | | | | | | | entrycompletion: Fix inserted-text handler See merge request GNOME/gtk!4892
| * entrycompletion: Use GSignalGroup on the entry's bufferCorey Berla2022-10-031-1/+2
| | | | | | | | | | | | We connect to the inserted-text signal for the entry's buffer. During the lifetime of the entry, the buffer changes. This is literally the example used for GSignalGroup in the docs.
* | Deprecate treeviews and cell renderersMatthias Clasen2022-10-111-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This includes GtkCellArea GtkCellAreaBox GtkCellAreaContext GtkCellEditable GtkCellRenderer GtkCellRendererAccel GtkCellRendererCombo GtkCellRendererPixbuf GtkCellRendererProgress GtkCellRendererSpin GtkCellRendererSpinner GtkCellRendererText GtkCellRendererToggle GtkCellView GtkComboBox GtkComboBoxText GtkIconView GtkListStore GtkTreeModel GtkTreeModelFilter GtkTreeModelSort GtkTreeStore GtkTreeView GtkTreeViewColumn GtkTreeSelection
* | Deprecate GtkEntryCompletionMatthias Clasen2022-10-031-1/+1
|/ | | | | | We want to drop cell renderers and tree models in GTK 5. The functionality of GtkEntryCompletion may be replaced by a new widget in GTK 5.
* Remove an unimplemented functionMatthias Clasen2021-08-021-1/+0
| | | | _gtk_entry_get_im_context does not exist.
* Add GtkEntry icon signals emitterEmmanuele Bassi2020-10-161-0/+3
| | | | | We need a (private) way to programmatically trigger the activation of the entry's icons, so that we can call it from the accessibility layer.
* Replace "gchar" with "char"Benjamin Otte2020-07-251-3/+3
|
* Replace "gint" with "int"Benjamin Otte2020-07-251-4/+4
|
* entry completion: Drop the Private structMatthias Clasen2020-06-231-23/+18
| | | | | This is in preparation for porting GtkEntryCompletion to use GtkListView.
* entrycompletion: Drop action supportMatthias Clasen2020-06-221-5/+0
| | | | | | | This api has not really been kept up with current user experiences in popups, and we're better off just dropping it and letting people do their own popups if they need custom UI.
* entrycompletion: Remove an unused fieldMatthias Clasen2020-04-111-2/+0
| | | | No point in storing a device that is never used.
* Split off GtkEventControllerFocusMatthias Clasen2020-02-211-0/+1
| | | | | | | | Split the focus tracking into a separate GtkEventControllerFocus, and change the API one more time. We are back to having ::focus-in and ::focus-out signals. Update all users.
* entry: Remove unused functionTimm Bäder2019-10-221-3/+0
|
* entry completion: Make finalMatthias Clasen2019-05-271-0/+28
|
* entry: Delegate to GtkTextMatthias Clasen2019-02-191-6/+2
| | | | | | | | | | | Use a GtkText child, and delegate the editable functionality to it. Also forward all the properties that are provided by GtkText. Some of the more internal APIs, such as layout and im context access and caps-lock warning, are removed here, but we preserve most of the plain GtkEntry API by forwarding it to the GtkText child.
* entry: Remove _gtk_entry_grab_focusTimm Bäder2019-01-161-3/+0
| | | | | | | We have API for both the select and !select behavior these days, so use that one. Fixes #1457
* gtkfilechooserentry: Use GtkEntry key controller for focus-out handlingCarlos Garnacho2018-06-211-0/+1
| | | | | Expose the GtkEntry key controller in private API, so we don't have to create yet another one just to handle focus-out.
* Export some entry functions privatelyMatthias Clasen2018-04-231-0/+7
| | | | This will be used in the following commits.
* gtkentrycompletion: Stop using ::key-press-eventCarlos Garnacho2018-04-051-0/+3
| | | | Use GtkEventControllerKey for the task
* a11y: Don't include gtk.hBenjamin Otte2018-02-081-7/+7
| | | | | Also add missing includes and sort them for all the widgets that relied on that before.
* entry completion: Drop initial selection avoidanceMatthias Clasen2018-01-161-1/+1
| | | | | This is a minor thing, and it is hard to recreate with event controllers, so drop it for now.
* Remove some unneeded includesTimm Bäder2017-07-191-1/+0
|
* Entry: Remove gadgetTimm Bäder2017-07-191-1/+0
|
* spinbutton: Inherit from GtkWidgetTimm Bäder2017-07-191-3/+0
| | | | | Use a box, an entry and the current 2 buttons. Remaining problems: Entry sizing and activation.
* gtkentryprivate: Remove unused prototypeTimm Bäder2017-01-161-2/+0
|
* entry: Move spinbutton size hackBenjamin Otte2016-01-251-0/+4
| | | | | | If we want to do special sizing for the text, we need to do it for the text. Otherwise paddings, borders and entyr icons will screw up everything.
* spinbutton: Make the entry gadget be the entry's gadgetBenjamin Otte2016-01-221-0/+2
| | | | | This is a big and somewhat evil hack: We replace the entry's gadget's node with the spinbutton's entry node.
* entry: Always render like with is_cellrendererBenjamin Otte2015-10-281-2/+0
| | | | | | | And remove the API to set that variable. If you want the entry to not fill its whole allocated area, gtk_widget_set_valign (entry, GTK_ALIGN_FILL); will give you the old behavior.
* entrycompletion: no need to return booleanGeorges Basile Stavracas Neto2015-07-031-1/+1
| | | | | | | | The boolean _gtk_entry_completion_resize_popup's return value is not used anywhere, and only adds more complexity for the method. https://bugzilla.gnome.org/show_bug.cgi?id=751913
* Improve struct packing in various placesMatthias Clasen2013-09-211-2/+3
|
* GtkEntry: Focus the entry without selecting the textBastien Nocera2013-05-231-1/+2
| | | | | | | | Focusing the text entry without selecting all the text is needed in some places (GtkTreeView, and some uses of GtkSearchEntry) so create a private helper to avoid replicating the hacks. https://bugzilla.gnome.org/show_bug.cgi?id=700787
* Move entry completion code where it belongsMatthias Clasen2012-08-311-4/+6
| | | | | | This commit moves all the entry completion implementation into gtkentrycompletion.c. It also gets rid of an unnecessary completion_device member in GtkEntryPrivate.
* Fix _gtk_entry_get_borders() declarationColin Walters2012-08-141-1/+1
| | | | Regression introduced by https://bugzilla.gnome.org/show_bug.cgi?id=681591
* Export gtk_entry_get_display_text() as a private function throughMario Sanchez Prada2012-08-101-2/+5
| | | | | | gtkentryprivate.h, so we can use it from gtkentryaccessible.c https://bugzilla.gnome.org/show_bug.cgi?id=681591
* Change FSF AddressJavier Jardón2012-02-271-3/+1
|
* entry: don't consider inner-border for allocation and layoutCosimo Cecchi2012-01-311-3/+0
| | | | | We want to deprecate the inner-border property and use the standard CSS border/padding properties. Start with replacing its uses in GtkEntry.
* entry: change _gtk_entry_get_borders() to return a GtkBorderCosimo Cecchi2012-01-311-2/+1
|
* Merge branch 'master' into treeview-refactorTristan Van Berkom2010-12-051-0/+4
|\
| * Add internal accessor for GtkEntry->is_cell_rendererJavier Jardón2010-12-041-0/+4
| | | | | | | | This fixes commit fb3429e5072508570d78dcc7cccb6ef425586bb2
* | Added GtkEntryCompletion:cell-area construct property.Tristan Van Berkom2010-12-041-0/+1
|/ | | | | | | | | - Removed most of GtkCellLayout implementation in favor of ->get_area() - This allows GtkBuildable cell layout implementation to implement the child "cell-properties" - Also allows feeding a custom/different GtkCellArea implementation to layout cells. - Share the internal area with the created GtkTreeViewColumn.
* Add _gtk_entry_get_im_context() internal accessorJavier Jardón2010-11-191-0/+1
| | | | It's needed by gtktreeview
* Merge the xi2-for-master branchMatthias Clasen2010-05-251-1/+4
|
* Rember the user input that triggered the completion, add API to theXan Lopez2007-04-281-0/+2
| | | | | | | | | | | | | | * gtk/gtkentry.c: * gtk/gtkentrycompletion.c: * gtk/gtkentrycompletion.h: * gtk/gtkentryprivate.h: Rember the user input that triggered the completion, add API to the retrieve it and reset the entry contents to it if the user cancels the tentative completion during the inline-selection. svn path=/trunk/; revision=17666
* Support inline-selection in entries (#318459)Xan Lopez2007-04-271-0/+2
| | | | | | | | | | | | | | | | | | Support inline-selection in entries (#318459) * gtk/gtkentry.c: * gtk/gtkentrycompletion.c: * gtk/gtkentrycompletion.h: * gtk/gtkentryprivate.h: When enabled cursor-match is emited when the cursor is on a possible completion on the list. The default implementation will replace the contents on the entry with the contents of the text column in the completion model. Review and improvements by Matthias Clasen. svn path=/trunk/; revision=17660
* Export privately. Adjust all callers.Matthias Clasen2006-08-151-2/+6
| | | | | | | | | | | 2006-08-15 Matthias Clasen <mclasen@redhat.com> * gtk/gtkentryprivate.h: * gtk/gtkentry.c (_gtk_entry_effective_inner_border): Export privately. Adjust all callers. * gtk/gtkspinbutton.c (gtk_spin_button_size_request): Use it here to get the actual inner border. (#349429, Benjamin Berg)
* Export gtk_entry_reset_im_context privately.Matthias Clasen2006-08-061-3/+6
| | | | | | | | | | | | | 2006-08-05 Matthias Clasen <mclasen@redhat.com> * gtk/gtkentry.c: * gtk/gtkentryprivate.h: Export gtk_entry_reset_im_context privately. * gtk/gtkentrycompletion.c (gtk_entry_completion_action_button_press): * gtk/gtkentry.c (gtk_entry_completion_key_press): Reset the entry's im context here. (#348478, Nguyen Thai Ngoc Duy, Christian Persch)
* Add a property to suppress the popup for single matches. (#154711)Matthias Clasen2005-05-261-0/+1
| | | | | | | | | | | | | 2005-05-26 Matthias Clasen <mclasen@redhat.com> * gtk/gtk.symbols: * gtk/gtkentrycompletion.c: Add a property to suppress the popup for single matches. (#154711) * gtk/gtkentry.c (gtk_entry_completion_timeout): Respect it here. * gtk/gtkfilechooserentry.c (_gtk_file_chooser_entry_set_action): Use it here.
* Remove symbols accidentally added. Add boolean property popup_set_widthJohan Dahlin2005-04-041-1/+1
| | | | | | | | | 2005-04-04 Johan Dahlin <johan@gnome.org> * gtk/gtk.symbols: Remove symbols accidentally added. * gtk/gtkentryprivate.h: Add boolean property popup_set_width * gtk/gtktoggletoolbutton.c: (gtk_toggle_tool_button_class_init): Use object_class instead of gobject_class
* Support inline autocompletion in entries (#135953)Matthias Clasen2004-07-191-3/+7
| | | | | | | | | | | | | | | | | | 2004-07-19 Matthias Clasen <mclasen@redhat.com> Support inline autocompletion in entries (#135953) * gtk/gtkentryprivate.h: * gtk/gtkentrycompletion.h: * gtk/gtkentrycompletion.c (gtk_entry_completion_class_init): Add a new signal ::insert-prefix which can be used to override the default inline-completion behaviour. Add two new boolean properties, :popup_completion and :inline_completion which determine how the possible completions should be presented. (gtk_entry_completion_insert_prefix): New function to request a prefix insertion. * gtk/gtkentry.c: Add the necessary glue for inline completion.