1. 01 Sep, 2005 1 commit
    • Matthias Clasen's avatar
      Intern some more strings. · 94eec042
      Matthias Clasen authored
      2005-09-01  Matthias Clasen  <mclasen@redhat.com>
      
              * gdk/*.c: Intern some more strings.
              * gtk/gtkintl.h:
              * gtk/*.c: Define an I_() macro and use it instead of the
              bulky g_intern_static_string().
      94eec042
  2. 31 Aug, 2005 2 commits
  3. 30 Aug, 2005 2 commits
  4. 29 Aug, 2005 2 commits
    • Matthias Clasen's avatar
      More typo fixes · a8bbf97a
      Matthias Clasen authored
      a8bbf97a
    • Matthias Clasen's avatar
      Construct the "Select All" menuitem from stock. · 4dfca1aa
      Matthias Clasen authored
      2005-08-29  Matthias Clasen  <mclasen@redhat.com>
      
      	* gtk/gtktextview.c (popup_targets_received):
      	* gtk/gtkentry.c (popup_targets_received): Construct
      	the "Select All" menuitem from stock.
      
      	* gtk/stock-icons/stock_select_all_{16,24}.png:
      	* gtk/stock-icons/Makefile.am:
      	* gtk/gtkiconfactory.c:
      	* gtk/gtkstock.h:
      	* gtk/gtkstock.c: Add a "Select All" stock item.  (#78545,
      	Calum Benson)
      4dfca1aa
  5. 21 Aug, 2005 1 commit
  6. 19 Jul, 2005 1 commit
  7. 15 Jul, 2005 1 commit
  8. 11 Jul, 2005 1 commit
    • Matthias Clasen's avatar
      When dragging text, use a drag icon showing the (ellipsized) text that is · 13a341e0
      Matthias Clasen authored
      2005-07-11  Matthias Clasen  <mclasen@redhat.com>
      
      	When dragging text, use a drag icon showing the (ellipsized)
      	text that is being dragged: (#161132, Kevin Duffus, patch
      	by Carlos Garnacho Parro)
      
      	* gtk/gtktextutil.h:
      	* gtk/gtktextutil.c (_gtk_text_util_create_drag_icon): Add
      	a function to create a pixmap for use when dragging text.
      
      	* gtk/gtktextview.c (gtk_text_view_start_selection_dnd):
      	* gtk/gtklabel.c (gtk_label_motion):
      	* gtk/gtkentry.c (gtk_entry_motion_notify): Use a drag icon
      	showing the text being dragged.
      
      2005-07-11  Matthias Clasen  <mclasen@redhat.com>
      
      	* gtk/gtkentry.c (gtk_entry_move_forward_word)
      	(gtk_entry_move_backward_word): Match the text view change
      	to allow selecting whitespace with double-click.
      13a341e0
  9. 26 May, 2005 1 commit
    • Matthias Clasen's avatar
      Add a property to suppress the popup for single matches. (#154711) · 6bd2df1a
      Matthias Clasen authored
      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.
      6bd2df1a
  10. 16 May, 2005 1 commit
  11. 11 May, 2005 1 commit
    • Owen Taylor's avatar
      Use a GtkAlignment rather than a GtkDrawingArea to draw the swatch in to · dda40ca7
      Owen Taylor authored
      2005-05-11  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkcolorbutton.c: Use a GtkAlignment rather than a GtkDrawingArea
      	to draw the swatch in to avoid having an extraneous window.
      
      	* gtk/gtkcolorsel.c (color_sample_draw_sample): Actually se tthe
      	color when !has_opacity.
      
      2005-05-10  Owen Taylor  <otaylor@redhat.com>
      
      	* gdk/gdkcairo.[ch] gdk/gdkcolor.[ch] gdk/Makefile.am: Add source
      	files for Cairo convenience functionality.
      
      	* gdk/gdkcairo.h (gdk_cairo_rectangle, gdk_cairo_region): Add a
      	convenience functions to add GdkRectangle, GdkRegion to a cairo path.
      
      	* gdk/gdkwindow.c gdk/gdkgc.c gtk/gtkcolorsel.c gtk/gtkiconview.c
      	gtk/gtkstyle.c: Use gdk_cairo_rectangle/region().
      
      	* gdk/gdkcairo.[ch] gdk/gdkdrawable.h gdk/gdkdraw.c: Rename
      	gdk_drawable_create_cairo_context() to gdk_cairo_create().
      
      	* gdk/gdkcairo.c gdk/gdkpixbuf.h gdk/gdkpixbuf-render.c:
      	Rename gdk_pixbuf_set_as_cairo_source() to
      	gdk_cairo_set_source_pixbuf().
      
      	* gdk/gdkdraw.c gdk/gdkpango.c gtk/gtkcolorsel.c gtk/gtkhruler.c
      	gtk/gtkhsv.c gtk/gtkiconview.c gtk/gtkstyle.c gtk/gtkvruler.c:
      	Adjust for renames.
      
      	* gdk/gdk.symbols: Update.
      
      	* gtk/gtkwidget.c (gtk_widget_queue_shallow_draw): Fix
      	coordinate system problem that was causing the wrong portions
      	to be invalidated.
      
      	* gtk/gtkcellrenderer.c (gtk_cell_renderer_render)
      	gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render)
      	gtk/gtkcellrendererprogress.c (gtk_cell_renderer_progress_render)
      	gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_render)
      	gtk/gtkcellview.c (gtk_cell_view_expose)
      	gtk/gtkdnd.c (gtk_drag_highlight_expose)
      	gtk/gtkentry.c (gtk_entry_draw_text)
      	gtk/gtktextview.c (text_window_invalidate_rect): Some cairoization.
      
      	* gtk/gtkcalendar.[ch]: Beat into something roughly resembling
      	GTK+ style ... use instance-private data and standard names for
      	private structure, etc. Move function docs inline.
      
      	* gtk/gtkcalendar.[ch]: Switch to drawing everything in
      	expose. Switch drawing to Cairo.
      
      	* gtk/gtkcalendar.c (gtk_calendar_freeze): Deprecate
      	gtk_calendar_freeze/thaw
      dda40ca7
  12. 26 Mar, 2005 1 commit
  13. 22 Mar, 2005 1 commit
  14. 20 Mar, 2005 1 commit
    • Matthias Clasen's avatar
      Make PLT-reduction work with gcc4, and don't include everything in · cca8dd63
      Matthias Clasen authored
      2005-03-20  Matthias Clasen  <mclasen@redhat.com>
      
      	Make PLT-reduction work with gcc4, and don't include
      	everything in gdkalias.h:
      
      	* gtk/grk.symbols: Group symbols by header and source file.
      	* gtk/makegtkalias.pl: Protect definitions by the same
      	preprocessor symbols used to guard the headers. Move
      	the alias declarations to a separate file which is
      	produced when calling makegtkalias.pl -def
      	* gdk/Makefile.am (gtkaliasdef.c): Add a rule to generate
      	this file.
      	* gtk/*.c: Include gtkalias.h after the other headers,
      	include gtkaliasdef.c at the bottom.
      	* gtk/*.h: Small cleanups.
      cca8dd63
  15. 15 Mar, 2005 1 commit
    • Matthias Clasen's avatar
      Document that inline completion requires text-column to be set. · 0e860164
      Matthias Clasen authored
      2005-03-15  Matthias Clasen  <mclasen@redhat.com>
      
      	* gtk/gtkentrycompletion.c (gtk_entry_completion_class_init):
      	Document that inline completion requires text-column to be set.
      	(gtk_entry_completion_compute_prefix): Return NULL if text-column
      	is not set.
      
      	* gtk/gtkentry.c (check_completion_callback): Call
      	gtk_entry_completion_complete() before inserting the prefix,
      	otherwise the prefix may depend on (random) state of the
      	filter model.
      0e860164
  16. 09 Mar, 2005 1 commit
    • Matthias Clasen's avatar
      x · 263bce44
      Matthias Clasen authored
      2005-03-08  Matthias Clasen  <mclasen@redhat.com>
      
      	* gtk/gtktextbuffer.c (gtk_text_buffer_class_init):
      	* gtk/gtkrange.c (gtk_range_class_init):
      	* gtk/gtkscrolledwindow.c (gtk_scrolled_window_class_init):
      	* gtk/gtktexttag.c (gtk_text_tag_class_init):
      	* gtk/gtktextview.c (gtk_text_view_class_init):
      	* gtk/gtkscrollbar.c (gtk_scrollbar_class_init):
      	* gtk/gtknotebook.c (gtk_notebook_class_init):
      	* gtk/gtkentry.c (gtk_entry_class_init):
      	* gtk/gtkexpander.c (gtk_expander_class_init):
      	* gtk/gtkarrow.c (gtk_arrow_class_init):
      	* gtk/gtkalignment.c (gtk_alignment_class_init):
      	* gtk/gtkbutton.c (gtk_button_class_init):
      	* gtk/gtklabel.c (gtk_label_class_init):
      	* gtk/gtktreeviewcolumn.c (gtk_tree_view_column_class_init):
      	* gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_class_init): x
      	* gtk/gtkcellrenderer.c (gtk_cell_renderer_class_init):
      	* gtk/gtktreeview.c (gtk_tree_view_class_init):
      	* gtk/gtkbox.c (gtk_box_class_init):
      	* gtk/gtkwindow.c (gtk_window_class_init, gtk_window_class_init):
      	* gtk/gtkcontainer.c (gtk_container_class_init):
      	* gtk/gtkwidget.c (gtk_widget_class_init):
      	* gtk/gtkobject.c (gtk_object_class_init): Use canonical names
      	when registering param specs.
      263bce44
  17. 04 Feb, 2005 1 commit
  18. 01 Feb, 2005 1 commit
  19. 26 Jan, 2005 1 commit
    • Matthias Clasen's avatar
      Don't allow -1 as minimum-key-length. (gtk_entry_completion_set_model): · d5102464
      Matthias Clasen authored
      2005-01-26  Matthias Clasen  <mclasen@redhat.com>
      
      	* gtk/gtkentrycompletion.c (gtk_entry_completion_class_init):
      	Don't allow -1 as minimum-key-length.
      	(gtk_entry_completion_set_model): Add missing notification.
      	(gtk_entry_completion_set_minimum_key_length): Add missing
      	notification, allow setting minimum-key-length to 0.  (#165194,
      	Vincent Ladeuil)
      d5102464
  20. 16 Jan, 2005 1 commit
  21. 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
  22. 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
  23. 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
  24. 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
  25. 18 Sep, 2004 1 commit
  26. 05 Sep, 2004 1 commit
  27. 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
  28. 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
  29. 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
  30. 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
  31. 31 Jul, 2004 1 commit
  32. 23 Jul, 2004 1 commit
  33. 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
  34. 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
  35. 11 Jul, 2004 1 commit