summaryrefslogtreecommitdiff
path: root/gtk/gtktextutil.c
Commit message (Collapse)AuthorAgeFilesLines
* do right thing in one-character lines and at paragraph end (#448313).Yevgen Muntyan2007-06-281-27/+26
| | | | | | | | | | | | | 2007-06-28 Yevgen Muntyan <muntyan@tamu.edu> * gtk/gtktextutil.c (_gtk_text_util_get_block_cursor_location): do right thing in one-character lines and at paragraph end (#448313). * configure.in: require pango-1.17.3 to get fixed pango_layout_index_to_line_x() (pango #448342). svn path=/trunk/; revision=18273
* Implement block-cursor for overwrite mode. (#80378)Yevgen Muntyan2007-06-121-0/+143
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 2007-06-12 Yevgen Muntyan <muntyan@tamu.edu> * gtk/gtkentry.c (gtk_entry_expose), (gtk_entry_toggle_overwrite), (gtk_entry_draw_cursor): * gtk/gtkstyle.c (_gtk_widget_get_cursor_gc), (_gtk_widget_get_cursor_color): * gtk/gtkstyle.h: * gtk/gtktextdisplay.c (gtk_text_renderer_prepare_run), (gtk_text_renderer_draw_shape), (text_renderer_set_state), (render_para): * gtk/gtktextlayout.c (gtk_text_layout_set_overwrite_mode), (gtk_text_layout_invalidate_cache), (get_block_cursor), (add_cursor), (gtk_text_layout_get_line_display), (_gtk_text_layout_get_block_cursor): * gtk/gtktextlayout.h: * gtk/gtktextutil.c (layout_get_char_width), (_gtk_text_util_get_block_cursor_location): * gtk/gtktextutil.h: * gtk/gtktextview.c (gtk_text_view_set_editable), (gtk_text_view_toggle_overwrite), (gtk_text_view_set_overwrite), (gtk_text_view_ensure_layout), (text_window_invalidate_cursors): Implement block-cursor for overwrite mode. (#80378) svn path=/trunk/; revision=18108
* Remove debug output.Matthias Clasen2006-12-251-4/+0
| | | | | | | | | 2006-12-24 Matthias Clasen <mclasen@redhat.com> * gtk/gtktextutil.c: Remove debug output. * gtk/gtktextview.c: Improve the DND scrolling behaviour. (#92387, Carlos Garnacho Parro)
* Bug 340141 – Update to Pango 1.16 APIBehdad Esfahbod2006-12-241-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2006-12-24 Behdad Esfahbod <behdad@gnome.org> Bug 340141 – Update to Pango 1.16 API * gdk/gdkpango.c (layout_iter_get_line_clip_region), (gdk_pango_layout_line_get_clip_region): * gtk/gtkcalendar.c (gtk_calendar_size_request): * gtk/gtkentry.c (gtk_entry_get_pixel_ranges), (get_layout_position), (gtk_entry_find_position), (gtk_entry_adjust_scroll): * gtk/gtkiconview.c (get_pango_text_offsets): * gtk/gtklabel.c (get_cursor_direction): * gtk/gtkstyle.c (get_insensitive_layout): * gtk/gtktextdisplay.c (render_para): * gtk/gtktextlayout.c (allocate_child_widgets), (find_display_line_below), (find_display_line_above), (gtk_text_layout_move_iter_to_previous_line), (gtk_text_layout_move_iter_to_next_line), (gtk_text_layout_move_iter_to_line_end), (gtk_text_layout_iter_starts_line), (gtk_text_layout_move_iter_to_x): * gtk/gtktextutil.c (limit_layout_lines): Use the _readonly version of pango_layout_iter_get_line(), pango_layout_iter_get_run(), pango_layout_get_line(), and pango_layout_get_lines(). * gtk/gtkmain.c (gtk_get_default_language): Use pango_get_default_language().
* Add infrastructure for copy/paste and DND of rich text for GtkTextBuffer.Michael Natterer2006-03-071-3/+131
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2006-03-07 Michael Natterer <mitch@imendio.com> Add infrastructure for copy/paste and DND of rich text for GtkTextBuffer. Fixes bug #324177. * gtk/gtktextbufferrichtext.[ch]: new files implementing a per-buffer registry of rich text formats. * gtk/gtk.h: #include gtktextbufferrichtext.h * gtk/gtktextbufferserialize.[ch]: new files implementing an internal serialization format that can handle all of a text buffer's tags and pixbufs. It's not useful for anything except tranfer between instances of GtkTextBuffer (Anders Carlsson). * gtk/Makefile.am: build the new files. * gtk/gtkclipboard.[ch]: added convenience APIs for rich text, just as they exist for plain text and pixbufs. * gtk/gtkselection.[ch]: added rich text convenience APIs here too. Return the target list from gtk_target_list_ref(). Register GtkTargetList as boxed type. Added gtk_target_table_new_from_list() and gtk_target_table_free(), which make converting between GtkTargetList and arrays of GtkTargetEntry considerably easier. * gtk/gtktextutil.[ch]: added _gtk_text_util_create_rich_drag_icon() which creates a fancy rich text icon (Matthias Clasen). * gtk/gtktextbuffer.[ch]: use all the new stuff above and implement copy and paste of rich text. Added APIs for getting the target lists used for copy and paste. Added public enum GtkTextBufferTargetInfo which contains the "info" IDs associated with the entries of the target lists. * gtk/gtktextview.c: use the new rich text APIs and GtkTextBuffer's new target list API to enable DND of rich text chunks. * gtk/gtk.symbols: export all the new symbols added. * tests/testtext.c: added rich text testing stuff.
* Various cleanups. (#315360, Kjartan Maraas)Matthias Clasen2005-09-131-2/+0
| | | | | | 2005-09-13 Matthias Clasen <mclasen@redhat.com> * gtk/*.c: Various cleanups. (#315360, Kjartan Maraas)
* Intern some more strings.Matthias Clasen2005-09-011-1/+1
| | | | | | | | | 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().
* Also intern static strings passed to g_object_set_data()Matthias Clasen2005-08-311-1/+1
|
* Add Copyright/License information.Matthias Clasen2005-07-131-1/+0
|
* When dragging text, use a drag icon showing the (ellipsized) text that isMatthias Clasen2005-07-111-0/+124
| | | | | | | | | | | | | | | | | | | | | | | 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.
* Make PLT-reduction work with gcc4, and don't include everything inMatthias Clasen2005-03-201-1/+1
| | | | | | | | | | | | | | | | | | 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.
* Add hidden aliases for exported symbols which are used internally in orderMatthias Clasen2004-08-091-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Fixes #136082 and #135265, patch by Morten Welinder.Federico Mena Quintero2004-03-061-0/+1
| | | | | | | | | | 2004-03-05 Federico Mena Quintero <federico@ximian.com> Fixes #136082 and #135265, patch by Morten Welinder. * configure.in: Use AC_SYS_LARGEFILE. * */*.c: #include <config.h>
* Fix use of uninitialized variable.Soeren Sandmann2003-08-291-1/+1
| | | | | | | | | | | Fri Aug 29 21:40:01 2003 Soeren Sandmann <sandmann@daimi.au.dk> * gtk/gtkactiongroup.c (gtk_action_group_add_radio_actions_full): Fix use of uninitialized variable. * gtk/gtktextutil.c (_gtk_text_util_append_special_char_menuitems): add const cast to get rid of warning
* Data constness fixes. (#75754)Matthias Clasen2002-12-101-1/+1
|
* Deprecation cleanupManish Singh2002-10-101-1/+1
| | | | | | | | | Thu Oct 10 14:41:05 2002 Manish Singh <yosh@gimp.org> * gtk/gtktextbtree.c gtk/gtktextbuffer.c gtk/gtktextdisplay.c gtk/gtktextlayout.c gtk/gtktextmark.c gtk/gtktexttag.[ch] gtk/gtktexttagtable.c gtk/gtktextutil.c gtk/gtktextview.[ch]: Deprecation cleanup
* Fix ZWJ => ZWN typo. (#83092, Tino Meinen)Owen Taylor2002-06-121-1/+1
| | | | | | | Wed Jun 12 15:02:30 2002 Owen Taylor <otaylor@redhat.com> * gtk/gtktextutil.c: Fix ZWJ => ZWN typo. (#83092, Tino Meinen)
* make static.Mark McLoughlin2002-01-311-1/+1
| | | | | | | | | | | | | | | | | | | | | 2002-01-31 Mark McLoughlin <mark@skynet.ie> * gdk/gdkimage.c: (scratch_image_info_for_depth): make static. * gdk/x11/gdkimage-x11.c: (get_full_image): ditto. * gdk/x11/gxid_lib.[ch]: (_gxid_claim_device), (_gxid_release_device): renamed from gxid_(claim|release)_device. * gdk/x11/gdkinput-gxi.c: (_gdk_input_enable_window), (_gdk_input_disable_window): upd for gxid change. * gtk/gtkimage.c: (animation_timeout): make static. * gtk/gtkstyle.c: (draw_thin_shadow), (draw_spin_entry_shadow): make static. * gtk/gtktextutil.c: (bidi_menu_entries): make static.
* Handle the case where bin->child is NULL. (#70153, Padraig O'Briain)Owen Taylor2002-01-311-1/+1
| | | | | | | | | | | Thu Jan 31 10:21:05 2002 Owen Taylor <otaylor@redhat.com> * gtk/gtkplug.c (gtk_plug_focus): Handle the case where bin->child is NULL. (#70153, Padraig O'Briain) * gtk/gtktextutil.c (_gtk_text_util_append_special_char_menuitems): Actually call gettext() on the labels; previously they were marked with N_() but we never called gettext().
* Add Unicode control char menu, based on patch from Dov. Bug #63495Havoc Pennington2001-12-171-0/+117
2001-12-06 Havoc Pennington <hp@redhat.com> Add Unicode control char menu, based on patch from Dov. Bug #63495 * gtk/gtkentry.c (gtk_entry_commit_cb): share code via gtk_entry_enter_text (gtk_entry_enter_text): function to do "typing in text" (popup_targets_received): add the Unicode menu items * gtk/gtktextview.c (popup_targets_received): add missing mnemonic on Input Methods item, and add the unicode menu items. * gtk/gtktextutil.h, gtk/gtktextutil.c: private utilities to be used in GtkEntry and GtkTextView - may become public later.