1. 20 Dec, 2005 2 commits
  2. 18 Jul, 2005 1 commit
  3. 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
  4. 07 May, 2005 1 commit
    • Owen Taylor's avatar
      Change prototype to match cairo_set_source_surface(). · 274e49f3
      Owen Taylor authored
      2005-05-07  Owen Taylor  <otaylor@redhat.com>
      
              * gdk/gdkpixbuf-render.c gdk/gdkpixbuf.h (gdk_pixbuf_set_as_cairo_source):
              Change prototype to match cairo_set_source_surface().
      
              * gdk/gdkdraw.c gdk/gdkgc.c gdk/gdkpixbuf-render.c gdk/gdkwindow.c
              gtk/gtkhsv.c tests/testcairo.c.
      274e49f3
  5. 18 Apr, 2005 1 commit
  6. 08 Apr, 2005 1 commit
  7. 17 Mar, 2005 1 commit
    • Owen Taylor's avatar
      Switch set_cairo_target() virtual function to ref_cairo_surface() · 09d7eafb
      Owen Taylor authored
      2005-03-15  Owen Taylor  <otaylor@redhat.com>
      
      	* gdk/gdkdrawable.h gdk/gdkdraw.c gdk/gdkpixmap.c gdk/gdkwindow.c
      	gdk/x11/gdkdrawable-x11.c gdk/x11/gdkpixmap-x11.c gdk/x11/gdkwindow-x11.c
      	gdk/gdkinternals.h: Switch set_cairo_target() virtual function to
      	ref_cairo_surface()
      
      	* gdk/gdkdrawable.h gdk/gdkdraw.h: Switch set_cairo_target() virtual
      	function to create_cairo_context()
      
      	* gdk/gdkwindow.c: Clear double buffer pixmaps with Cairo.
      
      	* gdk/x11/gdkwindow-x11.c: Keep all components in GdkWindowObject.bg_color,
      	not just the pixel.
      
      	* tests/testcairo.c: Update for create_cairo_context()
      
      	* gdk/gdkdraw.c (gdk_draw_trapezoids, gdk_draw_glyphs[_transformed]):
      	Reimplement in terms of Cairo, bypass the vtable entries.
      
      	* gdk/x11/gdkdrawable-x11.[ch] gdk/x11/gdkdisplay-x11.[ch]
      	gdk/x11/gdkgc-x11.c gdk/x11/gdkpango-x11.c
      	gdk/x11/gdkprivate-x11.h gdk/x11/Makefile.am: Remove
      	implementation of draw_trapezoids / draw_glyphs[_transformed].
      
      	* gdk/gdkpango.c: Switch GdkPangoRenderer to use Cairo
      
      	* gdk/gdkpango.c gdk/x11/gdkpango-x11.c: Move
      	gdk_pango_context_get_for_screen() into the backend independent code.
      
      	* gdk/x11/gdkdrawable-x11.[ch]: Remove Xft use, use RENDER directly
      	for drawing images.
      
      	* gdk/gdkdrawable.h gdk/x11/gdkdrawable-x11.c: Remove
      	gdk_draw_rectangle_alpha_libgtk_only.
      
      	* gdk/gdkpixbuf.h gdk/gdkpixbuf-render.c: Add
      	gdk_pixbuf_set_as_cairo_source()
      
      	* gdk/gdk.symbols: Update
      
      	* gtk/gtkcolorsel.c gtk/gtkhsv.c gtk/gtkiconview.c gtk/gtkruler.[ch]
      	gtk/gtk[hv]ruler.c: Convert to Cairo rendering.
      
      	* gtk/gtkstyle.c (gtk_default_draw_check, gtk_default_draw_focus,
      	gtk_default_draw_option): Switch to Cairo. Simplify the checkbutton,
      	radio button style for now to get something more scalable.
      
      	*  gtk/gtksettings.c: #if 0 out the code to use PangoXft for hinting/
      	antialiasing/dpi settings.
      09d7eafb
  8. 16 Mar, 2005 1 commit
    • Matthias Clasen's avatar
      Make PLT-reduction work with gcc4, and don't include everything in · 2a2d769d
      Matthias Clasen authored
      2005-03-15  Matthias Clasen  <mclasen@redhat.com>
      
      	Make PLT-reduction work with gcc4, and don't include
      	everything in gdkalias.h:
      
      	* gdk/gdk.symbols: Group symbols by header and source file.
      	* gdk/makegdkalias.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 makegdkalias.pl -def
      	* gdk/Makefile.am (gdkaliasdef.c): Add a rule to generate this
      	file.
      	* gdk/*.c, gdk/x11/*.c: Include gdkalias.h after the other
      	headers, include gdkaliasdef.c at the bottom.
      2a2d769d
  9. 09 Aug, 2004 1 commit
    • Matthias Clasen's avatar
      Add hidden aliases for exported symbols which are used internally in order · 0742ff3a
      Matthias Clasen authored
      Mon Aug  9 15:41:17 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)
      
      	* gdk/Makefile.am: Add rules to generate gdk.def and
      	gdkalias.h from gdk.symbols, and make make check check
      	the abi with abicheck.sh.
      
      	* gdk/gdk.symbols: New file. Definition of the GDK ABI.
      	The file can be processed by cpp to filter out certain
      	subsets of symbols.
      
      	* gdk/abicheck.sh: New file. Script to check the actually
      	symbols exported from libgdk-x11.2.0.so against the symbols
      	found in gdk.symbols.
      
      	* gdk/makegdkalias.pl: New file. Perl script to generate the
      	header containing the alias definitions for internally used
      	exported symbols from a list of symbols.
      
      	* gdk/*.c, gdk/x11/*.c: Include gdkalias.h
      0742ff3a
  10. 18 Feb, 2004 3 commits
    • Soeren Sandmann's avatar
      Use a scratch GC in the case where the background is a solid color. · b69a6711
      Soeren Sandmann authored
      Wed Feb 18 17:53:27 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
      
      	* gdk/gdkwindow.c (gdk_window_get_bg_gc): Use a scratch GC in the
      	case where the background is a solid color.
      	(gdk_window_clear_backing_rect): Reset the clip region after use.
      
      	* gdk/gdkpixbuf-render.c (gdk_pixbuf_render_threshold_alpha): Go
      	back to using a scratch GC. Pointed out by Owen Taylor
      
      	* gdk/gdkdraw.c (gdk_drawable_real_draw_pixbuf): Only use a
      	scratch GC if the passed-in one is NULL
      b69a6711
    • Soeren Sandmann's avatar
      Fix bug reported by Nam SungHyun. · df434db7
      Soeren Sandmann authored
      Wed Feb 18 13:28:57 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
      
      	Fix bug reported by Nam SungHyun.
      
      	* gdk/gdkpixbuf-render.c (gdk_pixbuf_render_threshold_alpha):
      	Don't use a cached GC here since the function needs to modify the
      	foreground color.
      
      	* gdk/gdkwindow.c (gdk_window_end_paint): Reset clip region back
      	to NULL on the cached GC.
      df434db7
    • Soeren Sandmann's avatar
      GC caching, bug #125645 (based on patch by Brian Cameron) · 1c51c486
      Soeren Sandmann authored
      Wed Feb 18 01:44:59 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
      
      	GC caching, bug #125645 (based on patch by Brian Cameron)
      
      	* gdk/gdkscreen.h (struct _GdkScreen): Add GC cache
      	* gdk/gdkscreen.c (gdk_screen_dispose): New function. Unref the
      	cached GC's here.
      	* gdk/gdkdraw.c (_gdk_drawable_get_scratch_gc): New function to
      	get a scratch gc.
      	* gdk/gdkinternals.h: Declare the function here
      
      	* gdk/gdkdraw.c (gdk_drawable_real_draw_pixbuf): Use
      	_gdk_drawable_get_scratch_gc() instead of creating a new GC.
      	* gdk/x11/gdkgeometry-x11.c (gdk_window_copy_area_scroll): same
      	* gdk/x11/gdkdrawable-x11.c (draw_with_images): same
      	* gdk/gdkwindow.c (gdk_window_get_composite_drawable): same
      	* gdk/gdkwindow.c (gdk_window_end_paint): same
      	* gdk/gdkpixmap.c (gdk_pixmap_colormap_new_from_pixbuf): same
      	* gdk/gdkpixbuf-render.c (gdk_pixbuf_render_threshold_alpha): same
      	* gdk/gdkpixbuf-render.c (gdk_pixbuf_render_pixmap_and_mask_for_colormap): same
      1c51c486
  11. 31 Jan, 2003 1 commit
    • Matthias Clasen's avatar
      Deprecate. (#60582) · 46d15e32
      Matthias Clasen authored
      2003-01-31  Matthias Clasen  <maclas@gmx.de>
      
      	* gdk/gdkpixbuf.h:
      	* gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable):
      	(gdk_pixbuf_render_to_drawable_alpha): Deprecate.  (#60582)
      
      	* gtk/gtkcolorsel.h:
      	* gtk/gtkcolorsel.c (gtk_color_selection_set_change_palette_hook):
      	Deprecate.  (#98167)
      46d15e32
  12. 02 Oct, 2002 1 commit
    • Owen Taylor's avatar
      Export _gdk_draw_pixbuf as gdk_draw_pixbuf(), rename the _draw_pixbuf · 6cb79658
      Owen Taylor authored
      Wed Oct  2 17:46:53 2002  Owen Taylor  <otaylor@redhat.com>
      
              * gdk/gdkdrawable.h gdk/gdkinternals.h gdk/gdkdraw.c
              gdk/gdkwindow.c gdk/gdkdrawable.c: Export _gdk_draw_pixbuf
              as gdk_draw_pixbuf(), rename the _draw_pixbuf virtual
              function to draw_pixbuf. (#60582)
      
              * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable[_alpha]):
              Note that these functions are obsolete in the docs.
      
              * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable):
              Remove all the sanity checks now we make it clear
              that it is obsolete name for gdk_draw_pixbuf().
      
              * gdk/gdkpixmap.c gtk/gtkcellrendererpixbuf.c gtk/gtkimage.c
                gtk/gtkpixmap.c demos/testpixbuf-scale.c demos/testpixbuf.c
                tests/testrgb.c: Use gdk_draw_pixbuf() everywhere.
      
              * gtk/gtklabel.c (gtk_label_set_mnemonic_widget): Fix
              some warnings.
      
              * gdk/gdkinternals.h (struct _GdkEventPrivate): Fix missed
              bit from last gdk_event_get_screen() change.
      
              * gdk/gdkevents.c: Couple of small fixes.i
      6cb79658
  13. 25 Sep, 2002 1 commit
    • Manish Singh's avatar
      add -DG_DISABLE_DEPRECATED and -DGDK_PIXBUF_DISABLE_DEPRECATED to compile · 234e191c
      Manish Singh authored
      Wed Sep 25 00:16:53 2002  Manish Singh  <yosh@gimp.org>
      
              * gdk/Makefile.am gdk/x11/Makefile.am: add -DG_DISABLE_DEPRECATED
              and -DGDK_PIXBUF_DISABLE_DEPRECATED to compile flags
      
              * gdk/gdkcolor.c gdk/gdkdisplay.c gdk/gdkdraw.c gdk/gdkevents.c
              gdk/gdkgc.c gdk/gdkimage.c gdk/gdkpango.c gdk/gdkpixbuf-render.c
              gdk/gdkpixmap.c gdk/gdkrgb.c gdk/gdkwindow.c gdk/linux-fb/gdkdnd-fb.c
              gdk/linux-fb/gdkfont-fb.c gdk/win32/gdkdnd-win32.c
              gdk/win32/gdkfont-win32.c gdk/x11/gdkdisplay-x11.c gdk/x11/gdkdnd-x11.c
              gdk/x11/gdkdrawable-x11.c gdk/x11/gdkevents-x11.c gdk/x11/gdkfont-x11.c
              gdk/x11/gdkgc-x11.c gdk/x11/gdkgeometry-x11.c gdk/x11/gdkim-x11.c
              gdk/x11/gdkinput-x11.c gdk/x11/gdkkeys-x11.c gdk/x11/gdkscreen-x11.c
              gdk/x11/gdkwindow-x11.c: Deprecation cleanup, mostly changing
              gdk_foo_{ref,unref} to g_object equivalents.
      234e191c
  14. 11 Aug, 2002 1 commit
  15. 05 Aug, 2002 1 commit
    • Owen Taylor's avatar
      Fix problem with wrong depth being used. (#89941, Jacob Berkman.) Remove · e8468d5e
      Owen Taylor authored
      Mon Aug  5 15:25:40 2002  Owen Taylor  <otaylor@redhat.com>
      
              * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_pixmap_and_mask_for_colormap):
              Fix problem with wrong depth being used. (#89941, Jacob
              Berkman.) Remove an unneeded 'screen' variable.
      
      Mon Aug  5 15:04:59 2002  Owen Taylor  <otaylor@redhat.com>
      
              More fixes for warnings reported by David L. Cooper II
      
              * gtk/gtkaccelmap.c (accel_map_parse_accel_path): Use
              GdkModifierType for accel_mods. (#85856)
      
              * gdk/gdkdisplay.h (struct _GdkDisplay): Make button_number
              signed, since we use -1 as an 'unset' value. (#85854)
      
              * gdk/x11/xsettings-client.c (parse_settings): Suppress
              a warning (#85853)
      
              * gdk/x11/gdkfont-x11.c (gdk_font_charset_for_locale): Fix
              accidental trailing ';'. (#85846)
      e8468d5e
  16. 06 Jun, 2002 1 commit
    • Owen Taylor's avatar
      Changes multihead reorganizing code for win32 support, mostly from a patch · aeaaae04
      Owen Taylor authored
      Wed Jun  5 18:34:47 2002  Owen Taylor  <otaylor@redhat.com>
      
      	Changes multihead reorganizing code for win32 support,
      	mostly from a patch by Hans Breuer.
      
      	* gdk/gdkcolor.c gdk/x11/gdkcolor-x11.c gdk/gdkcursor.c
      	  gdk/x11/gdkcursor-x11.c gdk/gdkevents.c gdk/x11/gdkevents-x11.c
      	  gdk/gdkfont.c gdk/x11/gdkfont-x11.c gdk/gdkkeys.c
      	  gdk/x11/gdkkeys-x11.c gdk/gdkimage.c gdk/x11/gdkimage-x11.c
      	  gdk/gdkscreen.c gdk/x11/gdkmain-x11.c
      	  gdk/gdkdisplay.c gdk/gdkevents-x11.c gdk/gdkpango.c
      	  gdk/x11/gdkpango-x11.c gdk/gdkselection.c
      	  gdk/x11/gdkselection-x11.c gdk/gdkwindow.c
      	  gdk/x11/gdkwindow-x11.c gdk/gdkvisual.c gdk/x11/gdkvisual-x11.c:
      	  Move port-independent singlehead wrapper functions into
      	  port-independent part of GDK. (#80009)
      
      	* gdk/win32/gdkcolor-win32.c gdk/win32/gdkcursor-win32.c
      	  gdk/win32/gdkevents-win32.c gdk/win32/gdkfont-win32.c
      	  gdk/win32/gdkimage-win32.c gdk/win32/gdkkeys-win32.c
      	  gdk/win32/gdkmain-win32.c gdk/win32/gdkproperty-win32.c
      	  gdk/win32/gdkselection-win32.c gdk/win32/gkwindow-win32.c:
      	Turn singlehead functions into "multihead" functions that ignore
      	their GdkDisplay or GdkScreen arguments.
      
      	* gdk/win32/gdkdrawable-win32.c gdk/win32/gdkevents-win32.c
      	gdk/win32/gdkinput-win32.c gdk/win32/gdkprivate-win32.h:
      	Misc multihead-compatibility changes.
      
      	* gtk/gtk.def gdk/gdk.def: Update for multihead functions.
      
      	* gdk/gdkcolormap.h gdk/gdkvisual.h gdk/x11/gdkcolormap-x11.c
      	gdk/x11/gdkvisual-x11.c: Remove the screen fields
      	from the public parts of the colormap/visual structures, add accessors
      	instead.
      
      	* gdk/gdkpixbuf-render.c gdk/gdkpixmap.c gdk/gdkrgb.c
      	  gdk/x11/gdkcolormap-x11.c gdk/x11/gdkimage-x11.c
      	  gdk/x11/gdkimage-x11.c gdk/x11/gdkprivate-x11.h gtk/gtkgc.c
      	  gtk/gtkstyle.c gtk/gtkwidget.c: Use accessors to get the screen
      	for colormaps, visuals; move the fields into the private
      	structures for the x11 backend.
      
      	* gdk/gdkdisplay.[ch] gdk/x11/gdkdisplay-x11.[ch]
      	  gdk/gdkscreen.[ch] gdk/x11/gdkscreen-x11.c:
      	Remove virtualization of screen and display functions.
      	(#79990, patch from Erwann Chenede)
      
      	* gdk/win32/gdkdisplay-x11.c gdk/win32/gdkscreen-win32.c
      	gdk/win32/{Makefile.am, makefile.msc, makefile.mingw}:
      	New files containing stub implementations of Display,
      	Screen functions.
      
      	* gdk/x11/gdkscreen-x11.[ch] gdk/x11/gdkdisplay-x11.[ch]
      	gdk/x11/gdkx.h: Clean up function exports and what
      	headers they are in. (#79954)
      
      	* gdk/x11/gdkx.h: Fix macro that was referring to a non-existant
      	screen->screen_num. (In the patch for #79972, Erwann Chenede)
      
      	* gdk/gdkscreen.c gdk/gdkwindow.c gdk/x11/gdkinternals.h
      	 gdk/x11/gdkscreen-x11.c: Fix gdk_screen_get_window_at_pointer()
      	to use window hooks. (#79972, patch partly from Erwann Chenede)
      
      	* gdk/x11/gdkdisplay-x11.c gdk/x11/gdkevents-x11.c: Fix
      	some warnings.
      aeaaae04
  17. 25 Apr, 2002 1 commit
    • Owen Taylor's avatar
      Start of integration of Erwann Chenede's multihead work from the · 425b9886
      Owen Taylor authored
      Thu Apr 25 16:51:40 2002  Owen Taylor  <otaylor@redhat.com>
      
              Start of integration of Erwann Chenede's multihead work
              from the gtk-multihead branch.
      
              * gdk/gdkdisplay.[ch] gdk/gdkscreen.[ch]
              gdk/x11/gdkdisplay-x11.[ch] gdk/x11/gdkscreen-x11.[ch]
              New classes representing a set of screens with attached
              input devices and a single contiguous area, respectively.
      
              * gdk/gdk.[ch] gdk/gdkinternals.h gdk/x11/gdkmain-x11.c:
              gdk/x11/gdkprivate-x11.h: Make the initialization interface
              simple _gdk_windowing_init() and do the rest in
              gdk_open_display() calls.
      
              * gdk/gdk.[ch]: Add gdk_parse_args() which can be used
              to do the display-independent part of initialization
              instead of gdk_init_[check].
      
              * gdk/gdkcursor.h gdk/gdkfont.h gdk/gdkkeys.h gdk/gdkpixmap.h
              gdk/gdkproperty.h gdk/gdkselection.h gdk/gdkwindow.h:
              Add multihead variants (_for_display(), for_screen()) of functions
              getting information specific to a particular screen screen or
              display.
      
              * gdk/gdkscreen.[ch]: Add gdk_screen__* variants of functions
              like gdk_rgb_get_colormap() that used to get/list global
              objects.
      
              * gdk/x11/gdkx.h: Add functions for converting GdkScreen
              and GdkDisplay into the X equivalents.
      
              * gdk/x11/gdkwindow-x11.c: Removed gdk_window_xid_at_coords()
              not in the headers and unused.
      
              * configure.in gdk/x11/{gxid.c,gxid_lib.[ch],gdkinput-gxi.c}:
              Remove gxid support ... has not been tested for a long time...
              "xfree" support is more portable to non XFree86.
      
              * gdk/**.h: Add a GDK_MULTIHEAD_SAFE define that can be
              used to turn off functions that are inherently non-multihead
              safe.
      
              * gdk/**.c: add GDK_NOTE(multihead, ...) calls when functions
              are used in non-multihead-safe ways.
      
              * gdk/*.c gdk/x11/*.c: Changes to make the internals of GDK
              multihead safe.
      425b9886
  18. 29 Jan, 2002 1 commit
    • Owen Taylor's avatar
      Call _gdk_draw_pixbuf(), thus enabling using this function for pixbufs · ccb90778
      Owen Taylor authored
      Tue Jan 29 17:40:02 2002  Owen Taylor  <otaylor@redhat.com>
      
              * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable):
              Call _gdk_draw_pixbuf(), thus enabling using this function
              for pixbufs with alpha. (#68801)
      
              * gdk/gdkdraw.c (gdk_drawable_real_draw_pixbuf): Move
              implementation of gdk_pixbuf_render_to_drawable()
              to here.
      ccb90778
  19. 05 Jan, 2002 1 commit
    • Hans Breuer's avatar
      need to cast image->mem away from void* to avoid 'error C2036: 'void *' : · ec81d4a8
      Hans Breuer authored
      2002-01-04  Hans Breuer  <hans@breuer.org>
      
      	* gdk/gdkdraw.c gdk/gdkpixbuf-drawable.c :
      	need to cast image->mem away from void* to avoid
      	'error C2036: 'void *' : unknown size'. Doing pointer
      	arithmetics on void pointers is a GCCism afaik.
      
      	* gdk/gdkpixbuf-render.c : #include "gdkinternals.h" for
      	_gdk_draw_pixbuf ()
      
      	* gdk/makefile.msc gdk/win32/makefile.msc
              gdk/gtk/makefile.msc.in : use -FI msvc_recommended_pragmas.h
      
      	* gdk/win32/gdkdrawable-win32.c : use _gkd_win32_copy_to_image
      	and take care of image->visual possibly NULL.
      
      	* gdk/win32/gdkimage-win32.c : implement _gdk_image_new_for_depth(),
      	_gdk_win32_copy_to_image() and _gdk_windowing_bits_for_depth().
      	Again take care of image->visual possibly NULL.
      
      	* gdk/win32/gdkprivate-win32.h : declare _gdk_win32_copy_to_image()
      
      	* gdk/win32/gdkevents-win32.c : use gdk_drawable_get_colormap
      	instead of private field access
      
      	* gdk/win32/gdkpixmap-win32.c (gdk_pixmap_new) : adapt
      	colormap setting to the gdk-X behaviour
      ec81d4a8
  20. 04 Jan, 2002 1 commit
    • Owen Taylor's avatar
      Private function to tell if we have RENDER extension. · d12c9702
      Owen Taylor authored
      Thu Jan  3 22:18:15 2002  Owen Taylor  <otaylor@redhat.com>
      
      	* gdk/x11/gdkdrawable-x11.c gdk/x11/gdkprivate-x11.h
      	(_gdk_x11_have_render): Private function to tell if we have RENDER
      	extension.
      
      	* gdk/x11/gdkgc-x11.c (_gdk_x11_gc_get_fg_picture): Return
      	None if we don't have RENDER extension.
      
      	* gdk/x11/gdkpango-x11.c (gdk_pango_context_get): Don't
      	use Xft unless we have render extension.
      
      	* gdk/x11/gdkdrawable-x11.c (gdk_x11_drawable_get_picture):
      	Handle missing render extension.
      
      	* gdk/gdkdraw.c gdk/gdkdrawable.h gdk/gdkpixmap.c gdk/gdkwindow.c
      	gdk/gdkinternals.h: Add a private copy_to_image() virtual function
      	to the GdkDrawable vtable that extends get_image() to allow
      	copying onto existing images.  Make the default implementation of
      	get_image() use this so that backends don't have to implement
      	both. Add private wrapper _gdk_drawable_copy_to_image().
      
      	* gdk/x11/gdkimage-x11.c gdk/x11/gdkprivate-x11.c
      	gdk/x11/gdkdrawable-x11.c (_gdk_x11_copy_to_image): Implement
      	copy_to_image() semantics, speed up by using ShmPixmaps and
      	XCopyArea when possible, XFlush() after ungrabbing the server,
      	generally redo the logic once again.
      
      	* gdk/gdkinternals.h gdk/x11/gdkimage-x11.c
      	_gdk_windowing_bits_per_depth(): Function to convert from depth to
      	bits-per-pixel. (We assume only one bpp per depth - X requires
      	this.)
      
      	* gdk/gdkinternals.h gdk/gdkrgb.c gdk/gdkimage.c: Move the GdkRGB
      	scratch image code into a generic _gdk_image_get_scratch() chunk
      	of code that we can use other places we need scratch images.
      
      	* gdk/gdkimage.c gdk/x11/gdkimage.c gdk/gdkinternals.h:
      	Add _gdk_image_new_for_depth() as the backend
      	to _gdk_image_new() to allowing creating images with
      	a depth and no visual.
      
      	* gdk/gdkpixbuf-drawable.c: Fix so that getting
      	parts of images not at 0,0 actually works.
      
      	* gdk/gdkdrawable.h gdk/gdkinternals.h gdk/gdkdraw.c
      	gdk/gdkwindow.c gdk/gdkpixmap.c gdk/gdkpixbuf-render.c:
      	 - Add a new GdkDrawableClass vfunc _draw_pixbuf, and
      	  _gdk_draw_pixbuf() [ will be made public later ], to allow
      	  backends to accelerate drawing pixbufs.
      	 - Move the implementation of gdk_pixbuf_render_to_drawable_alpha()
      	   to be the default implementation.
      	 - Update docs for gdk_pixbuf_render_to_drawable_alpha().
      	 - Optimize the default implementation by using
      	   _gdk_image_copy_to_pixmap() and scratch shared images, and
      	   special casing the compositing.
      
      	* gdk/x11/gdkdrawable-x11.c: Accelerate _gdk_draw_pixbuf()
      	with alpha using the RENDER extension.
      
              * gdk/gdkpixbuf-drawable.c (gdk_pixbuf_get_from_drawable):
      	Optimize by _gdk_image_copy_to_pixmap() and scratch images.
      
      	* tests/testrgb.c: Add test for speed of alpha composition,
      	reduce the number of iterations since alpha composition
      	can be a bit slow.
      
      	* gdk/x11/gdkimage-x11.c gdk/gdkprivate-x11.h (_gdk_x11_image_get_shm_pixmap):
      	Private function to get a ShmPixmap for an image, if possible.
      d12c9702
  21. 19 Sep, 2001 1 commit
  22. 07 Sep, 2001 1 commit
    • Owen Taylor's avatar
      Deprecate gdk_set/get_use_xshm, make gdk_set_use_xshm a noop. Remove · a3914aaf
      Owen Taylor authored
      Fri Sep  7 18:17:47 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* gdk/gdk.h gdk/x11/gdkmain-x11.c: Deprecate gdk_set/get_use_xshm,
      	make gdk_set_use_xshm a noop. Remove --no-xshm command line
      	option. If we aren't autodetecting properly, we need
      	to fix the problem, or at least make it an environment
      	variable setting, to avoid problems with propagating
      	to embedded children, plugins, etc.
      
      	* gdk/gdkcolor.h: Deprecate gdk_colormap_get_system_size().
      
      	* gdk/gdkpixbuf-render.c gdk/gdkpixbuf.h
      	(gdk_pixbuf_render_pixmap_and_mask_for_colormap):
      	New function to render a pixmap and mask for a particular colormap.
      
      	* gtk/gtkwindow.c (get_pixmap_and_mask): Change to use
      	gdk_pixbuf_render_pixmap_and_mask_for_colormap () instead
      	of internal implementation of the same.
      a3914aaf
  23. 29 Jun, 2001 1 commit
    • Havoc Pennington's avatar
      Clip the retrieved image data to the screen, using a server grab to avoid · 0bee26c7
      Havoc Pennington authored
      2001-06-28  Havoc Pennington  <hp@pobox.com>
      
      	* gdk/x11/gdkimage-x11.c (_gdk_x11_get_image): Clip the retrieved
      	image data to the screen, using a server grab to avoid race
      	conditions.
      
      	* gtk/gtkitemfactory.c (gtk_item_factory_create_item): remove
      	check for NULL return from gtk_image_new_from_stock(), it never
      	returns NULL.
      	(gtk_item_factory_create_item): fix bug where we parsed the stock
      	ID as an inline pixbuf
      
      	* gtk/gtktext.c (gtk_text_key_press): numeric keypad support
      
      	* gtk/gtkspinbutton.c (gtk_spin_button_key_press): numeric keypad
      	support (should be using binding set here)
      
      	* gtk/gtkoptionmenu.c (gtk_option_menu_key_press): numeric keypad
      	support (should be using binding set here)
      
      	* gtk/gtkmenushell.c (gtk_menu_shell_class_init): numeric keypad
      	support
      
      	* gtk/gtkmenu.c (gtk_menu_class_init): numeric keypad support
      
      	* gtk/gtkmenubar.c (gtk_menu_bar_class_init): numeric keypad
      
      	* gtk/gtklistitem.c (gtk_list_item_class_init): numeric keypad
      
      	* gtk/gtkimcontextsimple.c
      	(gtk_im_context_simple_filter_keypress): keypad
      
      	* gtk/gtkfilesel.c (gtk_file_selection_key_press): keypad
      
      	* gtk/gtkentry.c (gtk_entry_class_init): numeric keypad fixes
      
      	* gtk/gtkctree.c (gtk_ctree_class_init): numeric keypad support
      
      	* gtk/gtkcolorsel.c (palette_activate): keypad support (of course,
      	should be binding-setted)
      
      	* gtk/gtkwindow.c (gtk_window_class_init): numeric keypad fixes
      
      	* gtk/gtkclist.c (gtk_clist_class_init): numeric keypad fixes
      
      	* gtk/gtkcalendar.c: numeric keypad fixes
      
      	* gtk/gtktextview.c (gtk_text_view_class_init): numeric keypad
      	support
      
      	* gdk/gdkwindow.c (gdk_window_get_clip_region): fix infinite loop
      	screwup
      
      	* gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable_alpha):
      	clip the render area to the drawable's clip region in advance,
      	so we don't get data from the server that we don't need.
      
      	* gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable_alpha):
      	check return value of gdk_pixbuf_get_from_drawable(), fall back
      	to bilevel alpha if we can't get the pixbuf to composite against.
      
      	* gdk/gdkdraw.c (gdk_drawable_get_image): set the image colormap
      
      	* gdk/gdkimage.c (gdk_image_get_colormap): add
      	gdk_image_set_colormap, gdk_image_get_colormap
      
      	* gdk/gdkpixbuf-drawable.c (rgbconvert): Change all converters to
      	take a region of the image, instead of converting the entire
      	image.
      
      	* gtk/gtkwidget.h (struct _GtkWidgetClass): add show_help
      	keybinding signal. Add default bindings for it. Add default
      	handler for show_help that shows the tooltip for the widget.
      
      	* gtk/gtkdialog.c (gtk_dialog_class_init): add binding set and
      	"close" keybinding signal, remove key press handler.
      
      	* gtk/gtktooltips.c (gtk_tooltips_set_colors): Just remove this,
      	it's not our usual practice to leave a deprecated function around
      	with a runtime warning, plus we don't want it to appear in docs,
      	plus if we make them yellow no one will want to change them
      	anyhow.
      0bee26c7
  24. 01 Nov, 2000 2 commits
    • Havoc Pennington's avatar
      Clip the rectangle to be rendered to the drawable, since · fcaa719b
      Havoc Pennington authored
      2000-11-01  Havoc Pennington  <hp@redhat.com>
      
      	* gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable_alpha):
      	Clip the rectangle to be rendered to the drawable, since
      	get_from_drawable() requires a region within the drawable
      fcaa719b
    • Havoc Pennington's avatar
      New function to create a pixbuf pointing to a subregion of another pixbuf. · fe9f9d03
      Havoc Pennington authored
      2000-11-01  Havoc Pennington  <hp@pobox.com>
      
      * gdk-pixbuf.c (gdk_pixbuf_new_subpixbuf): New function to create
      a pixbuf pointing to a subregion of another pixbuf.
      
      2000-11-01  Havoc Pennington  <hp@pobox.com>
      
      * gtk/gtklabel.c (gtk_label_set_attributes): Set a PangoAttrList
      on a label
      (gtk_label_finalize): unref the attr list if any.
      
      * gtk/testgtk.c (create_get_image): close test on second click
      (make_message_dialog): close dialog if it exists
      
      * gdk/gdkpango.c (gdk_draw_layout): Handle rise attribute
      
      * gdk-2.0.pc.in (Requires): Make it require gdk-pixbuf-2.0 not
      gdk-pixbuf
      
      * gtk/gtklabel.c (gtk_label_set_markup): new function to set label
      from Pango markup format
      (gtk_label_set_markup_with_accel): ditto but with accelerator
      parsing
      
      * gtk/gtkimage.c (gtk_image_expose): reformatting.
      
      * gdk/gdkpixbuf-drawable.c (gdk_pixbuf_get_from_drawable): Hack to
      reflect current state of GDK - use gdk_drawable_get_colormap, etc.
      Check GDK_IS_WINDOW() not !GDK_IS_PIXMAP() to decide whether to
      call gdk_window_get_origin().
      
      * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable_alpha):
      implement GDK_PIXBUF_ALPHA_FULL
      fe9f9d03
  25. 26 Jul, 2000 1 commit
  26. 14 Jul, 2000 1 commit
    • Owen Taylor's avatar
      use FALSE for size_only most of the time when calling · 0bcf86c0
      Owen Taylor authored
      Fri Jul 14 16:21:26 2000  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtktextlayout.c: use FALSE for size_only most
      	of the time when calling gtk_text_layout_get_line_display()
      	to avoid causing double reshapes when a redraw follows
      	immediately after.
      
      Tue Jul 11 11:13:40 2000  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkrange.c (gtk_range_default_[hv]slider_update): Invalidate
      	appropriate region and gdk_window_process_updates() so trough
      	updating doesn't lag behind the window being scrolled.
      
              * gdk/gdkgc.c: Make parent_class pointer static.
      
      Sun Jul  9 21:31:23 2000  Owen Taylor  <otaylor@redhat.com>
      
              * gdk/gdk-pixbuf.c gtk/gdk-pixbuf-loader.c gtk/gtktextview.c:
      	include <string.h>.
      
      	* gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable): Fix
      	cut-and-paste error in computing memory offset for 4 channels.
      0bcf86c0
  27. 02 Jul, 2000 1 commit
    • Owen Taylor's avatar
      Add gdk_rgb_find_color() to get a pixel value using GdkRGB functionality · 4f1ccca5
      Owen Taylor authored
      Sun Jul  2 12:45:50 2000  Owen Taylor  <otaylor@redhat.com>
      
      	* gdk/gdkrgb.[ch]: Add gdk_rgb_find_color() to get a pixel
      	value using GdkRGB functionality given GdkColormap and GdkColor.
      	(name not final, waiting for inspiration.)
      
      	* gdk/gdkgc.[ch] (gdk_gc_set_rgb_fg/bg_color): New functions to
      	set the foreground/background of a GC using the GC's colormap
      	and GdkRGB. (name not final, waiting for inspiration.)
      
      	* gdk/gdkcompat.h gdk/gdkrgb.c (gdk_rgb_get_colormap): Rename from
      	gdk_rgb_get_cmap(), put #define in gdkcompat.h.
      
      	* gtk/gtkwidget.[ch] gtkcompat.h: Make visuals for
      	gtk_widget_get_visual(), gtk_widget_get_default_visual, etc,
      	purely a function of the corresponding colormap. Make
      	gtk_widget_set_visual(), etc, noop macros in gtkcompat.h.
      
      	* gdk/gdkpixmap.c gdk/x11/gdkpixmap-c11.c: Rewrite
      	gdk_pixbuf_*create_from_xpm_* in terms of
      	gdk_pixbuf_new_from_xpm_data(), move into platform independent
      	code.
      
      	* gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable): Take
      	advantage of the new draw_rgb_32_image_dithalign.
      
      	* gdk/gdkrgb.c (gdk_draw_rgb_32_image_dithalign): Added.
      
      	* gtk/gtkgc.c (gtk_gc_new): Set the appropriate colormap
      	on each created GC.
      
      	* gdk/gdkgc.[ch]: Add gdk_gc_get/set_colormap.
      
      	* gdk/gdkgc.[ch]: Add a colormap field to the GdkGC structure
      	which we initialize from the drawable when the GC is created,
      	if the drawable has a colormap.
      
      	* gdk/x11/gdkgc-x11.c: include string.h for memset.
      
      	* gdk/x11/gdkinput-x11.c: include string.h for strlen, etc.
      
      	* gtk/gtklayout.[ch]: Remove unsed configure serial member.
      4f1ccca5
  28. 21 Jun, 2000 2 commits
    • Owen Taylor's avatar
      Indentation fixups to GTK+ standard. · ba55612d
      Owen Taylor authored
      Wed Jun 21 19:29:08 2000  Owen Taylor  <otaylor@redhat.com>
      
      	* gdk/gdkpixbuf-render.c gdk/gdkpixbuf-drawable.c: Indentation
      	fixups to GTK+ standard.
      ba55612d
    • Owen Taylor's avatar
      Welcome aboard, gdk-pixbuf. · 11056f56
      Owen Taylor authored
      Wed Jun 21 16:38:13 2000  Owen Taylor  <otaylor@redhat.com>
      
              * gdk-pixbuf/* docs/reference/gdk-pixbuf/*: Welcome aboard,
      	gdk-pixbuf.
      
      	* gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_class_init):
      	fixups for GObject.
      
      	* gdk/Makefile.am gdk/gdkpixbuf-render.[ch] gdk/gdkpixbuf.[ch]: Bits of
      	gdk-pixbuf with GDK dependencies moved into GDK.
      
      	* gtk/Makefile.am gtk/gdk-pixbuf-loader.[ch]: Temporarily
      	move gdk-pixbuf-loader here until GObject has signals.
      
      	* demos/: New directory of demos. Move demos from
      	gdk-pixbuf here.
      
      	* demos/pixbuf-init.c: Small bit of code to check for
      	loaders in ../gdk-pixbuf/.libs/gdk-pixbuf, and if found,
      	set GDK_PIXBUF_MODULEDIR appropriately.
      
      	* gdk/gdkcompat.h: Remove GDK_DRAWABLE_PIXMAP compat
      	define which no longer makes sense.
      11056f56
  29. 11 Apr, 2000 1 commit
    • Federico Mena Quintero's avatar
      Most of this patch is based on a patch by Havoc Pennington (hp@redhat.com) · 829ed024
      Federico Mena Quintero authored
      2000-04-11  Federico Mena Quintero  <federico@helixcode.com>
      
      	Most of this patch is based on a patch by Havoc Pennington
      	(hp@redhat.com) to make GdkPixbuf's structures opaque and to
      	remove the libart dependency.
      
      	* gdk-pixbuf/gdk-pixbuf.h: Removed the public structures.
      	(GdkColorspace): New enum that for now only contains
      	GDK_COLORSPACE_RGB.
      	(GdkPixbufDestroyNotify): New type for the pixbuf's pixels destroy
      	notification function.
      	(GdkInterpType): New num with interpolation types.
      
      	* *.[ch]: Replace the libart stuff with our own stuff.
      
      	* pixops/*.[ch]: Likewise.
      
      	* gdk-pixbuf/gdk-pixbuf-private.h: New file with the private
      	declarations of the GdkPixbuf structures.
      
      	* gdk-pixbuf/gdk-pixbuf.c (gdk_pixbuf_new_from_art_pixbuf):
      	Removed function.
      	(gdk_pixbuf_get_format): Constify.
      	(gdk_pixbuf_get_n_channels): Constify.
      	(gdk_pixbuf_get_has_alpha): Constify.
      	(gdk_pixbuf_get_bits_per_sample): Constify.
      	(gdk_pixbuf_get_pixels): Constify.
      	(gdk_pixbuf_get_width): Constify.
      	(gdk_pixbuf_get_height): Constify.
      	(gdk_pixbuf_get_rowstride): Constify.
      
      	* gdk-pixbuf/gdk-pixbuf.c (gdk_pixbuf_copy): New function to copy
      	a pixbuf.
      
      	* gdk-pixbuf/gdk-pixbuf-data.c (gdk_pixbuf_new_from_data): Added a
      	bits_per_sample argument; currently only 8 bits per sample are
      	supported.
      
      	* gdk-pixbuf/gdk-pixbuf-animation.c (gdk_pixbuf_frame_get_pixbuf):
      	New accessor.
      	(gdk_pixbuf_frame_get_x_offset): New accessor.
      	(gdk_pixbuf_frame_get_y_offset): New accessor.
      	(gdk_pixbuf_frame_get_delay_time): New accessor.
      	(gdk_pixbuf_frame_get_action): New accessor.
      
      	* gdk-pixbuf/gdk-pixbuf-render.c
      	(gdk_pixbuf_render_pixmap_and_mask): Instead of returning a solid
      	mask rectangle for pixbufs without an alpha channel, set the
      	*mask_return to NULL.
      
      	* gdk-pixbuf/gdk-pixbuf-util.c (gdk_pixbuf_add_alpha): Constify.
      
      	* gdk-pixbuf/gdk-pixbuf-scale.c: Fix includes.
      
      	* gdk-pixbuf/gdk-pixbuf-scale.c (gdk_pixbuf_scale): Added some
      	preconditions.  Maybe we should also check for the colorspace,
      	bits per pixel, and such.
      	(gdk_pixbuf_composite): Likewise.
      	(gdk_pixbuf_composite_color): Likewise.
      	(gdk_pixbuf_scale_simple): Likewise, and fail gracefully if we
      	cannot allocate the new pixbuf.
      	(gdk_pixbuf_composite_color_simple): Likewise.
      
      	* gdk-pixbuf/gnome-canvas-pixbuf.c (gnome_canvas_pixbuf_render):
      	Use art_rgb_rgba_affine() or art_rgb_affine() since we no longer
      	have an ArtPixBuf.
      
      	* gdk-pixbuf/io-bmp.c: Fix includes.
      
      	* gdk-pixbuf/pixops/pixops.c (pixops_scale_nearest): Fixed cast in
      	an lvalue.
      
      	* TODO: Populated.
      
      	* configure.in: Removed checks for libart.
      
      	* gdk-pixbuf/Makefile.am: Removed references to libart.
      	(noinst_HEADERS): Added gdk-pixbuf-private.h.
      
      	* gdk-pixbuf/Makefile.am (libgdk_pixbuf_la_LDFLAGS): Incremented
      	the version number of the libtool library to indicate that this
      	definitely is not compatible with the old usage.  I know you love
      	me.  I know you do.
      
      	* configure.in: Bumped version number to 0.7.0.
      
      	* README: Updated.
      
      	* gdk-pixbuf-config.in (--libs): We no longer require libart.
      
      	* DEPENDS.libgdk_pixbuf: We no longer depend on libart.
      
      	* gdk-pixbuf.spec.in: Updated, but I don't guarantee anything.
      829ed024
  30. 02 Feb, 2000 1 commit
    • Federico Mena Quintero's avatar
      Added sanity check for width and height being >= 0. Also, do nothing if · e9f75f6b
      Federico Mena Quintero authored
      2000-02-03  Federico Mena Quintero  <federico@helixcode.com>
      
      	* gdk-pixbuf/gdk-pixbuf-render.c
      	(gdk_pixbuf_render_threshold_alpha): Added sanity check for width
      	and height being >= 0.  Also, do nothing if either of them is
      	zero.  Thanks to Ettore for pointing this out.
      	(gdk_pixbuf_render_to_drawable): Likewise.
      	(gdk_pixbuf_render_to_drawable_alpha): Likewise.
      e9f75f6b
  31. 17 Jan, 2000 1 commit
    • Federico Mena Quintero's avatar
      Removed the broken --enable-canvas-pixbuf option. Added the stuff · 4f0f7330
      Federico Mena Quintero authored
      2000-01-16  Federico Mena Quintero  <federico@helixcode.com>
      
      	* configure.in: Removed the broken --enable-canvas-pixbuf option.
      	Added the stuff necessary to substitute the variables in
      	gnomecanvaspixbufConf.sh.in.
      
      	* gnomecanvaspixbufConf.sh.in: New gnome-config handler for the
      	tiny gnomecanvaspixbuf library.
      
      	* Makefile.am: Build gnomecanvaspixbufConf.sh.
      
      	* gdk-pixbuf/Makefile.am: Create a libgnomecanvaspixbuf and only
      	build it if gdk-pixbuf is being built outside of gnome-libs.
      
      	* doc/gdk-pixbuf-sections.txt: Added gdk_pixbuf_render_pixmap_and_mask().
      
      	* gdk-pixbuf/gdk-pixbuf-render.c
      	(gdk_pixbuf_render_pixmap_and_mask): Renamed from
      	gdk_pixbuf_render_pixmap().  Do not create the mask if it is not
      	needed, and do not use a clipping mask when rendering the pixmap.
      	Tweaked documentation a little.
      
      	* HACKING: New file with hacking policies for the gdk-pixbuf
      	module.
      
      	* doc/Makefile.am (tmpl_sources): Added missing backslash.
      
      	* doc/Makefile.am: Use gnomecanvaspixbuf in gnome-config when
      	scanning for docstrings.
      
      	* gdk-pixbuf/gdk-pixbuf-util.c (gdk_pixbuf_copy_area): Made sanity
      	checks more stringent.  Removed "gint" abominations.  Made
      	documentation consistent with the rest of the functions.
      
      	* doc/gdk-pixbuf-sections.txt: Added gdk_pixbuf_copy_area() to the
      	utilities section.
      4f0f7330
  32. 14 Jan, 2000 1 commit
  33. 02 Dec, 1999 1 commit
    • Federico Mena Quintero's avatar
      #include <config.h>, and fix includes. · 25a81424
      Federico Mena Quintero authored
      1999-12-02  Federico Mena Quintero  <federico@redhat.com>
      
      	* src/testpixbuf.c: #include <config.h>, and fix includes.
      
      	* src/testpixbuf-drawable.c: #include <config.h>, and fix includes.
      
      	* src/io-xpm.c: Fix includes.
      
      	* src/io-tiff.c: Fix includes.
      
      	* src/io-ras.c: Fix includes, and do not include more stuff than needed.
      
      	* src/io-pnm.c: Fix inlcudes, and do not include more stuff than needed.
      
      	* src/io-png.c: Fix includes.
      
      	* src/io-ico.c: Fix includes, and do not include more stuff than needed.
      
      	* src/io-gif.c: Fix includes, and do not include more stuff than needed.
      
      	* src/io-bmp.c: Fix includes, and do not include more stuff than needed.
      
      	* src/gnome-canvas-pixbuf.c: Fix includes.
      
      	* src/gdk-pixbuf.c: Fix includes.
      
      	* src/gdk-pixbuf-util.c: Fix includes.
      
      	* src/gdk-pixbuf-render.c: Fix includes.
      
      	* src/gdk-pixbuf-io.h: Fix includes.
      
      	* src/gdk-pixbuf-drawable.c: Fix includes.
      
      	* src/gdk-pixbuf-drawable.h: Use angle brackets for the gdk-pixbuf
      	include files.
      
      	* src/gdk-pixbuf-data.c: Fix includes.
      
      	* src/gdk-pixbuf-loader.c: #include <config.h>
      
      	* src/gdk-pixbuf-loader.h: Use angle brackets for the gdk-pixbuf
      	include files.
      
      	* src/Makefile.am: Commented out the gdk-pixbuf-drawable stuff,
      	since it is not finished.
      25a81424
  34. 30 Nov, 1999 1 commit
  35. 24 Nov, 1999 1 commit
    • Federico Mena Quintero's avatar
      Create the temporary buffer to the size of the interesction of the · b990b307
      Federico Mena Quintero authored
      1999-11-22  Federico Mena Quintero  <federico@redhat.com>
      
      	* src/gnome-canvas-pixbuf.c (gnome_canvas_pixbuf_draw): Create the
      	temporary buffer to the size of the interesction of the bounding
      	box and the expose area, not the whole expose area.  This speeds
      	up things a lot.
      
      	* src/gdk-pixbuf-render.c (gdk_pixbuf_render_threshold_alpha): Do
      	not paint black on the mask, since we already cleared it in a
      	single gdk_draw_rectangle() operation.
      b990b307