1. 11 Jul, 2000 1 commit
    • Tim Janik's avatar
      add xthickness and ythickness to GtkRcStyle and add the necessary tokens. · 64911ddc
      Tim Janik authored
      Tue Jul 11 06:38:42 2000  Tim Janik  <timj@gtk.org>
      
              * gtk/gtkrc.h: add xthickness and ythickness to GtkRcStyle and
              add the necessary tokens.
      
              * gtk/gtkrc.c (gtk_rc_style_init): properly initiality the rc style.
              (gtk_rc_style_to_style): copy thicknesses.
              (gtk_rc_init_style): apply thicknesses.
              (gtk_rc_parse_style): parse xthickness and ythickness.
      
              * gdk/x11/gdkdnd-x11.c: silence compiler in switch() statements.
      
              * gdk/x11/gdkwindow-x11.c (gdk_window_foreign_new):
              (gdk_window_new):
              (_gdk_windowing_window_init):
              * gdk/x11/gdkpixmap-x11.c (gdk_pixmap_foreign_new):
              (gdk_pixmap_create_from_data):
              (gdk_bitmap_create_from_data):
              (gdk_pixmap_new):
              * gdk/x11/gdkimage-x11.c (gdk_image_get):
              (gdk_image_new):
              * gdk/x11/gdkgc-x11.c (_gdk_x11_gc_new):
              * gdk/x11/gdkdnd-x11.c (gdk_drag_context_new):
              * gdk/x11/gdkcolor-x11.c (gdkx_colormap_get):
              (gdk_colormap_get_system):
              (gdk_colormap_new):
              * gdk/gdkwindow.c (gdk_window_init):
              * gtk/gtkstyle.c (gtk_style_new):
              * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_frame_done):
              * gdk/gdkpixmap.c (gdk_pixmap_init):
              * gtk/gtkrc.c (gtk_rc_style_new):
              use g_object_new() instead of g_type_create_instance() which
              is a private function for fundamental type implementations.
      
      Tue Jul 11 06:20:14 2000  Tim Janik  <timj@gtk.org>
      
              * io-gif.c (gdk_pixbuf__gif_image_load_animation):
              * gdk-pixbuf-data.c (gdk_pixbuf_new_from_data):
              * gdk-pixbuf-animation.c (gdk_pixbuf_animation_new_from_file):
              use g_object_new() instead of g_type_create_instance() which
              is a private function for fundamental type implementations.
      64911ddc
  2. 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
  3. 15 May, 2000 1 commit
    • Owen Taylor's avatar
      A bit of editing. · 386ae209
      Owen Taylor authored
      Fri May 12 18:46:51 2000  Owen Taylor  <otaylor@redhat.com>
      
      	* docs/Changes-1.4.txt: A bit of editing.
      
      	* gdk/gdkwindow.c (_gdk_window_clear_update_area)
      	* gdk/x11/gdkwindow-x11.c (gdk_window_hide): Add a function
      	to clear the update area for the window, and clear it
      	when hiding a window.
      
      	* gdk/gdkwindow.c (gdk_window_begin_paint_region): Ignore
      	if window destroyed.
      
      	* gdk/gdkwindow.c (gdk_window_end_paint): Likewise.
      
      	* gdk/gdkwindow.c gdk/x11/gdkwindow-x11.c gdk/gdkinternals.h: Move
      	gdk_window_destroy() to the generic code, since there was a lot of
      	window-system-independent logic it in. Add a function:
      
      	 _gdk_window_destroy()
      
      	to the internal API to destroy a window without unreferencing it.
      	Add a function:
      
      	 _gdk_windowing_window_destroy()
      
      	That does the windowing-system-dependent part of destroying
      	the window.
      
      Fri May 12 11:07:41 2000  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/testgtk.c: Fix various memory leaks of pixmaps.
      
      Fri May 12 11:06:10 2000  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkwidget.c docs/Changes-1.4.txt (gtk_widget_shape_combine_mask):
      	Make gtk_widget_shape_combine_mask() keep a reference count on
      	the pixmap since it keeps it around.
      
      Fri May 12 10:53:29 2000  Owen Taylor  <otaylor@redhat.com>
      
      	* gdk/gdkwindow.c (gdk_window_process_updates_internal): Fix refcount
      	leak.
      
      	* gdk/x11/gdkevents-x11.c (gdk_event_translate): Fix refcount
      	leak with event filters.
      
      Thu May 11 14:29:44 2000  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkdnd.c (gtk_drag_dest_set_internal): Remove the
      	signal handlers with the right data arguments. (Fixes
      	some warnings when a widget was repeatedly set as a drag
      	destination.)
      
      	* gdk/x11/gdkdnd-x11.c (gdk_window_register_dnd): Set data on the
      	window so we can avoid avoid setting the DND properties on the
      	toplevel window repeatedly.
      386ae209
  4. 28 Mar, 2000 1 commit
  5. 14 Mar, 2000 1 commit
  6. 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
  7. 03 Oct, 1999 1 commit
    • 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
  8. 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
  9. 28 Sep, 1999 1 commit
    • Federico Mena Quintero's avatar
      [ Merges from gtk-1-2 ] · 95b3f3e4
      Federico Mena Quintero authored
      Wed Sep  8 07:13:29 1999  Tim Janik  <timj@gtk.org>
      
      	* configure.in: fixed "GNU Make" check to pass with new make version
      	3.77.95.
      
      Fri Sep  3 16:04:41 1999  Tim Janik  <timj@gtk.org>
      
      	* gtk-config.in (--version): don't echo @GTK_VERSION@, but
      	@GTK_MAJOR_VERSION@.@GTK_MINOR_VERSION@.@GTK_MICRO_VERSION@, so the
      	AM_PATH_GTK() macros don't get confused by the -pre1.
      
      Thu Sep  2 19:02:37 1999  Owen Taylor  <otaylor@redhat.com>
      
      	* configure.in (REBUILD): Change check for perl5
      	  to check explicitely for v >= 5.002. (5.001
      	  does not work with our scripts.)
      
      Wed Aug 25 15:45:46 1999  Tim Janik  <timj@gtk.org>
      
      	* configure.in: evaluate $PERL for the perl version check. added
      	--disable-rebuilds to give the user an option to completely disable
      	any source autogeneration rules.
      
      Mon Aug 23 23:16:14 1999  Tim Janik  <timj@gtk.org>
      
      	* configure.in: evaluate $ac_make when checking for GNU Make.
      
      Mon Aug 23 19:11:17 1999  Tim Janik  <timj@gtk.org>
      
      	* docs/Makefile.am: added generatio...
      95b3f3e4
  10. 24 Feb, 1999 1 commit
  11. 23 Feb, 1999 1 commit
    • Owen Taylor's avatar
      When sending events to windows with a proxy, set the window field in the · 148e7663
      Owen Taylor authored
      Mon Feb 22 19:06:30 1999  Owen Taylor  <otaylor@redhat.com>
      
      	* gdk/gdkdnd.c (xdnd_send_*): When sending events to
      	 windows with a proxy, set the window field in the
      	 sent event to the original window, not to the proxy.
      	 (This gives consistency with Motif, and also provides
      	  information to the destination that it wouldn't have
      	  otherwise).
      
      	* gtk/gtkdnd.c: Fixed some refcount leaks for windows.
      
      	* gdk/gdkdnd.c (xdnd_send_xevent): When sending
      	 Xdnd event to the root window, set the event mask
      	 to ButtonPressMask. Hopefully, this should give us
      	 compatibility with kfm, if it uses the Qt style
      	 of root window drops.
      148e7663
  12. 28 Jan, 1999 1 commit
    • Owen Taylor's avatar
      Change signatures for gdk_drag_begin() and gdk_drag_motion() so that the · 77e99440
      Owen Taylor authored
      Wed Jan 27 18:57:57 1999  Owen Taylor  <otaylor@redhat.com>
      
      	* gdk/gdk.h gdk/gdkdnd.c: Change signatures for
      	gdk_drag_begin() and gdk_drag_motion() so that the set
      	of possible actions is passed on each motion, not just at
      	the beginning of the drag. We do this so that
      	we can restrict the set of possible drag events
      	when the user presses a modifier key during a
      	drag.
      
      	* gdk/gdkdnd.c: Send a motif Operation-changed
      	message when the set of possible actions change,
      	as well as when the suggested action change.
      
      	* gdk/gdkdnd.c: Change the XdndActionList whenever
      	the set of actions change.
      
      	* gdk/gdkdnd.c: Add a filter to catch changes to
      	the XdndActionList property for the source widget.
      
      	* gtk/gtkdnd.c: Change the set of possible actions
      	when the user presses Control, Shift, or Control-Shift,
      	to only include the corresponding action.
      
      	* gtk/gtkdnd.c (gtk_drag_button_release_cb):
      	Disconnect button signals before we possibly
      	free info structure.
      77e99440
  13. 24 Jan, 1999 1 commit
    • Owen Taylor's avatar
      Byteswap · 8ac2b1dd
      Owen Taylor authored
      Sun Jan 24 18:09:24 1999  Owen Taylor  <otaylor@redhat.com>
      
      	* gdk/gdkdnd.c (motif_read_initiator_info): Byteswap
      8ac2b1dd
  14. 23 Jan, 1999 1 commit
    • Owen Taylor's avatar
      X expects longs, not uint32 for XChangeProperty, when format == 32. · 79fbe482
      Owen Taylor authored
      Sat Jan 23 11:15:39 1999  Owen Taylor  <otaylor@gtk.org>
      
      	* gdk/gdkdnd.c (gdk_window_register_dnd): X expects
      	 longs, not uint32 for XChangeProperty, when
      	 format == 32.
      
      	* gdk/gdkdnd.c (motif_read_initiator_info): Byte-swap
      	 the MotifInitiatorInfo structure if necessary.
      
       	* gdk/gdkdnd.c: When extracting and constructing
               Motif DND messages, don't use data.s[], data.l[]
      	 since on 64bit architectures, these won't necessarily
      	 be in the same place with data.b[].
      
       	* gtk/testdnd.c (target_drag_drop): Return TRUE for
      	 drag_drop within the drop zone.
      
      	* gtk/gtkdnd.c (gtk_drag_dest_handle_event): Only send
      	 a XmTRANSFER_FAILURE if no drop site is found, not
      	 on every drop!
      79fbe482
  15. 21 Jan, 1999 2 commits
    • Owen Taylor's avatar
      Set and read the XdndActionList property defined in the Xdnd spec. We do · fea53a95
      Owen Taylor authored
      Thu Jan 21 02:11:44 1999  Owen Taylor  <otaylor@redhat.com>
      
      	* Set and read the XdndActionList property defined
      	in the Xdnd spec. We do this always, not just for
      	XdndActionAsk like the spec says, but if we don't
      	find it, we fall back to actions = suggested_action,
      	which is compatible with the language of the spec.
      fea53a95
    • Jeff Garzik's avatar
      Move not-null assertion before pointer de-ref. · 8dc58cb2
      Jeff Garzik authored
              * gdk/gdkdnd.c (gdk_drag_context_unref):
              Move not-null assertion before pointer de-ref.
      
              * gdk/gdkevents.c (gdk_event_queue_find_first):
              Fix infinite loop bug.  Someone should look at this further to
              make sure the events_pending tests are correct.
      8dc58cb2
  16. 09 Jan, 1999 1 commit
    • Owen Taylor's avatar
      Fixed some list-manipulation breakage. · 95843529
      Owen Taylor authored
      Fri Jan  8 19:00:17 1999  Owen Taylor  <otaylor@redhat.com>
      
      	* gdk/gdkdnd.c (gdk_window_cache_filter): Fixed
      	some list-manipulation breakage.
      
      	* gdk/gdkdnd.c (gdk_window_cache_destroy): Free
      	window cache structure.
      
      	* gtk/gtkdnd.c (gtk_drag_set_icon_pixmap): Set an
      	event mask on the drag window so clicking on it
      	doesn't pop up root menus, etc.
      
      	* gtk/gtkdnd.c (gtk_drag_button_release_cb): Remove
      	signal handlers at button release.
      95843529
  17. 05 Jan, 1999 1 commit
    • Owen Taylor's avatar
      Make gtk_propagate_event() non-static, we need it in gtkdnd.c so that the · 1fd7a6e4
      Owen Taylor authored
      Tue Jan  5 15:03:47 1999  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkmain.c (gtk_propagate_event): Make
      	gtk_propagate_event() non-static, we need it in gtkdnd.c
      	so that the button-release we synthesize gets propagated
      	correctly.
      
      	* gtk/gtkdnd.c: Use gtk_propagate_event() so
      	release gets to a GtkList. But we can't really
      	get this right without access to the windows
      	event masks and doing X-style propagation ourselves.
      
      Tue Jan  5 11:31:55 1999  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkselection.c (gtk_target_list_unref): Free
      	memory allocated for target lists.
      
      	* gtk/gtkdnd.c (gtk_drag_drop_finished): Release
      	selections before destroying info structure.
      
      	* gdk/gdkdnd.c gdktypes.h (gdk_drag_get_protocol): Add
      	new value GDK_DRAG_PROTO_NONE, use it for non-drag
      	targets, to quiet Purify.
      
      	* gdk/gdkdnd.c (gdk_window_register_dnd): Set size
      	of property properly.
      1fd7a6e4
  18. 02 Jan, 1999 1 commit
    • Jeff Garzik's avatar
      Removed features.h test. · d6890b72
      Jeff Garzik authored
              * configure.in, config.h.in, gdk/gdkimage.c:
              Removed features.h test.
      
              * gdk/gdkdnd.c:
              Guard public functions against NULL pointer derefs.
      d6890b72
  19. 22 Dec, 1998 1 commit
    • Owen Taylor's avatar
      Request XmTRANFER_FAILURE on Motif drops not within a drop zone. I don't · 08b22dde
      Owen Taylor authored
      Tue Dec 22 17:01:43 1998  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkdnd.c (gtk_drag_dest_handle_event):
      	Request XmTRANFER_FAILURE on Motif drops not within
      	a drop zone. I don't know why this is necessary,
      	but it is.
      
      	* gdk/gdkdnd.c (gdk_drop_reply): Fixed error where
      	Motif flag field in response was getting wrong
      	values.
      08b22dde
  20. 18 Nov, 1998 1 commit
  21. 06 Nov, 1998 1 commit
  22. 18 Oct, 1998 1 commit
    • Owen Taylor's avatar
      Added a modular client-message-filter mechanism, that is used for the DND · f7bcb456
      Owen Taylor authored
      Sun Oct 18 18:16:39 1998  Owen Taylor  <otaylor@gtk.org>
      
      	* gdk/gdk.c gdkprivate.h: Added a modular client-message-filter
      	mechanism, that is used for the DND messages.
      
      	  Removed all the old DND code.
      
      	* gdk/gdkcolormap.c gdk/gdkcolormap.h: Add a function to
      	get the visual of a given colormap.
      
      	* gtk/gtkcolorsel.c: Conversion to new DND, drag
      	a color-swatch.
      
      	* gdk/gdk.h gdk/gdkdnd.c: The low-level
      	X oriented portions of drag and drop protocols.
      	Sending and receiving client messages, and navigating
      	window trees.
      
      	* gdk/gdkimage.c: added a gdk_flush() when destroying
      	SHM images to hopefully make it more likely that
              X will gracefully handle the segment being destroyed.
      
      	* gdk/gdkprivate.h gtk/gtkdebug.h: Add new
      	DND debugging flags.
      
      	* gtk/gtkeditable.[ch]: Updates for the selection handling
      	changes.
      
      	* gtk/gtkselection.[ch]: Added GtkTargetList, a
      	refcounted data structure for keeping track of lists
      	of GdkAtom + information. Removed selection_handler_add
      	in favor of a "drag_data_get" signal.
      
      	* gtk/gtkdnd.[ch] gtk/gtk.h: New files - highlevel (event loop
      	dependent) parts of the DND protocols, display of drag icons,
      	drag-under highlighting, and the "default handlers".
      
      	* gtk/gtkinvisible.[ch]: New widget - InputOnly offscreen
      	windows that are used for reliable pointer grabs and
      	selection handling in the DND code.
      
      	* gtk/testdnd.c: New test program for new DND. (Old
      	DND tests in testgtk still need to be converted.)
      
      	* gtk/testselection.c: Use the new selection API.
      
      	* docs/dnd_internals: Start at describing how
      	all the new code works inside.
      
      	* docs/Changes-1.2.txt: New file describing source-incompatible
      	changes in GTK+-1.2.
      
      Sat Oct 17 22:50:34 1998  Owen Taylor  <otaylor@gtk.org>
      
      	* gdk/gdkwindow.c (gdk_window_remove_filter): Free
      	the right list node.
      
      	* gdk/gdkwindow.c (gdk_window_init): Add gdk_root_parent
      	to the XID table so we can receive events on it.
      
      Wed Oct 14 12:57:40 1998  Owen Taylor  <otaylor@redhat.com>
      
      	* gdk/gdk.c gdk/gdk.h (gdk_event_get_time): New function
      	to get the timestamp from a generic event.
      
      Fri Oct  9 13:16:04 1998  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkwidget.c (gtk_widget_add_events): Added function
      	that safely adds additional events to a widget's event
      	mask, even if the widget has previously been realized.
      	(We can do this, but not remove events from the event
      	 mask).
      
      Fri Oct  2 17:35:35 1998  Owen Taylor  <otaylor@redhat.com>
      
      	* gdk/gdkproperty.c (gdk_property_get): Allow type == 0,
      	for AnyPropertyType.
      
      Fri Oct  2 10:32:21 1998  Owen Taylor  <otaylor@redhat.com>
      
      	* gdk/gdkproperty.c (gdk_atom_intern): Add client-local
      	hashing.
      
      Thu Sep 24 20:33:54 1998  Owen Taylor  <otaylor@redhat.com>
      
      	* gdk/gdk.c (gdk_event_send_clientmessage_toall): serial
      	isn't a timestamp.
      
      Thu Sep 17 14:23:03 1998  Owen Taylor  <otaylor@redhat.com>
      
      	* gdk/gdk.c (gdk_event_translate): Removed printing
      	of unknown window lookup warnings. (Made it
      	a GDK_NOTE) - they happen in many circumstances.
      f7bcb456
  23. 18 Aug, 1998 1 commit
    • Tim Janik's avatar
      restricted the --g*fatal-* arguments to --g-fatal-warnings again. this · 7f2909bb
      Tim Janik authored
      Tue Aug 18 03:54:43 1998  Tim Janik  <timj@gtk.org>
      
              * gtk/gtkmain.c (gtk_init): restricted the --g*fatal-* arguments
              to --g-fatal-warnings again. this option now causes log levels of
              WARNING and CRITICAL to abort().
      
              * gdk/gdk.c:
              * gdk/gdkdnd.c:
              * gdk/gdkcc.c:
              * gdk/gdkfont.c:
              * gdk/gdkwindow.c:
              * gdk/gdkvisual.c:
              * gtk/gtkwidget.c:
              * gtk/gtktypeutils.c:
              * gtk/gtktree.c:
              * gtk/gtkfontsel.c:
              * gtk/gtkmain.c:
              * gtk/gtkobject.c:
              * gtk/gtkpreview.c:
              * gtk/gtkselection.c:
              * gtk/gtktext.c:
              * gtk/gtktree.c:
              * gtk/gtktreeitem.c:
              did a global search&replace to substitute g_print() calls with
              g_message(). libraries shouldn't use printf(), g_print() or
              g_printerr() at all.
              a bunch of the replacements should probably be wrapped into the
              G{D|T}K_NOTE() macros, so they are special cased for debugging
              purposes in a sane way, avoiding all the nasty #ifdef DEBUG_MY_TEDDY
              things.
      
              * gdk/gdkrgb.c: left this out currently.
      
              * gdk/gdkdnd.c: added copyright notice.
      7f2909bb
  24. 13 May, 1998 2 commits
  25. 09 Apr, 1998 1 commit
  26. 01 Apr, 1998 1 commit
  27. 31 Mar, 1998 2 commits
  28. 11 Mar, 1998 1 commit
    • Owen Taylor's avatar
      Various minor cleanups related to -W · 48a15b73
      Owen Taylor authored
      Tue Mar 10 23:02:42 1998  Owen Taylor  <owt1@cornell.edu>
      
      	* gdk/gdkdnd.c gtk/gtkclist.c gtk/gtksignal.c gtk/testgtk.c:
      	  Various minor cleanups related to -W
      48a15b73
  29. 10 Mar, 1998 1 commit
  30. 02 Mar, 1998 1 commit
    • Owen Taylor's avatar
      Miscellaneous minor fixes to remove ANSI C incompatibilities · 395ccd36
      Owen Taylor authored
      Mon Mar  2 17:48:38 1998  Owen Taylor  <owt1@cornell.edu>
      
      	Miscellaneous minor fixes to remove ANSI C incompatibilities
      
      	* gdk/gdkregion.c gtk/gtkclist.c: fix // comments
      
      	* gdk/gdkdnd.c gdk/gdkinputcommon.h: change types of
      	some arguments to ANSI functions
      
      	* gtk/gtkcombo.c gtk/gtktree.c: fix casts of function pointers
      	  to void *
      
      	* gtk/gtkmain.c: An actual bug! (in deprecated gtk_input_add_interp)
      
      	* gtk/gtknotebook.h: Bitfields must be gint or guint. (and should
      	  be guint)
      
      	* gtk/gtkstatusbar.c: trailing ';'
      
      	* gtk/testgtk.c: GList where there should have been GSList
      
      	* glib.h gutils.c : changed g_strcasecmp
      	  to take gchar* not guchar*
      
      	* testglib.c: Remove trailing ; after functions
      395ccd36
  31. 27 Feb, 1998 1 commit
    • Owen Taylor's avatar
      new functions for setting WM hints · 473c1d4d
      Owen Taylor authored
      Thu Feb 26 22:36:46 1998  Owen Taylor  <owt1@cornell.edu>
      
      	* gdk/gdkwindow.c gdktypes.c gdk.h:
      	new functions for setting WM hints
      
      	 gdk_window_set_icon()
      	 gdk_window_set_icon_name()
      	 gdk_window_set_group()
      	 gdk_window_set_decorations()
      	 gdk_window_set_functions()
      
      	* gdk/MwmUtil.h: new uninstalled header file from lesstif
      	distribution, used for setting MWM hints.
      
      	* gdk/gdkdnd.c Makefile.am: renamed from gdk/gdk_dnd.c
      473c1d4d
  32. 26 Feb, 1998 1 commit