1. 04 Aug, 2001 1 commit
    • Alexander Larsson's avatar
      Add #ifdef HAVE_WINTAB around wintab.h include. · 81cfd5c9
      Alexander Larsson authored
      2001-08-04 Alexander Larsson <alexl@redhat.com>
      
      	* gdk/win32/gdkinput.c:
      	Add #ifdef HAVE_WINTAB around wintab.h include.
      
      	* gtk/gtk.def:
      	Removed marshals that have been moved to glib.
      	Commented out plug and socket. They didn't compile for me
      	on win32.
      81cfd5c9
  2. 20 Jul, 2001 1 commit
    • Hans Breuer's avatar
      gdk_device_get_history moved to gdk/gdkinput.c like the other backends · 4c5b559e
      Hans Breuer authored
      2001-07-20  Hans Breuer  <hans@breuer.org>
      
      	* gdk/win32/gdkinput-win32.c : gdk_device_get_history moved to
      	gdk/gdkinput.c like the other backends
      
      	* gdk/win32/gdkinput-win32.h :
      	* gdk/win32/gdkinput.c :
      	* gdk/win32/gdkvisual-win32.c :
      	* gdk/win32/gdkwin32.h : mechanical adaption to GdkDevice and
      	GdkVisual GObjectification. UNTESTED for pen-devices because
      	I simply have none.
      
      	* gdk/gdk.def :
      	* gtk/gtk.def : updated externals
      
      	* gtk/gtkiconfactory.c :
      	* gtk/gtkoldeditable.c : GError *error needs to be initialized (= NULL)
      	before passing &error to functions to avoid strange crashes
      
      	* gtk/gtkcontainer.c (gtk_container_real_set_focus_child) : is static
      
      	* gtk/gtkwidget.c (gtk_widget_get_child_visible): use g_return_val_if_fail
      
      	* gtk/makefile.msc.in : updated
      4c5b559e
  3. 04 Mar, 2001 1 commit
    • Owen Taylor's avatar
      Doc fixes · c374cd29
      Owen Taylor authored
      Sat Mar  3 16:59:16 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* gdk/gdkpango.h gdk/x11/gdkwindow-x11.c: Doc fixes
      
      	* gdk/win32/gdkinput.c (gdk_device_get_axis): Remove doc
      	comment. Won't do to have duplicated doc comments between
      	the platform subdirs.
      c374cd29
  4. 30 Jul, 2000 1 commit
    • Tor Lillqvist's avatar
      Add makefile.mingw.in to EXTRA_DIST. · 471396fd
      Tor Lillqvist authored
      2000-07-30  Tor Lillqvist  <tml@iki.fi>
      
      	* gdk/Makefile.am: Add makefile.mingw.in to EXTRA_DIST.
      
      	* gdk/win32/gdkevents-win32.c (gdk_events_init, gdk_events_queue):
      	Remove the g_pipe_readable_msg stuff. Not needed with new GLib
      	GIOChannel implementation.
      
      	* gdk/win32/gdkinput.c
      	* gdk/win32/gdkpango-win32.c: Update license name here, too.
      
      	* gdk/win32/gdkwin32id.c (gdk_win32_handle_table_lookup): Fix
      	definition to match prototype.
      
      	* gtk/makefile.mingw.in: Add libiconv CFLAGS and LIBS.
      471396fd
  5. 25 Jul, 2000 1 commit
    • Tor Lillqvist's avatar
      Include the build directory. · 5ac61d3e
      Tor Lillqvist authored
      2000-07-25  Tor Lillqvist  <tml@iki.fi>
      
      	* Makefile.am: Include the build directory.
      
      	* configure.in: Generate build/Makefile and build/win32/Makefile.
      
      	* config.h.win32: Add USE_GMODULE and USE_MMX for gdk-pixbuf.
      
      	* gdk/gdk.def
      	* gtk/gtk.def: Updates.
      
      	* gdk/makefile.mingw.in: Define GDK_COMPILATION. Link with
      	PANGOWIN32_LIBS and gdk_pixbuf.
      
      	* gdk/win32: Compiles, but no doubt doesn't work at all.
      
      	* gdk/win32/makefile.mingw.in: Define GDK_COMPILATION.
      
      	* gdk/win32/gdkinput.c: New file, temporarily.
      
      	* gdk/win32/gdkinput-win32.h: New file
      
      	* gdk/win32/gdkinputprivate.h: Remove.
      
      	* gtk/gtkrc.[ch] (gtk_win32_get_installation_directory): Renamed and
      	made externally visible.
      5ac61d3e
  6. 03 Jul, 2000 1 commit
    • Owen Taylor's avatar
      Ignore calls with <= width or height. · 01212ce1
      Owen Taylor authored
      Mon Jul  3 14:24:16 2000  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkwidget.c (gtk_widget_draw): Ignore calls with
      	<= width or height.
      
      	* gtk/gtktable.c (gtk_table_attach): Fix missed merge
      	from 1.2 for parent/child states.
      
      	* gdk/gdkgc.c (gdk_gc_set_rgb_fg/bg_color): Fix a couple
      	of typos.
      
      	* gdk/gdkevents.[ch]: Remove press/xtilt/ytilt fields of
      	event structures, replace with a generic axes field. Replace
      	deviceid/source with GdkDevice *device.
      
      	* gdk/gdkevents.[ch] (gdk_event_get_axis): Add function
      	to extract particular axis use value from event. (Also
      	can be used for normal X/Y.)
      
      	* gdk/gdkinput.h gdk/x11/gdkinput*: Major revision;
      	allow for arbitrary number of axes, namespace everything
      	as gdk_device_*. Replace guint32 deviceid with GdkDevice *
      	everywhere.
      
      	* gdk/x11/{gdkmain-x11.c,gdkevent-x11.c,gdkinput*}:
      	Get rid of the gdk_input_vtable setup if favor of simply
      	defining the functions in gdkinput-none/gxi/xfree.c in
      	a similar fashion to the way that the port structure is
      	done.
      
      	* gtk/gtkdnd.c: Fix fields of synthesized button press event
      	for new event structures.
      
      	* gtk/gtkinputdialog.c gtk/testinput.c: Revise to match
      	new device interfaces.
      01212ce1
  7. 20 Jun, 2000 1 commit
    • Havoc Pennington's avatar
      Make this compile without framebuffer enabled · df4fc367
      Havoc Pennington authored
      2000-06-20  Havoc Pennington  <hp@redhat.com>
      
      * modules/linux-fb/Makefile.am: Make this compile
      without framebuffer enabled
      
      * gdk/linux-fb/Makefile.am: Add conditional to not build
      framebuffer unless specified in configure
      
      * gdk/gdkdraw.c (gdk_draw_drawable): Fix bug where I was getting
      the size of the target instead of source if -1 was passed for
      width/height
      
      * gdk/x11/gdkgeometry-x11.c (gdk_window_compute_position): Fix
      width/height confusion.
      
      2000-06-19  Havoc Pennington  <hp@redhat.com>
      
      * gdk/x11/gdkx.h (GDK_WINDOW_XWINDOW): change this to be
      GDK_DRAWABLE_XID. In the future, we probably want to make it
      faster with G_DISABLE_CHECKS turned on.
      
      2000-06-14  Havoc Pennington  <hp@redhat.com>
      
              * gdk/Makefile.am: add gdkpixmap.c
      
      	* gdk/gdk.c: s/gdk_window_init/_gdk_windowing_window_init/
      	s/gdk_image_init/_gdk_windowing_image_init
      
      	* gdk/gdkcolor.c: make ref/unref compat wrappers for GObject
      	ref/unref
      
      	* gdk/gdkcolor.h: make GdkColormap a GObject subclass
      
      	* gdk/gdkcompat.h: remove GdkWindowType compat, since
      	GdkWindowType is now non-deprecated;
      	change gdk_window_get_type() compat to be
      	gdk_window_get_window_type().
      
      	* gdk/gdkdnd.h: make GdkDragContext a GObject.
      
      	* gdk/gdkdraw.c, gdk/gdkdraw.h: Convert GdkDrawable to a pure
      	virtual GObject. Make all functions call into the vtable.
      	Move gdk_image_put() guts in here. Remove GdkDrawableType
      	and gdk_drawable_get_type(), these are now GdkWindow-specific.
      	draw_image, get_depth, get_size, set_colormap, get_colormap,
      	get_visual added to the vtable.
      
      	* gdk/gdkgc.h, gdk/gdkgc.c: Convert GdkGC to a pure virtual
      	GObject. Virtualize everything.
      	(gdk_gc_new_with_values): remove check for destroyed window,
      	because now GdkWindow::create_gc will check this.
      	(gdk_gc_set_values): New function to set GC values, this
      	was already implemented but wasn't in the header
      
      	* gdk/gdkimage.h, gdk/gdkimage.c: Convert GdkImage to a GObject.
      
      	* gdk/gdkinternals.h: Remove _gdk_window_alloc(), remove
      	_gdk_window_draw_image(), remove _gdk_windowing_window_class,
      	remove _gdk_window_class; add _gdk_window_impl_get_type() and
      	_gdk_pixmap_impl_get_type(). Rename gdk_window_init to
      	_gdk_windowing_window_init, rename gdk_image_init to
      	_gdk_windowing_image_init.
      
      	* gdk/gdkpango.c: Reflect GObject-ification of PangoContext.
      	(gdk_draw_layout): Remove check for destroyed window,
      	because all the drawable methods already check it.
      
      	* gdk/gdkpixmap.h, gdk/gdkpixmap.c: Convert GdkPixmap to GObject.
      	Add gdkpixmap.c which contains implementation of GdkDrawable
      	virtual table (by chaining to a platform-specific implementation
      	object).
      
      	* gdk/gdkprivate.h: Remove GDK_IS_WINDOW, GDK_IS_PIXMAP,
      	GDK_DRAWABLE_DESTROYED. Add GDK_WINDOW_DESTROYED. Replace
      	GDK_DRAWABLE_TYPE with GDK_WINDOW_TYPE. Remove GdkDrawablePrivate,
      	GdkWindowPrivate, GdkImageClass, GdkImagePrivate, GdkGCPrivate,
      	GdkColormapPrivate.
      
      	* gdk/gdktypes.h: #include <glib-object.h>
      
      	* gdk/gdkwindow.h, gdk/gdkwindow.c: Convert GdkWindow to GObject.
      	Move most functionality to platform-specific implementation
      	object. GdkWindow itself now handles the backing store, then
      	chains to the platform-specific implementation.
      	(gdk_window_get_window_type): return GdkWindowType of the window.
      	(gdk_window_peek_children): New routine, returns the children of
      	a GdkWindow
      	(gdk_window_get_children): Was in X11-specific code and did
      	XQueryTree. Changed to simply return a copy of window->children;
      	so it can go in cross-platform code.
      
      	* gdk/x11/Makefile.am: fix broken MKINSTALLDIRS path
      
      	* gdk/x11/gdkcolor-x11.c: implement X-specific parts of
      	GdkColormap; just changed to use the new private data instead
      	of casting to GdkColormapPrivate.
      
      	* gdk/x11/gdkcursor-x11.c: added a couple typechecks to
      	gdk_cursor_new().
      
      	* gdk/x11/gdkdnd-x11.c: Change the way we access private fields
      	(private data member in the GObject).
      	(xdnd_manager_source_filter): Function had broken
      	error handling, fix it (use gdk_error_trap_push).
      
      	* gdk/x11/gdkdrawable-x11.c: This file now implements
      	a base class for GdkWindowImplX11/GdkPixmapImplX11. This
      	base class is purely for the convenience of the X port,
      	and not part of the interface to cross-platform GDK.
      
      	* gdk/x11/gdkevents-x11.c: Reflect various renamings.
      
      	* gdk/x11/gdkgc-x11.c: Implement a subclass of GdkGC that's
      	specific to X, and returned by the create_gc virtual method
      	of GdkDrawableImplX11.
      	(gdk_x11_gc_set_dashes): Change this to take an array of gint8
      	rather than gchar, this was also changed in the GdkGC vtable.
      	(gdk_x11_gc_values_to_xvalues): If GdkGCValues is NULL, or the
      	mask is 0, return immediately, instead of checking every flag.
      	This is faster, and keeps us from segfaulting if values is NULL
      	and the mask contains some nonzero flags.
      
      	* gdk/x11/gdkgeometry-x11.c: deal with all the rearranging of
      	GdkWindow.
      
      	* gdk/x11/gdkglobals-x11.c: change type of grab window, since
      	GdkWindowPrivate is gone.
      
      	* gdk/x11/gdkim-x11.c: rename things that got renamed.
      
      	* gdk/x11/gdkimage-x11.c: implement in terms of GObject, and
      	remove the image_put stuff that got transferred to GdkDrawable.
      
      	* gdk/x11/gdkinput.c: renamings
      
      	* gdk/x11/gdkmain-x11.c: #include <pango/pangox.h>
      
      	* gdk/x11/gdkpixmap-x11.c: GObject conversion
      
      	* gdk/x11/gdkprivate-x11.h: indentation fixes
      
      	* gdk/x11/gdkproperty-x11.c: renamings
      
      	* gdk/x11/gdkselection-x11.c: renamings
      
      	* gdk/x11/gdkwindow-x11.c: Restructuring and renaming; this now
      	implements the platform-specific "impl" object.
      	Moved gdk_window_get_children to gdk/gdkwindow.c
      
      	* gdk/x11/gdkx.h: Remove all the private structs and private datas
      	that no longer exist. Add declaration of GdkGCX11 object here.
      	Fix all the macros to still work.
      
      	* gtk/gtk-boxed.defs: Remove GtkStyle, GdkColormap, GdkWindow,
      	GdkDragContext from the boxed types since they are now GObjects.
      
      	* gtk/gtkstyle.h, gtk/gtkstyle.c: Converted GtkStyle to a GObject,
      	moved xthickness/ythickness into the instance. GtkStyleClass
      	functions are now in the standard vtable for GtkStyle, so you have
      	to create a GObject subclass to write a theme engine.
      	(gtk_style_copy): fixed a leaked PangoFontDescription
      	(gtk_style_init): renamed gtk_style_realize, so gtk_style_init
      	can be the standard GObject function.
      
      	* Throughout GTK:
      	s/style->klass->[xy]thickness/style->[xy]thickness
      	s/pango_layout_unref/g_object_unref/
      
      	* gtk/gtkrc.h, gtk/gtkrc.c: Converted GtkRcStyle to a GObject.
      
      	* gtk/gtksocket.c: Use gdk_window_get_user_data() instead of
      	accessing GDK internals.
      
      	* gtk/gtkwidget.c: Use gdk_window_peek_children() instead of
      	accessing GDK internals.
      df4fc367
  8. 14 Mar, 2000 1 commit
  9. 08 Nov, 1999 1 commit
    • 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
  10. 03 Oct, 1999 2 commits
    • Owen Taylor's avatar
      Fix a reference to window_private->destroyed. · f903bdf1
      Owen Taylor authored
      Sun Oct  3 18:13:44 1999  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkwidget.c (gtk_reset_shapes_recurse):
      	Fix a reference to window_private->destroyed.
      
      	* gtk/gtkplug.c (gtk_plug_realize): Fix up a direct
      	(ugly) setting of an internal GdkWindow member to use
      	a _slightly_ cleaner macro.
      
      	* gdk/gdkprivate.h: Split GdkWindowPrivate into
      	GdkDrawablePrivate and GdkWindowPrivate.
      	Add extra macros for accessing GDK_DRAWABLE_ components.
      
      	* *.[ch]: Massive adjustments for the above, use the
      	new macros in a lot of places.
      f903bdf1
    • Owen Taylor's avatar
      Include gdk/gdkdrawable.h with gdk/ prefix. (Pointed out by · ef088b50
      Owen Taylor authored
      Sun Oct  3 14:16:23 1999  Owen Taylor  <otaylor@redhat.com>
      
      	* gdk/gdkdrawable.h: Include gdk/gdkdrawable.h with
      	gdk/ prefix. (Pointed out by chak@is.tsukuba.ac.jp)
      
      	* x11/: create x-specific subdirectory.
      ef088b50
  11. 01 Oct, 1999 1 commit
    • Owen Taylor's avatar
      Started · 637a466d
      Owen Taylor authored
      Fri Oct  1 18:03:36 1999  Owen Taylor  <otaylor@redhat.com>
      
              * docs/Changes-1.4.txt: Started
      
      	* gtk/Makefile.am (gdk_headers): Include all the new headers.
      
              * gdk/*.h gdk/*.c: Split gdk.h into lots of itty-bitty little pieces.
      
      	* gdk/gdkprivate.h gdk/gdkcc.c: Moved GdkColorContext private
      	into C file.
      
      	* gdkinput.h gdkinputprivate.h - renamed the internal gdkinput
      	header to gdkinputprivate.h.
      
      	* gdk/gdk.h gdk/gdk.c: Removed gdk_time* functions which have been
      	unused since before 1.2.
      637a466d
  12. 24 Feb, 1999 1 commit
  13. 30 Nov, 1998 1 commit
    • Elliot Lee's avatar
      I submitted this patch twice to gtk-devel-list, and received no comments, · 060978e0
      Elliot Lee authored
      
      
      I submitted this patch twice to gtk-devel-list, and received no comments, so
      am committing it.  Although not exhaustively tested, I have been using this
      gtk+ for a week w/o problems, and I did read the code to ensure that nothing
      ever writes to these data structures. If by chance people encounter SEGV's in
      gtk+ code that is setting values in global data structures, this patch could
      be a possible culprit.
      
      1998-11-30  Elliot Lee  <sopwith@cuc.ml.org>
      
      	* {gdk,gtk}/*.c: Make read-only data structures "static const" to
      	allow them to be shared, mainly including (but not limited to) the
      	GtkTypeInfo structures for each class.
      
      	* gtk/gtkfilesel.c: Add /net to the "leave me alone" directory listing.
      060978e0
  14. 24 Nov, 1998 1 commit
    • Jeff Garzik's avatar
      Removed DEFS "+=" mess that breaks recent automakes. INCLUDES is the · 91d99f89
      Jeff Garzik authored
      
      * gdk/Makefile.am, gtk/Makefile.am:
      
              Removed DEFS "+=" mess that breaks recent automakes.
              INCLUDES is the correct way to add to CFLAGS from Makefile.am.
      
      * gdk/gdk.c, gdk/gdkglobals.c, gdk/gdkimage.c, gdk/gdkinput.c,
      gdk/gdkpixmap.c, gdk/gdkthreads.c, gdk/gdkwindow.c,
      gdk/gxid_lib.c, gtk/fnmatch.c, gtk/gtkclist.c, gtk/gtkmain.c,
      gtk/testthreads.c:
      
              Include "config.h" instead of "../config.h".
      
              Now that DEFS works again, automake will automatically pass us
              the location of config.h in -I.
      91d99f89
  15. 04 Jul, 1998 1 commit
  16. 03 May, 1998 1 commit
    • Owen Taylor's avatar
      configure.in acheader.h gdk/gdkwindow.c Check for Shape extension both on · 4851efe2
      Owen Taylor authored
      Sun May  3 13:38:22 1998  Owen Taylor  <otaylor@gtk.org>
      
      	* configure.in acheader.h gdk/gdkwindow.c
      	Check for Shape extension both on the client and server
      	side. (And, more importantly, check for the shape extension
      	so we may include -lXext even when compiling with --disable-xshm)
      
      	Don't set override_redirect on all shaped windows. It isn't
      	necessary.
      
      	* gdk/gdkwindow.c: Set ->colormap to NULL for root
      	and foreign windows. Use this to check if we
      	need to get the colormap from X.
      
      Fri May  1 22:32:47 1998  Owen Taylor  <otaylor@gtk.org>
      
      	* gtk/gtkbutton.c (gtk_button_paint): Draw the areas
      	between the default and the button always in GTK_STATE_NORMAL.
      
      	* gtk/gtkrange.c (gtk_range_style_set): Added a style_set
      	callback.
      
      Fri May  1 16:40:57 1998  Owen Taylor  <otaylor@gtk.org>
      
      	* gdk/gdkpixmap.c (gdk_pixmap_colormap_create_from_xpmp[_d]):
      	  Fix a buffer overflow on pixmaps that claim to have
      	  more than 31 characters per pixel.
      
      	  (gdk_pixmap_read_string): Don't wrap around strings longer
       	  than half of address space ;-)
      
      	* gtk/gtk[vh]ruler.c gtk/gtkinputdialog.c: Expand some buffers
      	that were used for printing integers.
      
      	* */* (almost):
      
      	Style: All
      	  int foo () { ... }
      	changed to
      	  int foo (void) { ... }
      
      ^^^^^^^ This is why some many files changed
      
      	Even where there were proper prototypes elsewhere.
      
      	* gdk/gxid.c (handle_claim_device): Some extra checks.
      	It isn't safe against being fed bad X id's, but at
      	least it should be safe against deleting all your
      	files.
      4851efe2
  17. 13 Apr, 1998 1 commit
  18. 26 Jan, 1998 1 commit
    • Tim Janik's avatar
      added a bunch of checks for window != NULL and private->destroyed. (don't · f734007a
      Tim Janik authored
      Mon Jan 26 02:15:29 1998  Tim Janik  <timj@gimp.org>
      
              * gdk/gdkdraw.c:
              * gdk/gdkgc.c:
              * gdk/gdkimage.c:
              * gdk/gdkinput.c:
              * gdk/gdkpixmap.c:
              * gdk/gdkproperty.c:
              * gdk/gdkselection.c:
              * gdk/gdkwindow.c: added a bunch of checks for window != NULL and
                private->destroyed.
      (don't trust this cvs commit message, i didn't modify that many files!)
      f734007a
  19. 18 Dec, 1997 1 commit
  20. 24 Nov, 1997 1 commit