summaryrefslogtreecommitdiff
path: root/gtk/gtkeditable.c
Commit message (Collapse)AuthorAgeFilesLines
* Drop duplication between marshallersMatthias Clasen2023-05-131-2/+3
| | | | | | | | | gtk and gdk have their own marshallers, for historic reasons. But there's no reason to duplicate the same code here. Eventually, we should just move all marshallers to the same place.
* a11y: Simplify GtkAccessible implementation for editablesLukáš Tyrychtr2023-02-031-2/+53
| | | | | | | This commit implements the idea brought up in #5032, and provides a simple function for GtkEditable implementations using a delegate object. The accessible state is proxied from the outher GtkEditable to the delegate.
* Documentation fix: Various spelling mistakes (and one use of the wrong verb) ↵Cam Cook2022-11-131-1/+1
| | | | | | | | | | | | | across a few domains that show up in documentation. | domain | current | suggestion | |--------|---------|------------| | [GtkButton](https://gitlab.gnome.org/GNOME/gtk/-/blob/main/gtk/gtkbutton.c#L691) | "Buttons can has a flat appearance" | "Buttons can have a flat appearance" | | [GtkCenterBox](https://gitlab.gnome.org/GNOME/gtk/-/blob/main/gtk/gtkcenterbox.c#L275) | "pas %NULL" | "pass %NULL" | | [GtkEditable](https://gitlab.gnome.org/GNOME/gtk/-/blob/main/gtk/gtkeditable.c#L466) | "the text to append" | "the text to insert" | | [GtkFlowbox](https://gitlab.gnome.org/GNOME/gtk/-/blob/main/gtk/gtkflowbox.c#L4921) | "the are equal" | "they are equal" | | [GtkSelectionModel](https://gitlab.gnome.org/GNOME/gtk/-/blob/main/gtk/gtkselectionmodel.c#L550) | "Call this when a the selection changes" | "Call this when a selection changes" | | [GtkWIndow](https://gitlab.gnome.org/GNOME/gtk/-/blob/main/gtk/gtkwindow.c#L5321) | "(e.g. the user or the window manager" | "(e.g. the user or the window manager)" |
* Drop gtkintl.hMatthias Clasen2022-09-241-1/+0
| | | | | Include gtkprivate.h for I_() and glib-i18n.h for gettext macros.
* Remove all nicks and blurbs from param specsSophie Herold2022-05-111-24/+8
| | | | | | | | Those property features don't seem to be in use anywhere. They are redundant since the docs cover the same information and more. They also created unnecessary translation work. Closes #4904
* editable: Clarify the docsMatthias Clasen2021-08-311-1/+5
| | | | | | Make it clear that your class must have all the editable properties already before you call the (confusingly named) function gtk_editable_install_properties.
* gtk: Clean up docs syntaxMatthias Clasen2021-05-221-1/+1
| | | | Replace leftover gtk-doc syntax (#Type) with backquotes.
* docs: Reduce redundancyMatthias Clasen2021-05-201-2/+2
| | | | | | | | Remove a boatload of "or %NULL" from nullable parameters and return values. gi-docgen generates suitable text from the annotation that we don't need to duplicate. This adds a few missing nullable annotations too.
* introspection: Stop using allow-noneMatthias Clasen2021-05-201-2/+2
| | | | | allow-none has been deprecated for a long time already. Instead use optional and nullable everywhere.
* Documentation fixesMatthias Clasen2021-05-201-1/+1
| | | | | Mostly fixing up indentation of continuation lines, and other small cleanups.
* editable: Tweak docsMatthias Clasen2021-03-111-2/+1
|
* editable: Convert docsMatthias Clasen2021-03-111-179/+232
|
* docs: Note the caveat on GtkEditable signals with delegatesEmmanuele Bassi2020-12-171-2/+10
| | | | | | | | We cannot bubble up ::insert-text and ::delete-text signals from the delegate to the wrapper editable without causing an infinite recursion, due to how the signals are designed; ideally, we would have decoupled signal emission from virtual functions *before* releasing GTK4, but now that we have, we can't break the contract.
* Add gtk_editable_get_delegateMatthias Clasen2020-10-191-0/+15
| | | | | We need access to the delegate in the a11y layer, so we might as well make this function public.
* Fix and improve various code samplesTimm Bäder2020-08-011-1/+1
|
* Fix minor typosYuri Chornoivan2020-05-281-1/+1
|
* docs: Fix several missing references in the documentationCorentin Noël2020-05-111-1/+2
| | | | This fixes several typos and missing references
* editable: add enable-undo propertyChristian Hergert2019-11-051-0/+56
| | | | | This property is intended to be mapped to a GtkText so that undo/redo support can be used from a number of editable widgets.
* va_marshaller: add various va_marshallersChristian Hergert2019-06-061-29/+46
| | | | | | | | | We don't need to cover every case with a va_marshaller, but there are a number of them that are useful because they will often only be connected to by a single signal handler. Generally speaking, if I opened into a file to add a va_marshaller, I just set all of them.
* editable: Fix a thinkoMatthias Clasen2019-03-171-2/+8
| | | | | | | | | When dealing with subclasses of GtkEntry, we were not getting the property offset that is stored on the GtkEntry type. This was showing up as criticals when trying to set ::width-chars on a GtkFileChooserEntry.
* docs: Miscellaneous doc fixesMatthias Clasen2019-02-241-2/+3
| | | | | Additions and correction all over the place, in GDK and GTK docs.
* Add editable delegate api to docsMatthias Clasen2019-02-191-0/+81
| | | | | And add a section that explains how to use these functions when setting up a GtkEditable delegate.
* editable: Add more to interfaceMatthias Clasen2019-02-171-177/+671
| | | | | Add all the things to the GtkEditable interface that make sense for most implementations.
* Use NULL for generic marshallers in g_signal_new()Benjamin Otte2016-08-291-1/+1
| | | | | glib will use the correct marshaller automatically. And as a side effect, we also get all glib optimizations, like a va marshaller.
* docs: use Returns: consistentlyWilliam Jon McCann2014-02-191-4/+4
| | | | Instead of Return value:
* docs: use apostrophes in *n'tWilliam Jon McCann2014-02-071-1/+1
|
* docs: replace all <examples> with markdown headingsWilliam Jon McCann2014-02-041-3/+2
|
* docs: don't escape entities in example codeWilliam Jon McCann2014-01-291-5/+5
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=723119
* docs: Identify examples that are C codeWilliam Jon McCann2014-01-291-1/+1
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=723119
* docs: use |[ ]| instead of <programlisting></programlisting>William Jon McCann2014-01-291-2/+2
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=723119
* Fix GI warningsJasper St. Pierre2013-10-091-9/+3
|
* Fix a typo in the the commentsWilliam Jon McCann2012-08-261-3/+3
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=682724
* Change FSF AddressJavier Jardón2012-02-271-3/+1
|
* gtk/gtkeditable: Some docs fixesJavier Jardón2011-11-281-2/+2
|
* gtkeditable.c: Remove unused variable in example codeAlexander Saprykin2011-05-311-1/+0
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=650167
* [GI] Add missing (out) and (array) annotationsPavel Holejsovsky2011-01-201-4/+4
|
* [introspection] mark invokers for gtkeditable vfuncsJohn (J5) Palmieri2010-11-131-0/+4
|
* [introspection] annotate delete_text invoker to match do_delete_text v-methodJohn (J5) Palmieri2010-10-301-0/+2
|
* gtkeditable: move documentation to inline commentsChristian Dywan2010-09-241-0/+44
| | | | Fixes: https://bugzilla.gnome.org/show_bug.cgi?id=617316
* Change GtkEditable typedef from GtkEditableClass to GtkEditabeInterfaceJavier Jardón2010-09-171-11/+11
| | | | Fixes https://bugzilla.gnome.org/show_bug.cgi?id=323904
* gtk/: fully remove gtkalias hacksJavier Jardón2010-07-101-4/+0
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=623845
* Fix typos in 2 gobject-introspection annotations.Murray Cumming2010-05-111-1/+1
|
* [introspection] Merge in Gtk-custom.c annotationsColin Walters2009-12-161-7/+7
| | | | | | | | The Gtk-custom.c file in gir-repository contained a number of introspection annotations. Merge those into the GTK source files. Some documentation was moved from the tmpl/ files to accomodate the addition of annotations.
* Doc additions.Matthias Clasen2008-12-291-0/+13
| | | | | | | | | | | | | 2008-12-29 Matthias Clasen <mclasen@redhat.com> * gtk/gtkentry.c: * gtk/gtktextview.c: * gtk/gtkeditable.c: * gtk/gtktextbuffer.c: Doc additions. svn path=/trunk/; revision=22000
* Merge docs inlineMatthias Clasen2008-12-281-39/+91
| | | | svn path=/trunk/; revision=21955
* Documentation fixesMatthias Clasen2008-12-281-14/+14
| | | | | | | | | | | | | | | | 2008-12-28 Matthias Clasen <mclasen@redhat.com> * gtk/gtkhsv.c: * gtk/gtkwidget.c: * gtk/gtkaccelgroup.c: Documentation fixes * gtk/gtkstatusicon.c: * gtk/gtkentry.c: * gtk/gtkeditable.[hc]: Make parameter names match to make gtk-doc happy. svn path=/trunk/; revision=21953
* Bug 559404 – gtk_editable_insert_text counts length in bytesChristian Dywan2008-11-051-2/+2
| | | | | | | | | | | 2008-11-05 Christian Dywan <christian@imendio.com> Bug 559404 – gtk_editable_insert_text counts length in bytes * gtk/gtkeditable.c: Document new_text_length as the number of bytes svn path=/trunk/; revision=21760
* Bug 551325 - Reference to wrong parameter in gtk_editable_insert_textCosimo Cecchi2008-09-081-1/+1
| | | | | | | | | | | 2008-09-08 Cosimo Cecchi <cosimoc@gnome.org> Bug 551325 - Reference to wrong parameter in gtk_editable_insert_text * gtk/gtkeditable.c: Fix a reference to an invalid parameter in the docs. svn path=/trunk/; revision=21324
* Revert name changeCody Russell2008-07-011-1/+1
| | | | svn path=/trunk/; revision=20724
* Practically everything changed.Cody Russell2008-06-301-1/+1
| | | | | | | | | | | | | 2008-06-30 Cody Russell <bratsche@gnome.org> * Practically everything changed. Change all references of GIMP Toolkit (and variations of it) to GTK+ Toolkit, showing no mercy at all to our beloved ancestry. (#540529) svn path=/trunk/; revision=20709