1. 13 Apr, 1998 1 commit
  2. 10 Apr, 1998 1 commit
    • Owen Taylor's avatar
      Picky --enable-ansi cleanups. · 3a029481
      Owen Taylor authored
      Thu Apr  9 18:36:31 1998  Owen Taylor  <owt1@cornell.edu>
      
      	* gtk/gtkmisc.c gdk/gdkwindow gtk/gtkentry.c gtk/testgtk.c:
      	Picky --enable-ansi cleanups.
      
      	* gtk/gtkstatusbar.c (gtk_statusbar_pop): Pop top message
      	off _belonging_to_this_context_. (gtk-d4bjorn-980409-0)
      
      	From "Damon Chaplin" <DAChaplin@email.msn.com>
      
      	* gtk/gtktable.c (gtk_table_size_request_pass3): Small fix to size
      	requisition code.
      
      	* gtk/gtknotebook.c: Make sure not to do things to page->tab_label
      	if it doesn't exist.
      3a029481
  3. 09 Apr, 1998 2 commits
    • Owen Taylor's avatar
      (Found by Mattias.Gronlund" <Mattias.Gronlund@sa.erisoft.se>) · 26df647a
      Owen Taylor authored
      Thu Apr  9 14:24:35 1998  Owen Taylor  <owt1@cornell.edu>
      
      	(Found by Mattias.Gronlund" <Mattias.Gronlund@sa.erisoft.se>)
      
      	* gtk/gtkcurve.c (gtk_curve_interpolate): Added a
      	missing g_free.
      
      	* gtk/gtkcurve.c (gtk_curve_graph_events): Limits
      	were off by one, resulting in writing past array
      	bounds. Removed some unused code.
      
      	* gdk/gdk.c (gdk_dnd_drag_begin): The event structure
      	used for gdk_event_put should be a GdkEvent, not a
      	subtype, since it will all be copied.
      
      	* gtk/gtkcolorsel.c: Added a unrealize handler that
      	unref's the GC's that were created.
      
      	* gtk/testgtk.c (clist_warning_test): ref and sink
      	child because it may never be added to anything.
      26df647a
    • Elliot Lee's avatar
      When setting up the drag cursor as a shaped window, make sure to hide the... · ad7dc0e8
      Elliot Lee authored
      When setting up the drag cursor as a shaped window, make sure to hide the previous drag shaped windows.
      ad7dc0e8
  4. 08 Apr, 1998 1 commit
    • Miguel de Icaza's avatar
      During drag and drop, set the event mask at ButtonPress time to include · 09d32399
      Miguel de Icaza authored
      1998-04-08  Miguel de Icaza  <miguel@nuclecu.unam.mx>
      
      	* gdk/gdk.c (gdk_event_translate): During drag and drop, set the
      	event mask at ButtonPress time to include ButtonPressMask and
      	ButtonReleaseMask, otherwise, if the button is released, and we
      	get a LeaveNotify event, it still thinks we are doing a drag.
      09d32399
  5. 07 Apr, 1998 1 commit
    • Owen Taylor's avatar
      Removed, because that's what a NULL comparison function means. And it · 1c77b5f9
      Owen Taylor authored
      Tue Apr  7 19:36:48 1998  Owen Taylor  <owt1@cornell.edu>
      
      	* gutils.c (g_direct_compare): Removed, because that's what
      	a NULL comparison function means. And it wasn't 64 bit safe.
      
      Tue Apr  7 19:14:03 1998  Owen Taylor  <owt1@cornell.edu>
      
      	* gdk/gdkpixmap.c: Added maximum field widths to prevent
      	possible '%s' scanf overflows. Replaced scanf("%c")
      	with getc(), Don't interpret /*/ as a full comment. Use
      	g_realloc/g_new.
      
      	* gtk/gtkwidget.h gtk/gtkprivate.h: Changed all flag
      	tests to check for ((GTK_WIDGET_FLAGS(widget) & FLAG) != 0)
      	instead of (GTK_WIDGET_FLAGS(widget) & FLAG)
      
      	* gtk/gtkfilesel.c: Use getwd() instead of getcwd() on
      	SunOS, because getcwd() hangs up in a wait4().
      	(Found by David Monniaux <monniaux@clipper.ens.fr>)
      
      	- Check device/inode/mtime not just inode/mtime, when
      	caching scanned directories.
      	(From: scottk@ig.utexas.edu (Scott Kempf))
      
      	* gdk/gdkpixmap.c: Check for 0 width/height when
      	creating pixmaps.
      
      	* gtk/*.c: Global substitution of recently introduced
      	"MAX (0," for allocations to "MAX (1,", since
      	creating a backing pixmap with a zero width or height
      	fails.
      
      	* gdk/gdkwindow.c (gdk_window_new): Don't set all the
      	WM properties for child windows. Don't set the base
      	size, since the value we set will be taken as a minimum
      	size.
      1c77b5f9
  6. 04 Apr, 1998 1 commit
    • Owen Taylor's avatar
      Make debug string parsine case-insensitive · e2ae4aec
      Owen Taylor authored
      Fri Apr  3 20:36:35 1998  Owen Taylor  <owt1@cornell.edu>
      
      	* gutils.c (g_parse_debug_string): Make debug string
      	parsine case-insensitive
      
      Fri Apr  3 20:36:52 1998  Owen Taylor  <owt1@cornell.edu>
      
      	* gdk/gdk.c gtk/gtkmain.c: Accept debug options
      	in the form --g[td]k[-no]-debug=xxx as well
      e2ae4aec
  7. 03 Apr, 1998 1 commit
  8. 01 Apr, 1998 1 commit
  9. 31 Mar, 1998 2 commits
  10. 29 Mar, 1998 1 commit
    • Owen Taylor's avatar
      Disconnect from combo->entry, not combo. (From: Daniel Skarda · 93e15856
      Owen Taylor authored
      Sat Mar 28 21:18:42 1998  Owen Taylor  <owt1@cornell.edu>
      
      	* gtk/gtkcombo.c (gtk_combo_disable_activate):
      	Disconnect from combo->entry, not combo.
      	(From: Daniel Skarda <0rfelyus@atrey.karlin.mff.cuni.cz>)
      
      	* gdk/gdkpixmap.c (gdk_pixmap_colormap_create_from_xpm): Deal
      	better with xpm's with bad colors in them.
      
      Plus, 3rd attempt to commit gtklabel changes
      93e15856
  11. 28 Mar, 1998 2 commits
    • Owen Taylor's avatar
      Don't call XTranslateCoordinates on a destroyed window. (Why do we do · 5b3cc69b
      Owen Taylor authored
      Fri Mar 27 21:01:17 1998  Owen Taylor  <owt1@cornell.edu>
      
      	* gdk/gdk.c (gdk_event_translate): Don't call
      	XTranslateCoordinates on a destroyed window. (Why do we
      	do event processing at all on destroyed windows when we
      	throw out the results?)
      
      	* gtk/gtklabel.c: Clear the background when changing style/
      	state.
      5b3cc69b
    • Owen Taylor's avatar
      Don't clear the window on an expose event. On draws, just clear the · b2c30ad9
      Owen Taylor authored
      Fri Mar 27 17:58:41 1998  Owen Taylor  <owt1@cornell.edu>
      
      	* gtk/gtkhandlebox.c (gtk_handle_box_paint): Don't clear
      	the window on an expose event. On draws, just clear the
      	portion we are redrawing.
      
      	* gdk/gdkfont.c (gdk_fontset_load): Corrected calculation
      	of fontset ascent/descent.
      
      	* gtk/gtkwidget.[ch]: Added new function to show a toplevel
      	window and wait for it to be mapped, gtk_window_show_now ()
      b2c30ad9
  12. 26 Mar, 1998 1 commit
    • Owen Taylor's avatar
      When gtk_widget_draw() is called on a REDRAW_PENDING widget, draw it and · a74e3385
      Owen Taylor authored
      Thu Mar 26 15:33:50 1998  Owen Taylor  <owt1@cornell.edu>
      
      	* gtk/gtkwidget.c: When gtk_widget_draw() is called on a
      	REDRAW_PENDING widget, draw it and remove it from the
      	queue instead of doing nothing.
      
      	* gtk/Makefile.am gdk/Makefile.am: Switch order of includes
      	directories, to make doubly sure that wrong glibconfig.h
      	isn't used. (See also glib/ChangeLog)
      
      	* gtk/gtkentry.c (gtk_entry_draw_focus): Don't draw the
      	cursor unless the entry is editable.
      
      	(From: Stefan Jeske <jeske@braunschweig.netsurf.de>)
      a74e3385
  13. 23 Mar, 1998 1 commit
  14. 22 Mar, 1998 2 commits
    • Owen Taylor's avatar
      fixes to locale checks · 16aa9c19
      Owen Taylor authored
      Sun Mar 22 16:25:46 1998  Owen Taylor  <owt1@cornell.edu>
      
      	* gtk/gtkmain.c (gtk_init): fixes to locale checks
      
      	* gtk/testgtk.c (create_dnd): Create the dnd icons separately
      	  to avoid strange interactions with shapes demo.
      
      	* gtk/gtkentry.[ch]:
      	  - Limit the length of the text to 2048 to prevent long delays
      	  - Fix problems with buffer overruns
      	  - Draw only the onscreen portion of the text to prevent wrapping
      	    of shorts in the X drawing code.
      	  - Keep track of character positions and x-offsets to speed
      	    up algorithms.
      16aa9c19
    • Owen Taylor's avatar
      Don't respond to drops when grab is in effect. (workaround) · 8cff9d33
      Owen Taylor authored
      Sat Mar 21 19:07:01 1998  Owen Taylor  <owt1@cornell.edu>
      
      	* gtk/testgtk.c (dnd_drop): Don't respond to drops when
      	  grab is in effect. (workaround)
      
      	* gdk/gdkfont.c (gdk_fontset_load): More details on
      	  error messages.
      
      	* gdk/gdk.c: Translate va_list to XVaNestedList instead
      	  of just casting it.
      
      	* gtk/gtkmain.c: Make temporary copy of string returned by
      	  setlocale, since it may be changed by subsequent calls.
      8cff9d33
  15. 17 Mar, 1998 4 commits
    • Owen Taylor's avatar
      Try to guess if we can use the mb* functions safely. (For glibc, they do · 70b3b3e6
      Owen Taylor authored
      Tue Mar 17 01:55:00 1998  Owen Taylor  <owt1@cornell.edu>
      
      	* gtk/gtkmain.c gtk/gtkentry.c: Try to guess if we can
      	  use the mb* functions safely. (For glibc, they do
      	  UTF-8). Heuristic is (X_LOCALE && locale != C/POSIX)
      	  || (mblen("\xc0", MB_CUR_MAX) == 1).
      
      	(From: "Richard Lloyd" <rkl@csc.liv.ac.uk>)
      
      	* gdk/gdk.c (gdk_ic_get_attr): Use an intermediate
      	  variable to avoid taking the address of the result
      	  of va_arg.
      
      	* gtk/gtkentry.c gtk/gtkeditable.c gtkobject.c
      	  gtk/testselection.c: signedness fixups
      
      	* gtk/gtkcontainer.c: Fixed implicit cast between
      	  gpointer and func pointer by changing.
      
      	* gtk/gtkcombo.c, gtk/gtkentry.c, gtk/gtktext.c:
      	  static void forward declaration vs. void actual fixed
      
      	* gtk/testgtk.c: Limit total number of tree items to 10,000
      70b3b3e6
    • Tim Janik's avatar
      changed some debugging messages to be prefixed by "Gdk:". · a783d668
      Tim Janik authored
      Tue Mar 17 16:19:47 1998  Tim Janik  <timj@gimp.org>
      
              * gdk/gdk.c:
                      * gdk/gdkvisual.c: changed some debugging messages to be prefixed
                              by "Gdk:".
      
                                      * gtk/gtkwidget.c (gtk_widget_real_draw): applied
                                              gtk-shige-980317-0.patch.gz to set all event fields, but modified
                                                      the event.send_event field to be set to TRUE, since the event is not
                                                              really comming from the server.
      
                                                                      * gtk/gtkwindow.c (gtk_window_init): applied gtk-ograf-980317-1.patch.gz
                                                                              which cares about an initial setting of program name and program class.
      
                                                                                      * gdk/gdk.c (gdk_init): applied gtk-ograf-980317-0.patch.gz, which
                                                                                              strips leading pathnames from gdk_progname.
      a783d668
    • Miguel de Icaza's avatar
      Use StructureNotifyMaskMask as the mask, as this enables an application · 8a0d6739
      Miguel de Icaza authored
      Tue Mar 17 02:02:02 1998  Miguel de Icaza  <miguel@nuclecu.unam.mx>
      
      	* gdk/gdk.c (gdk_dnd_drag_leave): Use StructureNotifyMaskMask as
      	the mask, as this enables an application listening to those events
      	to catch the root events.  Thanks to Maciej for pointing us in the
      	right direction.
      	(gdk_dnd_drag_enter): Likewise.
      	(gdk_dnd_drag_leave): Likewise.
      	* gdk/gdkwindow.c (gdk_window_dnd_data_set): Likewise.
      8a0d6739
    • Federico Mena's avatar
      Use signed integers so that testing will not fail for windows that are · 63955ec2
      Federico Mena authored
      Mon Mar 16 22:31:02 1998  Federico Mena  <federico@nuclecu.unam.mx>
      
      	* gdk/gdkwindow.c (gdk_window_xid_at): Use signed integers so that
      	testing will not fail for windows that are off-screen.
      
      	(gdk_window_xid_at_coords): Only considers visible windows.
      63955ec2
  16. 14 Mar, 1998 5 commits
    • Tim Janik's avatar
      fixed a bug with invoking the quit handlers that could cause them to be · bc8e4038
      Tim Janik authored
      Sat Mar 14 10:10:46 1998  Tim Janik  <timj@gimp.org>
      
              * gtk/gtkmain.c (gtk_main): fixed a bug with invoking the quit handlers
                      that could cause them to be removed wihout being invoked.
      bc8e4038
    • Owen Taylor's avatar
      Makefile.am fixes minor fix to gdkwindow.c -owt · 566a13a6
      Owen Taylor authored
      Makefile.am fixes
      minor fix to gdkwindow.c
                                              -owt
      566a13a6
    • Owen Taylor's avatar
      Fixed misplaced 'else.' -owt · b8e7ea1f
      Owen Taylor authored
      b8e7ea1f
    • Owen Taylor's avatar
      Don't leave NULL's in argv. · 54a9eb41
      Owen Taylor authored
      Sat Mar 14 02:12:44 1998  Owen Taylor  <owt1@cornell.edu>
      
      	* gtk/gtkmain.c gdk/gdk.c: Don't leave NULL's in argv.
      54a9eb41
    • Owen Taylor's avatar
      Don't resize windows when request is rejected by WM. Only use the resize · bc98ea9c
      Owen Taylor authored
      Sat Mar 14 00:03:34 1998  Owen Taylor  <owt1@cornell.edu>
      
      	* gtk/gtkwindow.c:
                Don't resize windows when request is rejected by WM.
      	  Only use the resize count to guess whether a Configure
      	  event was a rejection by the WM, or a move.
      
      	* gdk/gdk.c gdk/gdktypes.h:
      	  - Don't XDestroyWindow foreign windows (If they're a child of
      	  one of our windows, reparent them to root and send them a WM
      	  delete event, otherwise, just delete the GTK structure.)
      	  Handle notification of their deletion properly.
                (Made foreign windows a seperate window type to do this)
      
      	* gtk/gtkobject.c (gtk_object_set_data_full):
      	  Call the DestroyNotify when replacing the object data.
      bc98ea9c
  17. 12 Mar, 1998 1 commit
    • Tim Janik's avatar
      applied gtk-shige-980311-0.patch.gz, which removes the erronerous · a8afd462
      Tim Janik authored
      Thu Mar 12 07:43:33 1998  Tim Janik  <timj@gimp.org>
      
              * gdk/gdk.h:
              * gdk/gdkvisual.c: applied gtk-shige-980311-0.patch.gz, which removes
              the erronerous gdk_query_visuals() function in favour of
              gdk_list_visuals() which does a correct job.
      
              * gtk/gtkcontainer.h: applied gtk-draco-980311-0.patch.gz which fixes
              a class cast check.
      
              * gtk/gtkspinbutton.c: applied gtk-hamann_jeske-980312-0.patch.gz about
              '+' sign acceptance.
      
              * gtk/gtknotebook.c: applied gtk-hamann_jeske-980311-1.patch.gz which
              cares about delayed tab label creation.
      a8afd462
  18. 11 Mar, 1998 6 commits
    • Elliot Lee's avatar
      093dfedf
    • 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
    • rhlabs's avatar
      <raster@redhat.com> · 59436967
      rhlabs authored
      
      
      <raster@redhat.com>
      
      fixed motiong drag to remove lag - ie no lagging of icons behind mouse when
      doing DND. :)
      59436967
    • rhlabs's avatar
      <raster@redhat.com> · c5327ecc
      rhlabs authored
      
      
      <raster@redhat.com>
      
      added bolleean to gdk_window_xid_at_coords for excluding children fo
      excluded windows
      c5327ecc
    • rhlabs's avatar
      <raster@redhat.com> · b7a6cd67
      rhlabs authored
      
      
      <raster@redhat.com>
      
      final fixes to STUPId comparison of types of loop end - i missed the
      unsigned bit! i will NEVEr use unsigned ints ever again!
      b7a6cd67
    • Tim Janik's avatar
      applied gtk-bolliet-980310-0.patch.gz which adds more checks and · 309d7377
      Tim Janik authored
      Wed Mar 11 04:35:06 1998  Tim Janik  <timj@gimp.org>
      
              * gtk/gtklist.c:
              * gtk/gtktree.h:
              * gtk/gtktree.c:
              * gtk/gtktreeitem.h:
              * gtk/gtktreeitem.c: applied gtk-bolliet-980310-0.patch.gz which adds
              more checks and implements gtk_tree_clear_items. made a bunch of style
              and indentation fixes.
      309d7377
  19. 10 Mar, 1998 6 commits