1. 19 Jul, 2004 1 commit
    • Matthias Clasen's avatar
      Support inline autocompletion in entries (#135953) · 5351a4e4
      Matthias Clasen authored
      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.
      5351a4e4
  2. 06 Jun, 2004 1 commit
    • Matthias Clasen's avatar
      Add an ignore_enter flag and use it as in the menu code to avoid the · 1640e34c
      Matthias Clasen authored
      Sat Jun  5 23:07:30 2004  Matthias Clasen  <maclas@gmx.de>
      
      	* gtk/gtkentrycompletion.c: (gtk_entry_completion_init),
      	(gtk_entry_completion_list_enter_notify),
      	(gtk_entry_completion_list_motion_notify),
      	(_gtk_entry_completion_popup), (_gtk_entry_completion_popdown):
      	* gtk/gtkentryprivate.h: Add an ignore_enter flag and
      	use it as in the menu code to avoid the initial selection if
      	the window pops up under the pointer.  (Anders Carlsson)
      1640e34c
  3. 12 Apr, 2004 1 commit
    • Matthias Clasen's avatar
      Typo fix. · d7cb9461
      Matthias Clasen authored
      2004-04-12  Matthias Clasen  <mclasen@dhcp64-228.boston.redhat.com>
      
      	* gtk/gtktreeview.c (gtk_tree_view_get_cell_area): Typo fix.
      
      	* gtk/gtkentrycompletion.c (gtk_entry_completion_init): Don't add
      	a shadow inside the scrolled window, add it around the vbox.
      
      	* gtk/gtkentryprivate.h:
      	* gtk/gtkentrycompletion.c (_gtk_entry_completion_resize_popup):
      	Return a boolean indicating whether the popup is positioned above
      	or below. Scroll the completions to the beginning or the end,
      	depending on the positioning.
      
      	* gtk/gtkentry.c (gtk_entry_completion_key_press): Make keynav
      	wrap around in the entry completion popup, and allow GDK_UP to
      	enter the popup.  (#137440)
      
      2004-04-12  Matthias Clasen  <mclasen@redhat.com>
      
      	* gtk/gtkentry.c (gtk_entry_size_request): Make sure the style is
      	there before using it.
      d7cb9461
  4. 17 Nov, 2003 1 commit
    • Kristian Rietveld's avatar
      add _gtk_entry_completion_resize_popup. · 18154a2e
      Kristian Rietveld authored
      Mon Nov 17 22:56:09 2003  Kristian Rietveld  <kris@gtk.org>
      
      	* gtk/gtkentryprivate.h: add _gtk_entry_completion_resize_popup.
      
      	* gtk/gtkentry.c (gtk_entry_completion_timeout): popup when not
      	mapped, else resize_popup.
      
      	* gtk/gtkentrycompletion.c (_gtk_entry_completion_resize_popup),
      	(_gtk_entry_completion_popup): moved all popup resizing code to
      	_gtk_entry_completion_resize_popup, and show the window when there
      	are more than zero items in the completion list again (sigh).
      18154a2e
  5. 11 Oct, 2003 1 commit
    • Kristian Rietveld's avatar
      Fixes based on comments from Marco Pesenti Gritti. · c3841e70
      Kristian Rietveld authored
      Sat Oct 11 15:23:27 2003  Kristian Rietveld  <kris@gtk.org>
      
      	Fixes based on comments from Marco Pesenti Gritti.
      
      	* gtk/gtkentry.c (gtk_entry_set_text): block the completion changed
      	signal handler, avoids the completion popup to popup when text is
      	set programmatically in most cases (we actually have to handle this
      	in the _editable functions as well, but that will break popping up
      	when the user actually typed something :),
      	(gtk_entry_completion_key_press): when handling enter, bail out
      	when nothing has been selected,
      	(gtk_entry_completion_changed): don't popdown when the entry content
      	changed.
      
      	* gtk/gtkentrycompletion.c (gtk_entry_completion_init),
      	(gtk_entry_completion_selected_changed): unselect_all on the
      	first selected changed signal. Avoids having a default row selected,
      	(_gtk_entry_completion_popup): don't select the first row by default.
      
      	* gtk/gtkentryprivate.h (struct _GtkEntryCompletionPrivate): add a
      	first_sel_changed field.
      c3841e70
  6. 11 Jul, 2003 1 commit
    • Kristian Rietveld's avatar
      Landing GtkTreeModelFilter and the completion code. (Test program and · edef7d00
      Kristian Rietveld authored
      Fri Jul 11 14:32:43 2003  Kristian Rietveld  <kris@gtk.org>
      
      	Landing GtkTreeModelFilter and the completion code. (Test program
      	and documentation will follow next week).
      
      	* gtk/gtkcellayout.[ch], gtk/gtkentrycompletion.[ch],
      	gtk/gtktreemodelfilter.[ch], gtk/gtkentryprivate.h: new files.
      
      	* gtkentry.[ch]: added gtk_entry_{get,set}_completion, wrote
      	necessary code to hook up completion.
      
      	* gtktreeviewcolumn.c: made GtkTreeViewColumn implement the new
      	GtkCellLayout interface.
      
      	* gtkmarshalers.list: added BOOLEAN:OBJECT,BOXED.
      
      	* gtk/gtk.h, gtk/Makefile.am, po/POTFILES.in: all updated for the new
      	source files.
      edef7d00