1. 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
  2. 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
  3. 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
  4. 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
  5. 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
  6. 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
  7. 18 Nov, 1998 1 commit
  8. 06 Nov, 1998 1 commit
  9. 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
  10. 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
  11. 13 May, 1998 2 commits
  12. 09 Apr, 1998 1 commit
  13. 01 Apr, 1998 1 commit
  14. 31 Mar, 1998 2 commits
  15. 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
  16. 10 Mar, 1998 1 commit
  17. 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
  18. 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
  19. 26 Feb, 1998 1 commit