1. 22 Nov, 2017 1 commit
  2. 29 Aug, 2016 1 commit
  3. 21 Mar, 2016 1 commit
  4. 10 Feb, 2016 1 commit
    • Matthias Clasen's avatar
      text view: Improve tag pointer tracking · a3a5cf10
      Matthias Clasen authored
      A problem that has been observed in polari is that links in tags
      are clickable all the way into the margin. This problem is caused
      by gtk_text_view_get_iter_at_position ignoring the return value
      of pango_layout_xy_to_index. Instead, pass it back as a boolean
      return value. This is technically an API break, but we've allowed
      ourselves to change return types from void to gboolean before.
      a3a5cf10
  5. 20 Oct, 2015 1 commit
  6. 16 Oct, 2015 1 commit
  7. 17 Aug, 2015 1 commit
  8. 30 Jul, 2015 1 commit
  9. 29 May, 2015 1 commit
  10. 18 Mar, 2015 1 commit
    • Christian Hergert's avatar
      textview: add support for underline and strikethrough colors · 28063ee2
      Christian Hergert authored
      This commit adds the GtkTextTag:underline-rgba and :strikethrough-rgba
      properties and the necessary plumbing to apply these colors in GtkTextLayout.
      With this change, you can alter the color of underlines including those
      of type PANGO_UNDERLINE_ERROR.
      
      You might want to alter the underline color to differentiate between
      spelling and grammer mistakes. In code editors, it is convenient to
      differentiate between errors and warnings.
      
      Note that the GtkTextAppearance struct is public ABI and has no spare
      room for new fields, so we are resorting to some tricky packing to store
      the colors in the unused pixel field of the fg_color and bg_color structs.
      This packing is accomplished by the macros in gtktextattributesprivate.h.
      Signed-off-by: Christian Hergert's avatarChristian Hergert <christian@hergert.me>
      
      https://bugzilla.gnome.org/show_bug.cgi?id=402168
      28063ee2
  11. 18 Dec, 2014 2 commits
  12. 04 Dec, 2014 1 commit
  13. 20 Jul, 2014 1 commit
  14. 22 May, 2014 1 commit
  15. 19 Feb, 2014 1 commit
  16. 07 Feb, 2014 2 commits
  17. 09 Jul, 2013 2 commits
  18. 05 May, 2013 1 commit
  19. 31 Jan, 2013 1 commit
  20. 05 Mar, 2012 1 commit
  21. 27 Feb, 2012 1 commit
  22. 25 Dec, 2011 1 commit
  23. 18 Dec, 2011 3 commits
  24. 01 Dec, 2011 1 commit
  25. 06 May, 2011 2 commits
    • Tristan Van Berkom's avatar
      Added internal GdkRGBA support for GtkTextTag::paragraph-background-rgba · cefb9501
      Tristan Van Berkom authored
      Added the remaining implementation bits for rendering paragraph backgrounds
      with rgba values and updated the test case.
      cefb9501
    • Tristan Van Berkom's avatar
      Added GdkRGBA properties to GtkTextTag. · d399a4ac
      Tristan Van Berkom authored
      This now allows text view to render text with alpha values in
      the text foreground and backgrounds, the work is almost complete,
      currently the error-underline-color is still a GdkColor style property
      and since we use only GdkRGBA for rendering it needs to be converted
      and applied, probably a new rgba version of the style property should
      also be introduced.
      
      This commit adds tests/testtextview that must be run from the tests/
      directory to show translucent text in action.
      d399a4ac
  26. 03 Jan, 2011 1 commit
  27. 02 Nov, 2010 1 commit
  28. 01 Nov, 2010 1 commit
  29. 27 Sep, 2010 1 commit
  30. 26 Sep, 2010 1 commit
    • Benjamin Otte's avatar
      Move GtkSizeRequest into GtkWidget · d9c92598
      Benjamin Otte authored
      It doesn't make sense to keep them separate as GtkSizeRequest requires a
      GtkWidget and GtkWidget implements GtkSizeRequest, so you can never have
      one without the other.
      It also makes the code a lot easier because no casts are required when
      calling functions.
      
      Also, the names would translate to gtk_widget_get_width() and people
      agreed that this would be a too generic name, so a "preferred" was added
      to the names.
      
      So this patch moves the functions:
      gtk_size_request_get_request_mode() => gtk_widget_get_request_mode()
      gtk_size_request_get_width() => gtk_widget_get_preferred_width()
      gtk_size_request_get_height() => gtk_widget_get_preferred_height()
      gtk_size_request_get_size() => gtk_widget_get_preferred_size()
      gtk_size_request_get_width_for_height() =>
        gtk_widget_get_preferred_width_for_height()
      gtk_size_request_get_height_for_width() =>
        gtk_widget_get_preferred_height_for_width()
      ... and moves the corresponding vfuncs to the GtkWidgetClass.
      
      The patch also renames the implementations of the vfuncs in widgets to
      include the word "preferrred".
      d9c92598
  31. 13 Sep, 2010 1 commit
  32. 08 Sep, 2010 1 commit
    • Tor Lillqvist's avatar
      Get rid of the rest of variables exported from libgtk · 87141cf4
      Tor Lillqvist authored
      Especially the gtk_*_type ones in gtktexttypes.h were mentioned in
      gtk.symbols presumably by accident. That header isn't even installed,
      so no way can they be supposed to be public.
      
      gtk_text_attr_appearance_type is from the installed but "semi-private"
      gtktextlayout.h, so drop that one too from gtk.symbols for now.
      
      The use of gtk_text_unknown_char_utf8 is bit of a mess. Code in a few
      files knew implicitly that it is three bytes. Define a symbolic name
      for the length of it instead. Add an exported function
      gtk_text_unknown_char_utf8_gtk_tests_only() that returns a pointer to
      it just for the sake of gtk/tests/textbuffer.c. Prefix the variable
      with an underscore.
      
      I doubt the usefulness of the test_utf8() in textbuffer.c. If it could
      be dropped, gtk_text_unknown_char_utf8_gtk_tests_only() could be
      dropped, too.
      87141cf4
  33. 10 Aug, 2010 1 commit
  34. 10 Jul, 2010 1 commit