1. 04 Nov, 2016 1 commit
  2. 01 Nov, 2016 1 commit
    • Matthias Clasen's avatar
      Use GdkRGBA for text attributes · 6e178aed
      Matthias Clasen authored
      Now that GtkTextAttributes is private, we can clean this struct
      up a bit. The first step is to switch from GdkColor to GdkRGBA,
      and adapt all users.
      6e178aed
  3. 20 Oct, 2016 1 commit
  4. 30 Jul, 2015 1 commit
  5. 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
  6. 06 Dec, 2014 1 commit
    • Matthias Clasen's avatar
      Update docs · e1716611
      Matthias Clasen authored
      Document new fields in GtkTextAttributes, remove redundant comments.
      e1716611
  7. 04 Dec, 2014 1 commit
  8. 07 Feb, 2014 1 commit
  9. 21 Jan, 2014 2 commits
  10. 13 Nov, 2013 1 commit
  11. 03 Nov, 2013 1 commit
  12. 05 May, 2013 1 commit
  13. 01 Apr, 2013 2 commits
  14. 28 Dec, 2012 1 commit
  15. 03 Oct, 2011 1 commit
  16. 06 May, 2011 1 commit
    • 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
  17. 14 Jan, 2011 1 commit
  18. 11 Jan, 2011 1 commit
  19. 05 Jan, 2011 1 commit
  20. 03 Jan, 2011 1 commit
  21. 27 Sep, 2010 1 commit
  22. 10 Aug, 2010 2 commits
  23. 02 May, 2010 1 commit
  24. 04 Apr, 2010 1 commit
  25. 04 Feb, 2010 1 commit
  26. 30 Oct, 2008 1 commit
  27. 23 Jun, 2008 1 commit
    • Michael Natterer's avatar
      gtk/gtkaction.h gtk/gtkbuildable.h gtk/gtkbuilderprivate.h · 77e99003
      Michael Natterer authored
      2008-06-23  Michael Natterer  <mitch@imendio.com>
      
      	* gtk/gtkaction.h
      	* gtk/gtkbuildable.h
      	* gtk/gtkbuilderprivate.h
      	* gtk/gtkcelllayout.h
      	* gtk/gtkentrycompletion.h
      	* gtk/gtkfilechoosersettings.h
      	* gtk/gtkfilesystem.h
      	* gtk/gtkfilesystemmodel.h
      	* gtk/gtkicontheme.h
      	* gtk/gtklinkbutton.h
      	* gtk/gtkpagesetup.h
      	* gtk/gtkpapersize.h
      	* gtk/gtkprintcontext.h
      	* gtk/gtkprintoperation.h
      	* gtk/gtkprintoperationpreview.h
      	* gtk/gtkprintsettings.h
      	* gtk/gtkrecentchooserprivate.h
      	* gtk/gtkrecentmanager.h
      	* gtk/gtksearchengine.h
      	* gtk/gtktexttag.h
      	* gtk/gtktreeselection.h
      	* gtk/gtktreeviewcolumn.h
      	* gtk/gtkuimanager.h: remove redundant inclusion of <glib.h> and
      	<glib-object.h>. There is no point in relying on them being pulled
      	in by other headers in some places and placing them explicitly in
      	other places, so choose the "as little includes as possible"
      	approach and get rid of them.
      
      
      svn path=/trunk/; revision=20675
      77e99003
  28. 28 May, 2008 1 commit
    • Michael Natterer's avatar
      define __GTK_H_INSIDE__ around including all other headers. · eff99c28
      Michael Natterer authored
      2008-05-28  Michael Natterer  <mitch@imendio.com>
      
      	* gtk/gtk.h: define __GTK_H_INSIDE__ around including all other
      	headers.
      
      	* gtk/gtktypebuiltins.h.template
      	* gtk/gtkversion.h.in
      	* gtk/gtk*.h: add single-include guards that #error out if
      	GTK_DISABLE_SINGLE_INCLUDES is defined and any of these files is
      	included individually.
      
      	* gtk/gtkprintbackend.h
      	* gtk/gtkprinter-private.h
      	* gtk/gtktextlayout.h
      	* gtk/gtktexttagprivate.h
      	* gtk/gtktexttypes.h
      	* gtk/gtktreedatalist.h: include <gtk/gtk.h> instead of individual
      	headers in these private or semi-private headers.
      
      	* gtk/gtkimmodule.h: also here because it's not in gtk.h.
      
      	* gtk/gtkpagesetupunixdialog.h
      	* gtk/gtkprinter.h
      	* gtk/gtkprintjob.h
      	* gtk/gtkprintunixdialog.h: likewise in the gtkunixprint headers.
      
      	* gtk/gtkclist.h
      	* gtk/gtkcombo.h
      	* gtk/gtkctree.h
      	* gtk/gtkfilesel.h
      	* gtk/gtkitemfactory.h
      	* gtk/gtklist.h
      	* gtk/gtklistitem.h
      	* gtk/gtkoldeditable.h
      	* gtk/gtkoptionmenu.h
      	* gtk/gtkpixmap.h
      	* gtk/gtkpreview.h
      	* gtk/gtksignal.h
      	* gtk/gtktipsquery.h: whenever possible, include only <gtk/gtk.h>
      	instead of individual headers in these deprecated headers. They
      	don't get included at all when GTK_DISABLE_DEPRECATED is defined,
      	so if an app needs them anyway, it must undef GTK_DISABLE_DEPRECATED
      	and include them individually, which should continue to work.
      
      	* gtk/gtkclist.c: include "gtkctree.h" because of the change
      	above.
      
      
      svn path=/trunk/; revision=20221
      eff99c28
  29. 29 Apr, 2007 1 commit
  30. 28 Sep, 2005 1 commit
  31. 13 Jul, 2005 1 commit
  32. 10 Jun, 2005 1 commit
    • Matthias Clasen's avatar
      Allow setting paragraph background. (#81045, Gustavo Carneiro, patch by · 43f263a0
      Matthias Clasen authored
      2005-06-10  Matthias Clasen  <mclasen@redhat.com>
      
      	Allow setting paragraph background.  (#81045, Gustavo
      	Carneiro, patch by Jeroen Zwartepoorte)
      
      	* gtk/gtktextlayout.c (set_para_values): Propagate
      	pg_bg_color to the display struct.
      	(gtk_text_layout_free_line_display): Free it here.
      
      	* gtk/gtktextdisplay.c (render_para): If pg_bg_color
      	is set, draw a rectangle in that color behind
      	the paragraph.
      
      	* gtk/gtktexttag.c (gtk_text_tag_class_init): Add
      	paragraph-background, paragraph-background-gdk and
      	paragraph-background-set properties.
      	(set_pg_bg_color): A setter for paragraph-background.
      
      	* gtk/gtktextlayout.h (struct _GtkTextLineDisplay): Add
      	pg_bg_color.
      
      	* gtk/gtktexttag.h (struct _GtkTextAttributes): Add
      	pg_bg_color.
      	(struct _GtkTextTag): Add pg_bg_color_set.
      43f263a0
  33. 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
  34. 28 Nov, 2004 1 commit
    • Matthias Clasen's avatar
      Mark as const. · c50066b4
      Matthias Clasen authored
      2004-11-28  Matthias Clasen  <mclasen@redhat.com>
      
      	* gtk/gtkwidget.h (gtk_requisition_get_type):
      	* gtk/gtktypeutils.h (gtk_identifier_get_type):
      	* gtk/gtktexttag.h (gtk_text_attributes_get_type):
      	* gtk/gtkstyle.h (gtk_border_get_type):
      	* gtk/gtkfilesystemmodel.h (_gtk_file_system_model_get_type):
      	* gtk/gtkfilechooserentry.h (_gtk_file_chooser_entry_get_type):
      	* gtk/gtkfilechooserembed.h (_gtk_file_chooser_embed_get_type):
      	* gtk/gtkfilechooserdefault.h (_gtk_file_chooser_default_get_type):
      	* gtk/gtkaccelmap.h (gtk_accel_map_get_type): Mark as const.
      
      	* gtk/gtk.symbols:
      	* gtk/Makefile.am: Mark get_type() functions
      	generated by glib-mkenums as const.
      c50066b4
  35. 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
  36. 10 Aug, 2002 1 commit
    • Soren Sandmann's avatar
      Minor documentation fixes · 77eee887
      Soren Sandmann authored
      2002-08-10  Soren Sandmann  <sandmann@daimi.au.dk>
      
      	* docs/reference/gtk/tree_widget.sgml,
      	docs/reference/gtk/tmpl/gtkdialog.sgml,
      	docs/reference/gtk/tmpl/gtkentry.sgml,
      	docs/reference/gtk/tmpl/gtkfilesel.sgml,
      	docs/reference/gtk/tmpl/gtkfontsel.sgml,
      	docs/reference/gtk/tmpl/gtkfontseldlg.sgml,
      	docs/reference/gtk/tmpl/gtktreemodel.sgml,
      	docs/reference/gtk/tmpl/gtkwidget.sgml, gdk/x11/gdkdisplay-x11.c,
      	gtk/gtkbbox.c, gtk/gtkbox.c, gtk/gtkbutton.c, gtk/gtkcellrenderer.c,
      	gtk/gtkcellrendererpixbuf.c, gtk/gtkcellrenderertext.c,
      	gtk/gtkcheckmenuitem.c, gtk/gtkcontainer.c, gtk/gtkcurve.c,
      	gtk/gtkdialog.h, gtk/gtkentry.c, gtk/gtkfilesel.c, gtk/gtkfontsel.c,
      	gtk/gtkframe.c, gtk/gtkhandlebox.c, gtk/gtkiconfactory.c,
      	gtk/gtkimage.c, gtk/gtkinvisible.c, gtk/gtkitemfactory.c,
      	gtk/gtklabel.c, gtk/gtklayout.c, gtk/gtkmenu.c, gtk/gtkprogress.c,
      	gtk/gtkprogressbar.c, gtk/gtkscrolledwindow.c, gtk/gtksizegroup.c,
      	gtk/gtktable.c, gtk/gtktextiter.c, gtk/gtktexttag.c,
      	gtk/gtktexttag.h, gtk/gtktextview.c, gtk/gtktogglebutton.c,
      	gtk/gtktoolbar.c, gtk/gtktreemodel.c, gtk/gtktreeselection.c,
      	gtk/gtktreestore.c, gtk/gtktreeview.c, gtk/gtktreeviewcolumn.c,
      	gtk/gtkviewport.c, gtk/gtkwidget.c, gtk/gtkwidget.h,
      	gtk/gtkwindow.c:
      
      	Minor documentation fixes
      
      	(#89254, patch from Brett Nash;
      	 #85809, patch from daten@dnetc.org;
      	 #76391, patch from Ross Burton;
      	 #74559, Manuel Clos;
      	 #73569, #72005, Alexey A. Malyshev;
      	 #70061, patch from Dennis Bj"orklund;
      	 #64566, #63388, #58328, #57499, #81007, #77349, Vitaly Tishkov;
      	 #78932, Vitaly Tishkov, patch from Ross Burton;
      	 #73306)
      77eee887
  37. 02 Mar, 2002 1 commit
    • Owen Taylor's avatar
      Switch style of stamp file usage. · f832e348
      Owen Taylor authored
      Sat Mar  2 13:26:58 2002  Owen Taylor  <otaylor@redhat.com>
      
              * gtk/Makefile.am: Switch style of stamp file usage.
      
              * gtk/Makefile.am gtk/typeutils.[ch]: Switch all the exported
              enumeration/fags TYPE variables over to macros for get_type() functions,
              for lazy definition and to get rid of expensive relocations.
      
              * gtk/gtkiconfactory.[ch] gtk/gtkselection.[ch] gtk/gtkstyle.[ch]
              gtk/gtktextiter.[ch] gtk/gtktexttag.[ch] gtk/gtktreemodel.[ch]
              gtk/gtktypeutils.[ch] gtk/gtkwidget.[ch]: Switch boxed type
              definitions over manually coded get_type() functions.
      
              * gtk/gtk.def: Updates for above
      
              * gtk/{genmarshal.pl,makeenums.awk,makeenums.h,maketypes.awk}:
              Remove from CVS, no longer used.
      
              * configure.in: Remove checks for awk.
      f832e348