1. 27 Feb, 2012 1 commit
  2. 09 Feb, 2011 1 commit
  3. 02 Dec, 2010 1 commit
  4. 19 Oct, 2010 1 commit
  5. 15 Oct, 2010 1 commit
  6. 04 Oct, 2010 1 commit
  7. 02 Oct, 2010 2 commits
  8. 01 Oct, 2010 1 commit
  9. 26 Sep, 2010 2 commits
  10. 10 Aug, 2010 3 commits
  11. 10 Jul, 2010 1 commit
  12. 26 Jun, 2010 1 commit
  13. 04 Apr, 2010 1 commit
  14. 19 Feb, 2010 1 commit
  15. 22 Jun, 2008 1 commit
    • Johan Dahlin's avatar
      Include "config.h" instead of <config.h> Command used: find -name · d97cdbdf
      Johan Dahlin authored
      2008-06-21  Johan Dahlin  <jdahlin@async.com.br>
          * *.[ch]: Include "config.h" instead of <config.h>
          Command used:
          find -name \*.[ch]|xargs perl -p -i -e 's/^#include <config.h>/#include "config.h"/g'
          Rubberstamped by Mitch and Tim
      svn path=/trunk/; revision=20669
  16. 11 Sep, 2005 1 commit
    • Matthias Clasen's avatar
      New function to avoid pointless strdups when creating atoms from static · 797c2e6a
      Matthias Clasen authored
      2005-09-11  Matthias Clasen  <mclasen@redhat.com>
      	* gdk/gdk.symbols:
      	* gdk/gdkproperty.h:
      	* gdk/x11/gdkproperty-x11.c (gdk_atom_intern_static_string):
      	New function to avoid pointless strdups when creating atoms
      	from static strings.
      	* gdk/x11/gdkdisplay-x11.c:
      	* gdk/x11/gdkdnd-x11.c:
      	* gdk/x11/gdkevents-x11.c:
      	* gdk/x11/gdkmain-x11.c:
      	* gdk/x11/gdkproperty-x11.c:
      	* gdk/x11/gdkselection-x11.c:
      	* gdk/x11/gdkwindow-x11.c: Use gdk_atom_intern_static_string()
      	where appropriate.
  17. 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
      	* gdk/*.c, gdk/x11/*.c: Include gdkalias.h after the other
      	headers, include gdkaliasdef.c at the bottom.
  18. 01 Mar, 2005 1 commit
    • Matthias Clasen's avatar
      gdk/gdkkeyuni.c gdk/gdkpixbuf-drawable.c gdk/gdkrgb.c gdk/x11/gdkdnd-x11.c · 6da29b43
      Matthias Clasen authored
      2005-03-01  Matthias Clasen  <mclasen@redhat.com>
      	* gdk/gdkkeyuni.c
      	* gdk/gdkpixbuf-drawable.c
      	* gdk/gdkrgb.c
      	* gdk/x11/gdkdnd-x11.c
      	* gdk/x11/gdkevents-x11.c
      	* gdk/x11/gdkproperty-x11.c
      	* gdk/x11/gdkvisual-x11.c
      	* gdk-pixbuf/gdk-pixbuf.c
      	* gtk/gtkaction.c
      	* gtk/gtkbindings.c
      	* gtk/gtkcolorbutton.c
      	* gtk/gtkcombo.c
      	* gtk/gtkcontainer.c
      	* gtk/gtkfilechooserdefault.c
      	* gtk/gtkfilesel.c
      	* gtk/gtkgamma.c
      	* gtk/gtkiconview.c
      	* gtk/gtkinputdialog.c
      	* gtk/gtkitemfactory.c
      	* gtk/gtkmenu.c
      	* gtk/gtktextview.c
      	* gtk/gtktooltips.c
      	* gtk/gtktreedatalist.c
      	* gtk/gtkuimanager.c
      	* gtk/tree_minus.xpm
      	* gtk/tree_plus.xpm
      	* gtk/xdgmime/xdgmime.c
      	* gtk/xdgmime/xdgmime.h:
      	Move constant data to .rodata.
  19. 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
  20. 17 Nov, 2003 1 commit
    • Matthias Clasen's avatar
      Fix for #119555, Peter Zelesny: · d3b444a4
      Matthias Clasen authored
      Tue Nov 18 00:12:55 2003  Matthias Clasen  <maclas@gmx.de>
      	Fix for #119555, Peter Zelesny:
      	* gdk/gdkdrawable.h: Declare gdk_drawable_copy_to_image.
      	* gdk/gdkdraw.c (gdk_drawable_copy_to_image): Make public
      	by removing the _ prefix.
      	* gdk/gdkdraw.c, gdk/gdkpixbuf-drawable.c, gdk/gdkpixmap.c,
      	gdk/gdkwindow.c: Adjust all callers.
  21. 08 Jun, 2003 1 commit
    • Soeren Sandmann's avatar
      swap G and B. Fixes (#114669) · d94c09a1
      Soeren Sandmann authored
      Sun Jun  8 18:27:14 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
      	* gdk/gdkpixbuf-drawable.c (G8fromRGB565): swap G and B.
      	Fixes (#114669)
  22. 03 Jun, 2003 1 commit
    • Owen Taylor's avatar
      #71597, reported by Morten Welinder · 84ebfb7e
      Owen Taylor authored
      Tue Jun  3 17:39:16 2003  Owen Taylor  <otaylor@redhat.com>
              #71597, reported by Morten Welinder
              * gdk/gdkpixbuf-drawable.c (rgb888amsb): Fix and simplify
              (Patch from Christian Petig)
              * gdk/gdkpixbuf-drawable.c (rgb{555,565}{a,}{msb,lsb}):
              Major rewrite of 555 and 565 conversion routines:
              - Move all the bit shifting into a small block of macros,
                eliminating much duplication of complicated arithmetic.
              - Get rid of 2-pixels at a time code, which was buggy,
                hard to maintain, caused unaligned accesses, and
                probably didn't actually perform any better.
              - Simplify cases where different data types were
                used for the little and big endian cases, use
                GUINT16_SWAP_LE_BE() where appropriate.
  23. 14 Sep, 2002 1 commit
  24. 13 Sep, 2002 1 commit
  25. 26 Jul, 2002 1 commit
    • Shivram U's avatar
      Check if depth of the source is not equal to the depth of the colormap · c8e242f1
      Shivram U authored
      Fri Jul 26 16:34:34 2002  Shivram U  <shivaram.upadhyayula@wipro.com>
      	* gdk/gdkpixbuf-drawable.c (gdk_pixbuf_get_from_drawable),
      	(gdk_pixbuf_get_from_image), (rgbconvert), (convert_real_slow):
      	Check if depth of the source is not equal to the depth of the colormap
      	passed. (#75597)
  26. 16 Jul, 2002 1 commit
  27. 03 Jun, 2002 1 commit
  28. 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
              * gdk/gdkscreen.[ch]: Add gdk_screen__* variants of functions
              like gdk_rgb_get_colormap() that used to get/list global
              * 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
              * 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.
  29. 13 Apr, 2002 1 commit
  30. 23 Feb, 2002 1 commit
    • Owen Taylor's avatar
      Fixes for AIX compilation from Miroslaw Dobrzanski-Neumann, #72182. · a504db9e
      Owen Taylor authored
      Fri Feb 22 18:36:45 2002  Owen Taylor  <otaylor@redhat.com>
      	Fixes for AIX compilation from Miroslaw Dobrzanski-Neumann,
      	* demos/gtk-demo/main.c gtk/gtktreeview.c gtk/gtktoolbar.c
      	gtk/gtkpaned.c gtk/gtkobject.c gtk/gtkcontainer.c
      	gtk/gtkcolorsel.c gtk/gtkcellrender.c gdk/x11/xsettings-client.h:
      	Squash trailing commas on enumerations.
      	* gdk/gdktypes.h: Drop GDK_RELEASE_MASK to 1 << 30 instead
      	of 1 << 31 to work around AIX compiler problem. (C standard
      	seems to imply that compiler is required to use an unsigned
      	type for the enum value in this case.)
      	* gdk/gdkpixbuf-drawable.c: Fix lvalue casts.
      	* gtk/gtkwindow.h: Fix use of enum types for bitfields ...
      	compilers may choose to use a signed type for bitfields.
  31. 25 Jan, 2002 1 commit
    • Federico Mena Quintero's avatar
      Merge from gdk-pixbuf stable. · 165e9702
      Federico Mena Quintero authored
      2002-01-25  Federico Mena Quintero  <federico@ximian.com>
      	Merge from gdk-pixbuf stable.
      	* gdk/gdkpixbuf-drawable.c (rgb565msb): Fixed the endianness
      	conversion --- swap the individual 16 bit values instead of taking
      	everying as a 32 bit value.
      	(rgb565lsb): Likewise.
      	(rgb555lsb): Likewise.
      	(rgb555msb): Likewise.
  32. 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
  33. 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
      	* 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
      	* 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.
  34. 26 Aug, 2001 1 commit
    • Havoc Pennington's avatar
      remove gtk_menu_* compat defines; these are already in gtkmenu.h, and the · eae09f4d
      Havoc Pennington authored
      2001-08-24  Havoc Pennington  <hp@pobox.com>
      	* gtk/gtkcompat.h: remove gtk_menu_* compat defines;
      	these are already in gtkmenu.h, and the copies
      	here were broken.
      	* gdk/gdkpixbuf-drawable.c (gdk_pixbuf_get_from_image):
      	special-case bitmaps to allow no colormap
      	(bitmap1): implement no-colormap bitmap-getting
      	(bitmap1a): implement no-colormap bitmap-getting to pixbuf with
      	(rgb8): indentation
      	(rgb1a, rgb1): change the way we read the data out of the image,
      	old way didn't seem to work quite right.
      	I'm pretty sure a lot of the rgbconvert code is still broken.
      	* gtk/gtkwindow.c (gtk_window_move_resize): move hints comparison
      	above position constraint (I really intended to do this before,
      	don't know what's up with that)
      	(gtk_XParseGeometry): shut up gcc
      	* gdk/gdkpixbuf-drawable.c (rgb1a): fix bug where "x1" was used
      	and "0" should have been. remove the attempted 4-bytes-at-once
      	optimization, it was totally broken.
  35. 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
      	* 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
      	* 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
      	* gdk/gdkwindow.c (gdk_window_get_clip_region): fix infinite loop
      	* 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
      	* 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
  36. 02 Feb, 2001 1 commit
    • Owen Taylor's avatar
      Make gdk_colormap_sync private since it was never exported in a header · a2d12994
      Owen Taylor authored
      Fri Feb  2 17:16:09 2001  Owen Taylor  <otaylor@redhat.com>
      	* gdk/x11/gdkcolor-x11.c (gdk_colormap_sync): Make
      	gdk_colormap_sync private since it was never exported
      	in a header file.
      	* gdk/x11/gdkcolor-x11.c (gdk_colormap_new): Fill in
      	colormap->colors[] for StaticGray, StaticColor colormaps.
      	* gdk/gdkpixbuf-drawable.c: Fix problems where image->bpp
      	was being used as if it was image->bits_per_pixel.
      	* gdk/gdkimage.h, gdk/x11/gdkimage-x11.c: Save the bits-per-pixel
      	for the image in the GdkImage structure since it isn't
      	reconstructable, and we need it to handle packed types
      	* gdk/win32/gdkimage-win32.c: Set image->bits_per_pixel. (I'm making
      	the assumption that on Win32 image->bits_per_pixel == image->depth,
      	* gdk/linux-fb/gdkimage-fb.c: Set image->bits_per_pixel.
      	* gdk/gdkrgb.c (gdk_rgb_select_conv): Exit with an informative
      	warning message if no converter can be found.