1. 08 Nov, 1999 6 commits
    • Owen Taylor's avatar
      Move all X specific code into the x11/ directory. Aside from shuffling · e9b6bfcc
      Owen Taylor authored
      Mon Nov  8 14:47:04 1999  Owen Taylor  <otaylor@redhat.com>
      
      	Move all X specific code into the x11/ directory.
      	Aside from shuffling things around, did the following:
      
             * gdk/gdkprivate.h gdk/gdk.h gdk/x11/gdkmain-x11.h: Add
      	 gdk_arg_context_* - a simple argument parsing system
      	 in the style of popt.
      
             * gdk/gdkdrawable.[ch] gdk/gdkprivate.h gdk/gdkwindow.[ch]
      	 gdk/x11/gdkprivate-x11.h:
      	 Remove X specific stuff from GdkDrawable and GdkWindowPrivate -
      	 add ->klass and ->klass_data fields. The klass_data
      	 field points to an auxilliary structure that is
      	 windowing system dependent.
      
             * gdk/gdkfont.c: Make most of the measurement functions
      	 simply wrappers around gdk_text_extents().
      
             * gdk/gdkfont.c gdk/gdkprivate.h gdk/x11/gdkfont-x11.c: Add a
      	 _gdk_font_strlen() function that hides the weird
      	 behavior in gtk+-1.[02] where a string is interpreted
      	 differently for 8-bit and 16-bit fonts.
      
             * gdk/gdkevents.c: Add a new function gdk_event_button_generate()
      	 to store common code for synthesizing double/triple
      	 press events.
      
             * gdk/gdkgc.[ch]: Virtualize in the same way as gdkdrawable.h.
      	 Make all the function that modify an existing GC
      	 simply wrappers around gdk_gc_set_values().
      
             * gdk/gdkcc.[ch]: Moved into x11/ directory in preparation
      	 for throwing out later.
      
             * gdk/gdkfont.c gdk/gdkimage.c gdk/gdkcolor.c: Change GdkFontPrivate,
      	 GdkImagePrivate and GdkColormapPrivate to have a
      	 windowing system dependent part (GdkFontPrivateX etc.)
      	 that "derives" from the system-independent part.
      
             * configure.in gdk/x11/Makefile.in gdk/x11/gdkinput*.c:
      	 Got rid of the included-source-files for XInput in
      	 favor of automake conditionals. (Which didn't exist
      	 when XInput support was originally added.)
      
             * gdk/gdkrgb.c: Remove the visual id from the debugging
      	 statements since that is X11 specific; print out
      	 type/depth info instead.
      e9b6bfcc
    • Jonathan Blandford's avatar
      Final patch from Arjan. Seems to do progressive loading. · cd02981b
      Jonathan Blandford authored
      1999-11-08  Jonathan Blandford  <jrb@redhat.com>
      
      	* src/io-ras.c (image_load_increment): Final patch from Arjan.
      	Seems to do progressive loading.
      cd02981b
    • Michael Fulbright's avatar
      Fixed so we do not create a separate pixel buffer when reading in image - · ce83490d
      Michael Fulbright authored
      1999-11-08  Michael Fulbright  <drmike@redhat.com>
      
      	* src/io-pnm.c image_load (): Fixed so we do not create a separate
      	pixel buffer when reading in image - we reuse the pixel data in
      	the GdkPixbuf structure instead.
      ce83490d
    • Michael Fulbright's avatar
      Added support for ASCII PNM files. Note I haven't tested loaded ASCII PBM · 6ef7f093
      Michael Fulbright authored
      1999-11-08  Michael Fulbright  <drmike@redhat.com>
      
      	* src/io-pnm.c pnm_read_ascii_scanline (): Added support for
      	ASCII PNM files. Note I haven't tested loaded ASCII PBM files because
      	I can't seem to find a utility to convert into this format.
      	Next is to add progressive loading support for the PNM format.
      6ef7f093
    • Federico Mena Quintero's avatar
      Finished detailed explanation of the width, height, x, and y setting and · e11f22b5
      Federico Mena Quintero authored
      1999-11-07  Federico Mena Quintero  <federico@redhat.com>
      
      	* doc/tmpl/gnome-canvas-pixbuf.sgml: Finished detailed explanation
      	of the width, height, x, and y setting and pixels arguments.
      e11f22b5
    • Tor Lillqvist's avatar
      New font private structures, related to fontsets. · 0ad4aa57
      Tor Lillqvist authored
      1999-11-07  Tor Lillqvist  <tml@iki.fi>
      
      * gdk/win32/gdkprivate.h: New font private structures, related to
      fontsets.
      
      * gdk/win32/gdkfont.c: New functions gdk_font_list_new() and
      gdk_font_list_free(). On X11, will just be wrappers to
      XListFonts() and XFreeFontNames(). On Win32, the code previously
      in gtkfontsel.c is now here.
      
      New function gdk_font_xlfd_create(). On X11 will get the FONT
      property of the font (for GDK_FONT_FONTs), or call
      XBaseFontNameListOfFontSet (for GDK_FONT_FONTSETs), on Win32
      builds a XLFD style name from the font information in the LOGFONT
      struct(s).
      
      New function gdk_font_xlfd_free(), which correspondingly frees the
      string returned by gdk_font_xlfd_create().
      
      Implement fontsets on Win32. Add a function that iterates over a
      wide char string and calls a callback function for each substring
      of wide chars from the same Unicode subrange (and thus probably
      available in the same real font).
      
      Improve the XLFD emulation a bit.
      
      * gdk/win32/gdkim.c (gdk_nmbstowchar_ts): Small bugfix.
      
      * gdk/win32/gdkevents.c: Workaround for suspected bug on Win2k
      Beta3, WM_IME_CHAR messages don't seem to contain the composed
      multi-byte char as with the Active IMM on Win9x. Oh well, handle
      WM_IME_COMPOSITION with GCS_RESULTSTR instead, use
      ImmGetCompositionStringW() to get the composed Unicode chars.
      
      * gdk/win32/gdkgc.c
      * gdk/win32/gdkdraw.c: Changes needed because of the font private
      struct changes.
      
      * gdk/win32/gdk.def: Add the new functions.
      0ad4aa57
  2. 05 Nov, 1999 7 commits
  3. 04 Nov, 1999 12 commits
    • Tor Lillqvist's avatar
      Don't define HAVE_DIMM_H if MSC, as you have to get the Platform SDK to · f527b890
      Tor Lillqvist authored
      1999-11-04  Tor Lillqvist  <tml@iki.fi>
      
      * config.h.win32: Don't define HAVE_DIMM_H if MSC, as you have to
      get the Platform SDK to get <dimm.h>.
      
      * gdk/win32/gdkevents.c: More event handling fixes and
      simplification. Never generate motion events with is_hint true. We
      used to do that on bogus grounds earlier. Windows sends
      WM_MOUSEMOVE messages on button events even if the mouse hasn't
      moved, ignore these.
      
      * gdk/win32/gdkfont.c: Load all fonts as (pretended) fontsets.
      
      * gdk/win32/gdkglobals.c
      * gdk/win32/gdkprivate.h: Define a typedef for the pointer to
      the TrackMouseEvent function, and use it.
      
      * gdk/win32/gdkwindow.c: Terminate widechar string with a zero
      char before calling WideCharToMultiByte in order to get a string
      for the window title.
      
      * gdk/win32/gdkdnd.c: Some more random hacking, ifdeffed out.
      
      * gdk/win32/gdk.def: Remove obsolete functions.
      
      * gdk/win32/makefile.{cygwin,msc}: Remove gdkcompat.{o,obj}. Add
      /nodefaultlib and /defaultlib switches.
      
      * gtk/gtkrc.c: s/gwin_getlocale/g_win32_getlocale/.
      f527b890
    • Arturo Espinosa's avatar
      More docs work - Federico · 9d8da16e
      Arturo Espinosa authored
      9d8da16e
    • Jonathan Blandford's avatar
      added the update_func ability · 76f716ce
      Jonathan Blandford authored
      1999-11-04  Jonathan Blandford  <jrb@redhat.com>
      
      	* src/io-gif.c (gif_get_lzw): added the update_func ability
      76f716ce
    • Havoc Pennington's avatar
      In docs, explain what a dither offset is for. · 085a27d3
      Havoc Pennington authored
      1999-11-04  Havoc Pennington  <hp@pobox.com>
      
      * src/gdk-pixbuf-render.c (gdk_pixbuf_render_to_drawable): In
      docs, explain what a dither offset is for.
      (gdk_pixbuf_render_to_drawable_alpha): Explain why you would use
      this function vs. gdk_pixbuf_render_to_drawable().
      085a27d3
    • Havoc Pennington's avatar
      Use libart-config correctly; find gnome-config separately. Fix GNOME_LIBS · 38abc0de
      Havoc Pennington authored
      1999-11-04  Havoc Pennington  <hp@pobox.com>
      
      * configure.in: Use libart-config correctly; find gnome-config
      separately. Fix GNOME_LIBS to be correct in "no gnome installed
      yet" case.
      
      * src/Makefile.am: Link to GNOME_LIBS instead of a hardcoded
      library list.
      
      Patch untested in the inside-gnome-libs case, I need to commit
      then check out to the gnome-libs I'm using.
      38abc0de
    • Michael Fulbright's avatar
      Add update_func callback. Call updated callback when new graphic data · 4107506f
      Michael Fulbright authored
      1999-11-04  Michael Fulbright  <drmike@redhat.com>
      
      	* src/io-jpeg.c (image_begin_load): Add update_func callback.
      	* src/io-jpeg.c (image_load_increment): Call updated callback when
      	new graphic data decoded.
      4107506f
    • Jonathan Blandford's avatar
      fix .tiff loader. · 5d0e9b4a
      Jonathan Blandford authored
      add a testcase for the "updated_area"
      5d0e9b4a
    • Jonathan Blandford's avatar
      handle the actual update. add a update_func callback. add a update_func · d0ed72ee
      Jonathan Blandford authored
      1999-11-04  Jonathan Blandford  <jrb@redhat.com>
      
      	* src/gdk-pixbuf-loader.c (gdk_pixbuf_loader_update): handle the
      	actual update.
      	* src/io-png.c (image_begin_load): add a update_func callback.
      	* src/io-gif.c (image_begin_load): add a update_func callback.
      	* src/io-tiff.c (image_begin_load): add a update_func callback.
      d0ed72ee
    • Federico Mena Quintero's avatar
      Populated. · 56730502
      Federico Mena Quintero authored
      1999-11-04  Federico Mena Quintero  <federico@redhat.com>
      
      	* doc/tmpl/gdk-pixbuf.sgml: Populated.
      
      	* doc/tmpl/refcounting.sgml: Populated.
      
      	* doc/tmpl/file-loading.sgml: Populated.
      
      	* src/gdk-pixbuf.c: Added documentation comments.
      
      	* src/gdk-pixbuf-io.c (gdk_pixbuf_new_from_file): Added
      	documentation comments.
      56730502
    • Federico Mena Quintero's avatar
      Finished integrating the documentation framework. · e9cebcd3
      Federico Mena Quintero authored
      1999-11-04  Federico Mena Quintero  <federico@redhat.com>
      
      	* doc/: Finished integrating the documentation framework.
      e9cebcd3
    • Arturo Espinosa's avatar
      Eek - Federico · 6a3f4d81
      Arturo Espinosa authored
      6a3f4d81
    • Arturo Espinosa's avatar
  4. 03 Nov, 1999 15 commits