1. 26 Oct, 2004 1 commit
    • Anders Carlsson's avatar
      Really handle a NULL model, fixes #137211 for real. · 21ad6be6
      Anders Carlsson authored
      2004-10-25  Anders Carlsson  <andersca@gnome.org>
      
      	* gtk/gtkentry.c: (gtk_entry_completion_timeout):
      	* gtk/gtkentrycompletion.c: (gtk_entry_completion_set_model),
      	(gtk_entry_completion_get_model), (gtk_entry_completion_complete):
      	Really handle a NULL model, fixes #137211 for real.
      
      	* gtk/gtkfilechooserentry.c:
      	(gtk_file_chooser_entry_maybe_update_directory):
      	Remove _clear, #137211 is fixed.
      
      	* tests/testentrycompletion.c: (main):
      	Add completion with an empty model.
      21ad6be6
  2. 22 Oct, 2004 1 commit
    • Matthias Clasen's avatar
      Document how to use info with text/image targets. · 81229a1b
      Matthias Clasen authored
      2004-10-22  Matthias Clasen  <mclasen@redhat.com>
      
      	* gtk/gtkdnd.c: Document how to use info with text/image
      	targets.
      
      	* gtk/gtkselection.h:
      	* gtk/gtkselection.c (gtk_target_list_add_text_targets):
      	(gtk_target_list_add_image_targets): Add info argument.
      
      	* gtk/gtkcalendar.c (gtk_calendar_motion_notify):
      	* gtk/gtkentry.c (gtk_entry_init):
      	* gtk/gtktextview.c (gtk_text_view_init): Adjust all callers.
      81229a1b
  3. 21 Oct, 2004 1 commit
    • Owen Taylor's avatar
      #155952 · e0ad07e0
      Owen Taylor authored
      Thu Oct 21 15:01:09 2004  Owen Taylor  <otaylor@redhat.com>
      
              #155952
      
              * gtk/gtkentry.c: Fix checking the wrong position for
              the backspace_deletes_character PangoLogAttr.
      
              * gtk/gtktextbuffer.[ch] gtk/gtk.symbols (gtk_text_buffer_backspace):
              Move backspace logic from GtkTextView to here, check
              backspace_deletes_char.
      
              * gtk/gtktextview.c: Use gtk_text_buffer_backspace().
      e0ad07e0
  4. 08 Oct, 2004 1 commit
    • Matthias Clasen's avatar
      Share the three copies of get_borders() under the name · daeea8b8
      Matthias Clasen authored
      2004-10-08  Matthias Clasen  <mclasen@redhat.com>
      
      	* gtk/gtkentry.h:
      	* gtk/gtkentry.c:
      	* gtk/gtkentrycompletion.c:
      	* gtk/gtkspinbutton.c: Share the three copies of get_borders()
      	under the name _gtk_entry_get_borders().  (#116368, Owen Taylor)
      daeea8b8
  5. 18 Sep, 2004 1 commit
  6. 05 Sep, 2004 1 commit
  7. 30 Aug, 2004 1 commit
    • Matthias Clasen's avatar
      Changes to make sure input methods respect the editability of entries and · 729aaa06
      Matthias Clasen authored
      
      Mon Aug 30 01:34:42 2004  Matthias Clasen  <maclas@gmx.de>
      
      	Changes to make sure input methods respect the editability
      	of entries and text views. #114173, Noah Levitt.
      
      	* gtk/gtkentry.c (popup_targets_received): Make the Input
      	Methods menuitem insensitive if we're not editable.
      
      	* gtk/gtkentry.c (gtk_entry_delete_surrounding_cb):
      	* gtk/gtkentry.c (gtk_entry_preedit_changed_cb):
      	* gtk/gtkentry.c (gtk_entry_commit_cb): Don't change anything
      	if we're not editable.
      
      	* gtk/gtkentry.c (gtk_entry_focus_out):
      	* gtk/gtkentry.c (gtk_entry_focus_in): Only send focus_in and
      	focus_out to the im context if we're editable.
      
      	* gtk/gtkentry.c (gtk_entry_set_property): Reset the im context
      	if the entry just became non-editable.
      
      	* gtk/gtktextview.c (gtk_text_view_delete_surrounding_handler):
      	Use gtk_text_buffer_delete_interactive() to not delete
      	non-editable portions of text.
      729aaa06
  8. 14 Aug, 2004 1 commit
    • Soeren Sandmann's avatar
      New function. · 15ed3634
      Soeren Sandmann authored
      Sat Aug 14 17:56:33 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
      
      	* gtk/gtkentry.c (gtk_entry_get_pixel_ranges): New function.
      
      	* gtk/gtkentry.c (in_selection): New function using
      	gtk_entry_get_pixel_ranges() to determine whether a click is in
      	the selection. Improve entry behavior wrt. dragging and
      	selecting. Bug #143249.
      
      Sat Aug 14 17:53:46 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
      
      	* configure.in: Require glib 2.5.2
      
      	* gtk/gtksequence.[ch]: New internal data structure.
      
      	* gtk/gtkliststore.[hc]: Reimplement in terms of new data
      	structure
      
      	* tests/Makefile.am (testtreemodel_SOURCES):
      	* tests/testtreemodel.c: New test program written by Matthias.
      15ed3634
  9. 09 Aug, 2004 1 commit
    • Matthias Clasen's avatar
      Add hidden aliases for exported symbols which are used internally in order · 3612aee5
      Matthias Clasen authored
      Mon Aug  9 12:48:04 2004  Matthias Clasen  <maclas@gmx.de>
      
      	Add hidden aliases for exported symbols which are
      	used internally in order to get rid of many PLT
      	entries.  (#145519, Arjan van de Ven)
      
      	* gtk/Makefile.am: Add rules to generate gtk.def and
      	from gtk.symbols, and make make check check the abi
      	with abicheck.sh.
      	(gtk_private_h_sources): Add gtkinternals.h
      	(gtk_built_private_headers): Add gtkalias.h
      	(gtk_extra_sources): Add gtk.symbols
      	(EXTRA_DIST): Add makegtkalias.pl and abicheck.sh
      
      	* gtk/gtk.symbols: New file. Definition of the GTK+ ABI.
      	The file can be processed by cpp to filter out certain
      	subsets of symbols.
      
      	* gtk/abicheck.sh: New file. Script to check the actually
      	symbols exported from libgtk-x11.2.0.so against the symbols
      	found in gtk.symbols.
      
      	* gtk/makegtkalias.pl: New file. Perl script to generate the
      	header containing the alias definitions for internally used
      	exported symbols from a list of symbols.
      
      	* gtk/gtkinternals.h: New file. An uninstalled header listing
      	symbols which must be exported for some reason and do not appear
      	in any other header.
      
      	* gtk/*.c: Include gtkalias.h
      3612aee5
  10. 02 Aug, 2004 3 commits
    • Morten Welinder's avatar
      C99ism. · e6429d95
      Morten Welinder authored
      2004-08-02  Morten Welinder  <terra@gnome.org>
      
      	* gtk/gtkentry.c (gtk_entry_motion_notify): C99ism.
      e6429d95
    • Matthias Clasen's avatar
      Add a new binding signal ::backspace, bind it to the backspace key, and · 4134499c
      Matthias Clasen authored
      Mon Aug  2 01:30:03 2004  Matthias Clasen  <maclas@gmx.de>
      
      	* gtk/gtktextview.[hc]:
      	* gtk/gtkentry.[hc]: Add a new binding signal ::backspace,
      	bind it to the backspace key, and make it pay attention
      	to the Pango backspace_deletes_character
      	attribute.  (#119891, Noah Levitt, patch by Theppitak
      	Karoonboonyanan)
      4134499c
    • Matthias Clasen's avatar
      Document the xalign property and its getter and setter as 2.4 additions. · d0706520
      Matthias Clasen authored
      Mon Aug  2 00:12:16 2004  Matthias Clasen  <maclas@gmx.de>
      
      	* gtk/gtkentry.c (gtk_entry_class_init):
      	(gtk_entry_get_alignment):
      	(gtk_entry_set_alignment): Document the xalign property
      	and its getter and setter as 2.4 additions.  (#148978,
      	Axel Simon)
      
      Mon Aug  2 00:11:31 2004  Matthias Clasen  <maclas@gmx.de>
      
      	* gtk/gtkuimanager.c (gtk_ui_manager_class_init):
      	* gtk/gtkactiongroup.c (gtk_action_group_class_init): Use
      	canonical signal names in doc comments, since gtk-doc won't
      	pick up signal docs with underscores.
      d0706520
  11. 31 Jul, 2004 1 commit
  12. 23 Jul, 2004 1 commit
  13. 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
  14. 17 Jul, 2004 1 commit
    • Matthias Clasen's avatar
      Support text/plain selection target (#55117, Owen Taylor) · fb881018
      Matthias Clasen authored
      Sat Jul 17 00:48:27 2004  Matthias Clasen  <maclas@gmx.de>
      
      	Support text/plain selection target  (#55117, Owen Taylor)
      
      	* gtk/gtkselection.h:
      	* gtk/gtkdnd.h:
      	* gtk/gtkselection.c (gtk_target_list_add_text_targets):
      	* gtk/gtkdnd.c (gtk_drag_dest_add_text_targets):
      	* gtk/gtkdnd.c (gtk_drag_source_add_text_targets): New
      	functions to facilitate handling of text targets.
      
      	* gtk/gtkentry.c:
      	* gtk/gtktextview.c: Use the new text target handling
      	functions instead of hardwiring the list of supported
      	text targets everywhere.
      
      	* gtk/gtkselection.c (gtk_selection_data_get_text):
      	(gtk_selection_data_set_text):
      	Support the targets text/plain, text/plain?charset=utf-8
      	and text/plain?charset=<LOCALE-CHARSET> as outlined in
      	#55117:
      	For text/plain send only ASCII, but accept 8-bit text
      	and treat it as ISO-8859-1 as specified by the Xdnd spec.
      	Always send CRLF terminators. Accept either and convert
      	into the native terminator for the platform.
      fb881018
  15. 11 Jul, 2004 1 commit
  16. 09 Jul, 2004 1 commit
    • Matthias Clasen's avatar
      Make GtkEntry work harder to protect passwords: (#143955, Morten Welinder) · ca99bb0d
      Matthias Clasen authored
      2004-07-09  Matthias Clasen  <mclasen@redhat.com>
      
       	Make GtkEntry work harder to protect passwords:  (#143955,
      	Morten Welinder)
      
      	* gtk/gtkentry.c (gtk_entry_destroy): Add a destroy handler
      	to clear the password even if the widget is leaked.
      
      	* gtk/gtkentry.c (gtk_entry_real_delete_text):
      	* gtk/gtkentry.c (gtk_entry_finalize): Zero out the memory
      	before freeing it.
      
      	* gtk/gtkentry.c (gtk_entry_real_insert_text): Zero and free
      	the old memory instead of just reallocating it.
      
      	* gtk/gtkentry.c (gtk_entry_create_layout): Don't leak text
      	direction information for passwords.
      ca99bb0d
  17. 06 Jul, 2004 1 commit
  18. 03 Jul, 2004 1 commit
  19. 04 Jun, 2004 1 commit
  20. 21 Apr, 2004 1 commit
  21. 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
  22. 16 Mar, 2004 1 commit
  23. 08 Mar, 2004 1 commit
  24. 06 Mar, 2004 1 commit
  25. 03 Mar, 2004 1 commit
    • Owen Taylor's avatar
      #109594, reported by Olivier Ripoll · 0d898ffc
      Owen Taylor authored
      Wed Mar  3 16:47:10 2004  Owen Taylor  <otaylor@redhat.com>
      
               #109594, reported by Olivier Ripoll
      
              * gtk/gtkentry.c (gtk_entry_size_request): Use max of
              width and digit width for gtk_entry_set_width_chars,
              and round up.
      
              * gtk/gtkcolorsel.c (gtk_color_selection_init): Set the
              width of the entry to 7 chars.
      0d898ffc
  26. 01 Mar, 2004 3 commits
    • Owen Taylor's avatar
      Handle dynamically resolved bidi direction when drawing the cursor. · fa4514af
      Owen Taylor authored
      Mon Mar  1 12:23:06 2004  Owen Taylor  <otaylor@redhat.com>
      
              * gtk/gtklabel.c: Handle dynamically resolved bidi direction
              when drawing the cursor. (#118541)
      
              * gtk/gtkentry.c (get_better_cursor_x): Use entry->resolved_dir;
      
              * gtk/gtkentry.c (draw_insertion_cursor): Fix up
              some confusion in parameter ordering.
      fa4514af
    • Owen Taylor's avatar
      Implement auto-bidi-direction, based on a patch from Dov Grobgeld. · f0d22047
      Owen Taylor authored
      Mon Mar  1 10:31:11 2004  Owen Taylor  <otaylor@redhat.com>
      
              * gtk/gtkentry.c: Implement auto-bidi-direction,
              based on a patch from Dov Grobgeld. (#118540)
      f0d22047
    • Owen Taylor's avatar
      Add gtk_entry_set_alignment() to allow right-aligned entries and a · 4ea9813d
      Owen Taylor authored
      Sun Feb 29 22:01:49 2004  Owen Taylor  <otaylor@redhat.com>
      
              * gtk/gtkentry.[ch]: Add gtk_entry_set_alignment()
              to allow right-aligned entries and a "xalign"
              property. (#59799, patch from Egon Andersen and
              Steffen Gutmann)
      
              * gtk/gtkmisc.c (gtk_misc_class_init): Use improved
              xalign property description here too.
      
              * tests/testtext.c: UNDERLINE_ERROR test addition
              from Nicolas Settons' patch.
      4ea9813d
  27. 29 Feb, 2004 3 commits
  28. 27 Feb, 2004 1 commit
    • Matthias Clasen's avatar
      Classifiy Page Up/Down as cursor move, but not Home and End. · c4d2bb0a
      Matthias Clasen authored
      Fri Feb 27 02:33:21 2004  Matthias Clasen  <maclas@gmx.de>
      
      	* gtk/gtkentry.c (keyval_is_cursor_move): Classifiy Page Up/Down as
      	cursor move, but not Home and End.
      
      	* gtk/gtkentry.c (gtk_entry_completion_key_press): Lets Page Up/Down
      	jump to the ends of the list, not Home and End - since we're not
      	scrolling yet, a "page" is always the complete list.  (#127430, Marco
      	Pesenti Gritti)
      
      Fri Feb 27 00:39:11 2004  Matthias Clasen  <maclas@gmx.de>
      
      	* gtk/gtkcombobox.c (gtk_combo_box_list_destroy):
      	* gtk/gtkcombobox.c (gtk_combo_box_menu_destroy): Don't let
      	the priv pointers dangle.  (#127623, Damon Chaplin)
      c4d2bb0a
  29. 26 Feb, 2004 1 commit
    • Owen Taylor's avatar
      hu Feb 26 15:43:43 2004 Owen Taylor <otaylor@redhat.com> · 0459484c
      Owen Taylor authored
              * gtk/gtkstyle.[ch]: Export insertion cursor drawing functionality
              in a simplified form as gtk_draw_insertion_cursor().
              (#99031, request from Alex Larsson)
      
              * gtk/gtktextdisplay.c gtk/gtkentry.c gtk/gtklabel.c:
              Adapt to new gtk_draw_insertion_cursor().
      
              * gtk/gtkradiomenuitem.c (gtk_radio_menu_item_class_init)
              gtk/gtkstyle.c (gtk_style_class_init): Add some missed
              Since: 2.4.
      
              * gtk/gtkiconfactory.c (icon_size_settings_changed)
                gtk/gtkicontheme.c (do_theme_change)
                gtk/gtkrc.c (_gtk_rc_context_get_default_font_name)
              * gtk/gtksettings.c (gtk_settings_notify):
              _gtk_rc_reset_styles => gtk_rc_reset_styles.
      0459484c
  30. 23 Jan, 2004 1 commit
    • Anders Carlsson's avatar
      Check if the completion is the same one as the old one. · 42f1406d
      Anders Carlsson authored
      2004-01-23  Anders Carlsson  <andersca@gnome.org>
      
      	* gtk/gtkentry.c: (gtk_entry_set_completion):
      	Check if the completion is the same one as the old one.
      
      	* gtk/gtkentrycompletion.c:
      	* gtk/gtkentrycompletion.h:
      	Move GET_PRIVATE macro into .c file, fix a trivial spelling
      	error.
      42f1406d
  31. 16 Jan, 2004 1 commit
    • Matthias Clasen's avatar
      The first part of the fix for #114351 (see also gdk-pixbuf/ChangeLog and · 07d4d314
      Matthias Clasen authored
      Fri Jan 16 23:59:01 2004  Matthias Clasen  <maclas@gmx.de>
      
      	The first part of the fix for #114351 (see also
      	gdk-pixbuf/ChangeLog and po/ChangeLog):
      
      	* gtk/gtkintl.h:
      	* gdk-pixbuf/gdk-pixbuf-i18n.h:
      	* gdk/gdkintl.h: Define P_() for property blurbs and nicks.
      
      	* gdk/gdkdisplaymanager.c:
      	* gdk-pixbuf/gdk-pixbuf.c:
      	* modules/input/gtkimcontextxim.c:
      	* gtk/*.c:  Mark property blurbs and nicks with P_().
      
      	* po/Makefile.in.in: Add --keyword=P_ to the xgettext
      	invocation, since property blurbs and nicks are
      	now marked with P_().
      07d4d314
  32. 19 Nov, 2003 1 commit
    • Kristian Rietveld's avatar
      always resize the popup when it is visible, popdown when there are less · 720873b9
      Kristian Rietveld authored
      Wed Nov 19 22:15:01 2003  Kristian Rietveld  <kris@gtk.org>
      
      	* gtk/gtkentry.c (gtk_entry_completion_timeout): always resize
      	the popup when it is visible, popdown when there are less chars
      	than the minimum key length in the entry,
      	(gtk_entry_completion_changed): popdown when the entry is empty.
      
      	* gtk/gtkentrycompletion.c (gtk_entry_completion_init): set the
      	size request of the vscrollbar to (-1, 0), to get a nicely sized
      	completion treeview (Fixes #126573, reported by Piers Cornwell),
      	(_gtk_entry_completion_resize_popup): show/hide the action_view
      	based on items.
      720873b9
  33. 18 Nov, 2003 1 commit
  34. 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