1. 20 Jan, 1999 1 commit
  2. 15 Jan, 1999 1 commit
    • Owen Taylor's avatar
      Make MOD1-drag also do action ask. · 3bba8439
      Owen Taylor authored
      Thu Jan 14 11:29:53 1999  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkdnd.c (gtk_drag_get_event_action): Make
      	MOD1-drag also do action ask.
      
      	* gtk/gtkdnd.c (gtk_drag_button_release_cb): Send the
      	button-release event we simulate to get grabs released,
      	with a window of GDK_ROOT_PARENT instead of the actual
      	widget. This is a bad hack in some sense, but seems
      	to work nicely. (It's sort of like what you would
      	if you grabbed on button press, then the user
      	released outside of the widget.)
      3bba8439
  3. 11 Jan, 1999 1 commit
  4. 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
  5. 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
  6. 24 Dec, 1998 1 commit
    • Jeff Garzik's avatar
      removed unused var 64-bit cast point to const data Made const-correct. · 553fa430
      Jeff Garzik authored
              * gdk/gdkfont.c: removed unused var
              * gdk/gdkim.c: 64-bit cast
              * gtk/gtkaccelgroup.c: point to const data
              * gtk/gtkdnd.[ch]: (gtk_drag_dest_set, gtk_drag_source_set):
                Made const-correct.
              * gtk/gtkfontsel.c: kill uninitialized var warning
              * gtk/gtkselection.[ch]: (gtk_target_list_new,
                gtk_target_list_add_table, gtk_selection_add_targets):
                Made const-correct.
              * gtk/testgtk.c: 64-bit cast
      553fa430
  7. 22 Dec, 1998 2 commits
    • 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
    • Owen Taylor's avatar
      Optimization - when we've already found a widget, skip all checks for · 7f0156c2
      Owen Taylor authored
      Tue Dec 22 14:50:25 1998  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkdnd.c (gtk_drag_find_widget): Optimization -
      	when we've already found a widget, skip all checks
      	for subsequent children.
      
      	* gtk/gtkdnd.c (gtk_drag_find_widget): Checked for
      	!MAPPED, not !VISIBLE, since a widget (like a notebook
      	page), can be VISIBLE, but !REALIZED or !MAPPED.
      
      	* gtk/gtkdnd.c (gtk_drag_find_widget): Use forall(),
      	not foreach().
      7f0156c2
  8. 17 Dec, 1998 1 commit
    • Owen Taylor's avatar
      Remove the info tag from the context so if the source unexpectedly · 1bde7a55
      Owen Taylor authored
      Thu Dec 17 18:25:52 1998  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkdnd.c (gtk_drag_drop_finished): Remove the
      	info tag from the context so if the source unexpectedly
      	responds in the future, we do nothing properly.
      
      Thu Dec 17 18:24:41 1998  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtk[hv]paned.c (gtk_[hv]paned_size_allocate): Handle
      	the case where one side of the the pane is empty.
      
      	* gtk/gtkfilesel.c (gtk_file_selection_init): Set
      	dir_title before using it. (Pointed out by
      	Lavoie Philippe <lavoie@zeus.genie.uottawa.ca>)
      1bde7a55
  9. 16 Dec, 1998 2 commits
    • Owen Taylor's avatar
      Move main thread lock back to GDK - we need it there for locking when · fcfe7370
      Owen Taylor authored
      Wed Dec 16 13:06:17 1998  Owen Taylor  <otaylor@redhat.com>
      
      	* gdk/gdk.[ch] gtk/gtkmain.[ch] gtk/gtkprivate.h: Move main
      	thread lock back to GDK - we need it there for locking
      	when translating events. Rename things appropriately.
      
      Wed Dec 16 11:44:21 1998  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkrange.c (gtk_range_expose): Fix a x/y typo.
      
      CVS:
      fcfe7370
    • Tim Janik's avatar
      version bump to 1.1.8, binary age 0, interface age 0, depend on GLib · 017dfc9e
      Tim Janik authored
      Wed Dec 16 05:26:32 1998  Tim Janik  <timj@gtk.org>
      
              * configure.in: version bump to 1.1.8, binary age 0, interface age 0,
              depend on GLib 1.1.8.
      
              * gdk/gdkprivate.h:
              * gdk/gdkglobals.c: removed last Gdk threads specific bits.
      
              * gtk/gtkmain.c (gtk_init): s/g_thread_supported/g_thread_supported()/.
      
              * gtk/gtkprivate.h: changed GTK_THREADS_ENTER and GTK_THREADS_LEAVE
              to function macros GTK_THREADS_ENTER() and GTK_THREADS_LEAVE().
              honour G_THREADS_ENABLED in the definition of GTK_THREADS_ENTER()
              and GTK_THREADS_LEAVE(). changed callers accordingly.
      017dfc9e
  10. 15 Dec, 1998 2 commits
    • Owen Taylor's avatar
      Added GTK_USER_DRAW flag. · 7eec796c
      Owen Taylor authored
      Tue Dec 15 13:32:28 1998  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkwidget.h: Added GTK_USER_DRAW flag.
      
      	* gtk/gtkwindow.c: Honor GTK_USER_DRAW flag.
      
      	* gtk/gtkdrawwindow.c gtk/Makefile.am: Removed
      	GtkDrawWindow, which GTK_USER_DRAW obsoletes.
      7eec796c
    • Owen Taylor's avatar
      Commented out testthreads from the build process, since we won't have any · a0c84d68
      Owen Taylor authored
      Tue Dec 15 01:38:53 1998  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/Makefile.am: Commented out testthreads from
      	the build process, since we won't have any idea
      	how to create a thread.
      
      	* configure.in (LIBS): use glib-config ... gthread
      	so we always build a thread-compatible library.
      
              * gtk/gtkaccellabel.c gtk/gtkclist.c gtk/gtkcolorsel.c
      	  gtk/gtkcombo.c gtk/gtkcontainer.c gtk/gtkentry.c
      	  gtk/gtklist.c gtk/gtkmenuitem.c gtk/gtknotebook.c
      	  gtk/gtkrange.c gtk/gtkselection.c gtk/gtkspinbutton.c
      	  gtk/gtktext.c gtk/gtktooltips.c gtk/gtkwidget.c:
      
      	Add GTK_THREADS_ENTER/LEAVE pairs around timeouts
      	and idles to account for the fact that they are no
      	longer called within the GTK+ lock.
      
      	* gtk/gtkprivate.h: Added definitions for locking
      	the main GTK+ mutex.
      
      	* gtk/gtkmain.c: Re-implement the main loop
      	in terms of the GLib main loop.
      
      	* gdk/gdk.h gdk/gdkthreads.c gdk/Makefile.am: Removed threading
      	functionality, as it seems better to subsume GDK within the
      	GTK+ lock than vice-versa.
      
              * gdk/gdkevents.c: New file, containing event handling bits
      	from gdk.c.
      
      	* gdk/gdkevents.c: Implement event source for GDK
      	events.
      
      	* configure.in gdk/gdkevents.c: Removed attempts to
      	subtract base_id, which were already non-functional.
      a0c84d68
  11. 11 Dec, 1998 2 commits
  12. 03 Dec, 1998 1 commit
    • Owen Taylor's avatar
      Changed to 5 min from 10 seconds, so it doesn't abort while users have an · 646d68e4
      Owen Taylor authored
      Thu Dec  3 16:49:18 1998  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkdnd.c (DROP_ABORT_TIME): Changed to 5 min
      	from 10 seconds, so it doesn't abort while users
      	have an ACTION_ASK menu up.
      
      	* gtk/gtkdnd.c: Hide the icon window between sending a a
      	drop event to the destination and displaying the
      	snapback animation, so that it doesn't hang around
      	during ACTION_ASK.
      646d68e4
  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. 27 Nov, 1998 1 commit
    • Owen Taylor's avatar
      New function to get the source widget of a drag. · f26c189e
      Owen Taylor authored
      Fri Nov 27 12:17:15 1998  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkdnd.[ch] (gtk_drag_get_source_widget): New function to
      	get the source widget of a drag.
      
      	* gtk/gtkdnd.[ch]: Target flags GTK_TARGET_SAME_[WIDGET/APP]
      	to restrict certain targets to the same widget or to
      	the same application.
      
      	* gtk/testdnd.c: Test gtk_drag_get_source_widget().
      f26c189e
  15. 24 Nov, 1998 1 commit
    • Owen Taylor's avatar
      Fixed up copyright message. · 1bb0d4c0
      Owen Taylor authored
      Tue Nov 24 11:11:05 1998  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtklayout.[ch]: Fixed up copyright message.
      
      	* gdk/gdkrgb.c (DM): Make the dither matrix constant
      	so it can be shared.
      
      	* gtk/gtkdnd.c: Make cursor bitmaps const.
      
      	* gdk/gdk.h gdk/gdkpixmap.c: Added const to
      	gdk_pixmap/bitmap_create_from_data.
      1bb0d4c0
  16. 18 Nov, 1998 1 commit
  17. 08 Nov, 1998 1 commit
    • Manish Singh's avatar
      check if column[i].button is valid before calling gtk_widget_intersect on · 3c07b7eb
      Manish Singh authored
      * gtk/gtkclist.c: check if column[i].button is valid before calling
      gtk_widget_intersect on it in gtk_clist_draw
      
      * gtk/gtkdnd.c: removed unused variable empty_bits
      
      * gtk/gtkrc.c: we should use gslist_* functions with GSLists...
      
      * gtk/gtktypeutils.[ch]: makes more send for gtk_type_is_a to return
      a boolean (thanks to Elrond for noticing this)
      
      -Yosh
      3c07b7eb
  18. 06 Nov, 1998 1 commit
  19. 20 Oct, 1998 2 commits
    • Owen Taylor's avatar
      Always send "drag_leave" to dests without GTK_DEST_DEFAULT_MOTION. · 4b2885b5
      Owen Taylor authored
      Tue Oct 20 14:53:28 1998  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkdnd.c: Always send "drag_leave" to dests
      	without GTK_DEST_DEFAULT_MOTION.
      
      Tue Oct 20 11:55:24 1998  Owen Taylor  <otaylor@redhat.com>
      
      	* gdk/gdk.c (gdk_event_translate): Handle DestroyNotify
      	on destroyed windows so we clear the XID table properly.
      	Finish up restructure of return value handling that
      	was half-done before.
      
      Tue Oct 20 12:57:10 1998  Owen Taylor  <otaylor@redhat.com>
      
      	* gdk/gdk.c (gdk_send_clientmessage_to_all): Hunt
      	the window tree more comprehensively, so that we find
      	client windows hidden under non-toplevels.
      
      Tue Oct 20 12:43:04 1998  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkselection.c (gtk_selection_data_set):
      	Maintain the null-termintation guarantee, even when
      	data = NULL, length = 0. (Warn on data = NULL,
      	length > 0)
      
      Mon Oct 19 16:41:44 1998  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkwidget.h (struct _GtkWidgetClass): Add in coordinates
      	into function prototype for drag_data_received.
      4b2885b5
    • Paolo Molaro's avatar
      Tue, 20 Oct 1998 11:33:10 +0200 Paolo Molaro <lupus@debian.org> · 75f85f94
      Paolo Molaro authored
      
      Tue, 20 Oct 1998 11:33:10 +0200 Paolo Molaro <lupus@debian.org>
      
      	* gtk/gtkdnd.h,gtk/gtkdnd.c: delete is a reserved word in c++.
      75f85f94
  20. 19 Oct, 1998 1 commit
  21. 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