1. 27 Sep, 2003 1 commit
  2. 21 Sep, 2003 1 commit
  3. 26 Aug, 2003 1 commit
    • Owen Taylor's avatar
      Since we add one to the layout's reported width to account for the cursor, · 2be259b2
      Owen Taylor authored
      Mon Aug 25 19:55:55 2003  Owen Taylor  <otaylor@redhat.com>
      
              * gtk/gtktextview.c (gtk_text_view_update_layout_width):
              Since we add one to the layout's reported width to
              account for the cursor, we need to subtract one when
              setting the wrap width for the layout. (Fixes infinite
              loop (#120325, Federico Crozat)
      
              * gtk/gtktextlayout.c (gtk_text_layout_get_line_display):
              Be a bit more careful about rounding when converting
              wrapped width from Pango units to pixels.
      2be259b2
  4. 24 Jul, 2003 1 commit
  5. 18 Jul, 2003 2 commits
    • Matthias Clasen's avatar
      Add a new keybinding signal, move_viewport. (gtk_text_view_move_viewport): · eaae0a6b
      Matthias Clasen authored
      2003-07-18  Matthias Clasen  <maclas@gmx.de>
      
      	* gtk/gtktextview.c (gtk_text_view_class_init): Add a new keybinding signal, move_viewport.
      	(gtk_text_view_move_viewport): New function which implements the move_viewport functionality.
      	(gtk_text_view_move_cursor_internal): If the cursor is not visible, move the viewport. (#78669)
      
      	* gtk/gtkenums.h (GtkScrollStep): New enumeration, used for move_viewport argument.
      
      	* gtk/gtkstatusbar.c (gtk_statusbar_class_init): Add a has_resize_grip property.  (#111779)
      
      	* gtk/gtkwindow.h:
      	* gtk/gtkwindow.c (gtk_window_set_default_icon): New method.  (#95816)
      
      	* gtk/gtkmessagedialog.h:
      	* gtk/gtkmessagedialog.c (gtk_message_dialog_add_buttons): New method.
      	(#65501, Sebastian Rittau)
      eaae0a6b
    • Soeren Sandmann's avatar
      use gtk_widget_queue_resize_noredraw(). · 1a7bac8d
      Soeren Sandmann authored
      Fri Jul 18 20:06:57 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
      
      	* gtk/gtktextview.c (changed_handler): use
      	gtk_widget_queue_resize_noredraw().
      1a7bac8d
  6. 09 Jun, 2003 1 commit
    • Matthias Clasen's avatar
      Install boolean property "overwrite". (gtk_text_view_[gs]et_property): · 056bd009
      Matthias Clasen authored
      2003-06-10  Matthias Clasen  <maclas@gmx.de>
      
      	* gtk/gtktextview.c (gtk_text_view_class_init): Install boolean
      	property "overwrite".
      	(gtk_text_view_[gs]et_property): Handle "overwrite".
      	* gtk/gtktextview.[hc] (gtk_text_view_[gs]et_overwrite): Getter
      	and setter for "overwrite" property.  (#110241, Jeroen Zwartepoorte)
      056bd009
  7. 05 Jun, 2003 4 commits
    • Owen Taylor's avatar
      #80023, Yao Zhang, TOKUNAGA Hiroyuki · 6bbdea92
      Owen Taylor authored
      Thu Jun  5 16:12:54 2003  Owen Taylor  <otaylor@redhat.com>
      
              #80023, Yao Zhang, TOKUNAGA Hiroyuki
      
              * gtk/gtktextlayout.c (gtk_text_layout_get_cursor_locations):
              Account for the preedit cursor offset if the iter passed
              in is at the same place as the insertion cursor.
      
              * gtk/gtktextview.c (gtk_text_view_get_cursor_location):
              Encapsulate getting the insertion cursor location.
      
              * gtk/gtktextview.c (gtk_text_view_update_im_spot_location):
              Pass the real y/height to the IM context. Take
              text_view->x/yoffset into account.
      6bbdea92
    • Owen Taylor's avatar
      Never scroll on focus in (#81893, Patch from Paolo Maggi) · 4d5b395f
      Owen Taylor authored
      Thu Jun  5 16:52:54 2003  Owen Taylor  <otaylor@redhat.com>
      
              * gtk/gtktextview.[ch]: Never scroll on focus in
              (#81893, Patch from Paolo Maggi)
      
              * gtk/gtktextview.c (gtk_text_view_scroll_[h]pages):
              Scroll to the current cursor location before handling
              the action, in case the user just tabbed in
              and the cursor is offscreen.
      4d5b395f
    • Matthias Clasen's avatar
      Fix for #84668, reported by Torbjrn Andersson: · fc822656
      Matthias Clasen authored
      2003-06-05  Matthias Clasen  <maclas@gmx.de>
      
      	* gtk/gtktextview.c: Fix for #84668, reported by Torbjrn Andersson:
      	(gtk_text_view_grab_notify):
      	(gtk_text_view_state_changed): Implement these
      	to unobscure cursor when grab shadowed or insensitised.
      	(gtk_text_view_unobscure_mouse_cursor): New function to undo the
      	effect of gtk_text_view_obscure_mouse_cursor(). Code lifted from
      	gtk_text_view_motion_event().
      	(gtk_text_view_motion_event): Use gtk_text_view_obscure_mouse_cursor().
      fc822656
    • Matthias Clasen's avatar
      New keybinding signal for (un)selecting the whole buffer. Bound to · 4c735628
      Matthias Clasen authored
      2003-06-05  Matthias Clasen  <maclas@gmx.de>
      
      	* gtk/gtktextview.c (select_all): New keybinding signal for
      	(un)selecting the whole buffer. Bound to C-a/C-\.  (see #107889)
      4c735628
  8. 14 Mar, 2003 1 commit
  9. 28 Feb, 2003 1 commit
    • Manish Singh's avatar
      demos/gtk-demo/main.c demos/gtk-demo/tree_store.c gdk/x11/gdkscreen-x11.c · dd74be94
      Manish Singh authored
      Thu Feb 27 17:44:24 2003  Manish Singh  <yosh@gimp.org>
      
              * demos/gtk-demo/main.c
              * demos/gtk-demo/tree_store.c
              * gdk/x11/gdkscreen-x11.c
              * gtk/gtkcellrenderertoggle.c
              * gtk/gtkcolorsel.c
              * gtk/gtkdnd.c
              * gtk/gtkeditable.c
              * gtk/gtkentry.c
              * gtk/gtkmenu.c
              * gtk/gtkmenubar.c
              * gtk/gtkmenuitem.c
              * gtk/gtkmenushell.c
              * gtk/gtkrc.c
              * gtk/gtksettings.c
              * gtk/gtkstyle.c
              * gtk/gtktextbuffer.c
              * gtk/gtktextview.c
              * gtk/gtktreeviewcolumn.c
              * tests/testgtk.c
              * tests/testtext.c
              * tests/testtreeedit.c
              * tests/testtreefocus.c
              * tests/testtreeview.c: remove unnecessary G_OBJECT() casts.
      dd74be94
  10. 20 Feb, 2003 1 commit
    • Matthias Clasen's avatar
      Check if line_ancestor_parent is NULL. (#102711, Manuel Clos) · 452de5d6
      Matthias Clasen authored
      2003-02-20  Matthias Clasen  <maclas@gmx.de>
      
      	* gtk/gtktextbtree.c (_gtk_text_line_previous_could_contain_tag):
      	Check if line_ancestor_parent is NULL.  (#102711, Manuel Clos)
      
      	* gtk/gtktextview.c (gtk_text_view_scroll_to_iter):
      	(gtk_text_view_update_adjustments): Make sure cursor stays visible
      	during horizontal scrolling.  (#75270)
      452de5d6
  11. 14 Feb, 2003 1 commit
    • Matthias Clasen's avatar
      Remove bogus casts. · 49ad2496
      Matthias Clasen authored
      2003-02-14  Matthias Clasen  <maclas@gmx.de>
      
      	* gtk/gtktextview.c (popup_targets_received): Remove bogus casts.
      49ad2496
  12. 11 Feb, 2003 1 commit
    • Matthias Clasen's avatar
      Fix for #82734 and #78216: · 4b9e72c7
      Matthias Clasen authored
      2003-02-12  Matthias Clasen  <maclas@gmx.de>
      
      	Fix for #82734 and #78216:
      
      	* gtk/gtktextview.c (delete_cb):
      	(select_all_cb): New callbacks for context menu items.
      	(popup_targets_received): Add "Delete" and "Select All" to context
      	menu, mnemonics and title caps for all items.
      
      	* gtk/gtkentry.c (gtk_entry_delete_cb): New callback for "Delete"
      	context menu item.
      	(popup_targets_received): Add "Delete" to context menu, mnemonics
      	and title caps for all items.
      4b9e72c7
  13. 05 Feb, 2003 1 commit
  14. 30 Jan, 2003 1 commit
  15. 21 Jan, 2003 1 commit
  16. 14 Jan, 2003 1 commit
    • Matthias Clasen's avatar
      Skip invisible chars for GTK_MOVEMENT_LOGICAL_POSITIONS and · 740f871a
      Matthias Clasen authored
      
      	* gtk/gtktextview.c (gtk_text_view_move_cursor_internal): Skip
      	invisible chars for GTK_MOVEMENT_LOGICAL_POSITIONS and
      	GTK_MOVEMENT_WORDS.
      
      	* gtk/gtktextiter.c,
      	gtk/gtktextiter.h: Add some variant movement functions which
      	skip invisible chars, and do some cleanups.
      
      	* gtk/gtk-sections.txt: Add new GtkTextIter functions.
      740f871a
  17. 07 Jan, 2003 1 commit
  18. 06 Jan, 2003 1 commit
    • Matthias Clasen's avatar
      Add a comment that the just_selected_element is unused. · f50f45bc
      Matthias Clasen authored
      2003-01-07  Matthias Clasen  <maclas@gmx.de>
      
      	* gtk/gtktextview.h (struct _GtkTextView): Add a comment that
      	the just_selected_element is unused.
      
      	* gtk/gtktextview.c (extend_selection): New helper function to
      	find the range that should be added to the selection.
      	(selection_motion_event_handler):
      	(gtk_text_view_start_selection_drag):
      	(gtk_text_view_end_selection_drag):
      	(selection_motion_event_handler):
      	(selection_scan_timeout): Support select-by-words/lines.
      	(gtk_text_view_button_press_event): Start a selection drag on
      	double/triple clicks.  (#78599)
      f50f45bc
  19. 04 Jan, 2003 1 commit
    • Matthias Clasen's avatar
      Make C-Down step through the sequence of paragraph ends (old behaviour · 315edfcc
      Matthias Clasen authored
      2003-01-05  Matthias Clasen  <maclas@gmx.de>
      
      	* gtk/gtktextview.c (gtk_text_view_move_cursor_internal): Make
      	C-Down step through the sequence of paragraph ends (old behaviour
      	included paragraph starts).  (#80340, patch by Narayana Pattipati)
      
      	* gtk/gtktextiter.c (_gtk_text_btree_get_iter_at_first_toggle):
       	Check for a tag toggle at the start iterator before calling
       	gtk_text_iter_forward_to_tag_toggle().  (#102090, patch by Daniel
      	Elstner)
      315edfcc
  20. 27 Dec, 2002 2 commits
  21. 25 Dec, 2002 2 commits
  22. 21 Dec, 2002 2 commits
    • Matthias Clasen's avatar
      New static function to set the background of all windows. · e42ddac3
      Matthias Clasen authored
      	* gtk/gtktextview.c (gtk_text_view_set_background): New static
      	function to set the background of all windows.
      	(gtk_text_view_style_set): Use gtk_text_view_set_background().
      	(gtk_text_view_state_changed): New function; change background
      	according to state.  (#88126)
      e42ddac3
    • Havoc Pennington's avatar
      fix the documentation · 535c4b52
      Havoc Pennington authored
      2002-12-21  Havoc Pennington  <hp@pobox.com>
      
      	* gtk/gtktextview.c (gtk_text_view_move_visually): fix the documentation
      535c4b52
  23. 12 Dec, 2002 2 commits
  24. 10 Dec, 2002 1 commit
  25. 08 Nov, 2002 1 commit
    • Matthias Clasen's avatar
      Put into #ifdef DO_BLINK to avoid an unused static function. (#97965) · 2d1ce5a4
      Matthias Clasen authored
      	* tests/testtext.c (blink_timeout): Put into #ifdef DO_BLINK to
      	avoid an unused static function.  (#97965)
      
      	* gtk/gtktextiter.c (backward_line_leaving_caches_unmodified):
      	* gtk/gtkstyle.c (radio_aa_bits):
      	(draw_spin_entry_shadow): #if-0-out unused static functions and
      	variables.  (#97965)
      
      	* gtk/gtktextview.c (text_window_get_allocation):
      	* gtk/gtkcolorsel.c (gtk_color_selection_get_palette_size):
      	(gtk_color_selection_get_palette_color):
      	(gtk_color_selection_unset_palette_color): Remove unused static
      	functions.  (#97965)
      
      	* gtk/gtkcolorsel.c
      	(gtk_color_selection_set_change_palette_with_screen_hook): Fix doc
      	comment.
      2d1ce5a4
  26. 10 Oct, 2002 1 commit
    • Manish Singh's avatar
      Deprecation cleanup · ac770765
      Manish Singh authored
      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
      ac770765
  27. 23 Sep, 2002 1 commit
    • Owen Taylor's avatar
      Make gtk_menu_shell_select_first() public. (#70374) · 4d7d94f6
      Owen Taylor authored
      Mon Sep 23 17:50:23 2002  Owen Taylor  <otaylor@redhat.com>
      
              * gtk/gtkmenushell.[ch] gtk/gtkentry.c gtk/gtkmenubar.c
              gtk/gtkmenuitem.c gtk/gtktextview.c: Make
              gtk_menu_shell_select_first() public. (#70374)
      4d7d94f6
  28. 09 Sep, 2002 1 commit
  29. 14 Aug, 2002 1 commit
  30. 25 Jul, 2002 1 commit
  31. 06 Jul, 2002 1 commit
    • Owen Taylor's avatar
      Add an extra parameter to _gtk_menu_item_select_first() to allow us to · 367cacdf
      Owen Taylor authored
      Fri Jul  5 20:18:23 2002  Owen Taylor  <otaylor@redhat.com>
      
              * gtk/gtkmenushell.[ch] gtk/gtkmenubar.c gtk/gtkmenuitem.c
              gtk/gtkentry.c gtk/gtktextview.c: Add an extra parameter
              to _gtk_menu_item_select_first() to allow us to choose
              whether we want to select the first item predictably
              or to select the first sensitive item. Fixes problem
              with insensitive menu items and keynav. (#85796,
              reported by Bill Haneman and others.)
      367cacdf
  32. 18 Jun, 2002 1 commit
    • Owen Taylor's avatar
      Replace gdk_cursor_new_for_screen() with gdk_cursor_new_for_display(). · 621fb746
      Owen Taylor authored
      Tue Jun 18 14:41:48 2002  Owen Taylor  <otaylor@redhat.com>
      
              * gdk/gdkcursor.[ch] gdk/x11/gdkcursor-x11.c
              gdk/x11/gdkprivate-x11.h gdk/win32/gdkcursor-win32.c: Replace
              gdk_cursor_new_for_screen() with gdk_cursor_new_for_display().
              (#85671)
      
              * gtk/gtkclist.c gtk/gtkcombo.c gtk/gtkcurve.c gtk/gtkdnd.c
              gtk/gtkentry.c gtk/gtkhandlebox.c gtk/gtkhsv.c gtk/gtklabel.c
              gtk/gtkpaned.c gtk/gtktext.c gtk/gtktextview.c
              gtk/gtktipsquery.c gtk/gtktreeviewcolumn.c:
              Adapt to above change.
      621fb746