1. 13 May, 1998 2 commits
    • Owen Taylor's avatar
      A few more GPOINTER_TO_UINT fixes. · 40a52170
      Owen Taylor authored
      Wed May 13 00:53:52 1998  Owen Taylor  <otaylor@gtk.org>
      
      	* gtk/gtktypeutils.c gtk/gtksignal.c gdk/gdkdnd.c: A few more
      	  GPOINTER_TO_UINT fixes.
      40a52170
    • Owen Taylor's avatar
      Fixed up a stat() that Sopwith missed when changing stat => lstat. · 43dfe74c
      Owen Taylor authored
      Tue May 12 19:37:55 1998  Owen Taylor  <otaylor@gtk.org>
      
      	* gtk/gtkrc.c (gtk_rc_parse_file): Fixed up a stat()
      	that Sopwith missed when changing stat => lstat.
      
      Tue May 12 19:19:29 1998  Owen Taylor  <otaylor@gtk.org>
      
      	* gtk/gtkinputdialog.c gtk/gtkgamma.c gtk/gtkrc.c
      	  gtk/gtkcolorsel.c gtk/gtkclist.c gtk/testgtk.c: Use
      	GPOINTER_TO_INT/GINT_TO_POINTER macros where appropriate.
      
      	* gdk/gdk.c: Print sizeof() results
      	as g_print("%ld", (glong)sizeof(foo)), to deal with
      	sizeof() being long on Alpha's.
      
      	* gtk/testgtk.c: include <string.h> for strlen
      
      Tue May 12 19:22:58 1998  Owen Taylor  <otaylor@gtk.org>
      
       	* glib/glib.h: Added macros G[U]INT_TO_POINTER() and
      	GPOINTER_TO_[U]INT for storing small integers integers
      	inside pointers.
      
      	* glib/testglib.c: Print sizeof() results
      	as g_print("%ld", (glong)sizeof(foo)), to deal with
      	size_t being long on Alpha's.
      43dfe74c
  2. 12 May, 1998 1 commit
    • Owen Taylor's avatar
      (James A <jamesa@demon.net> : gtk-jamesa-980511-4.patch) · c9e78a10
      Owen Taylor authored
      Tue May 12 16:54:15 1998  Owen Taylor  <otaylor@gtk.org>
      	(James A <jamesa@demon.net> : gtk-jamesa-980511-4.patch)
      
      	* glib.h gstring.c gmessages.c: Added some missing
      	const to arguments.
      
      	* gutils.c (g_strsignal.c): Added missing return statements.
      
      Tue May 12 16:56:35 1998  Owen Taylor  <otaylor@gtk.org>
      	(James A <jamesa@demon.net> : gtk-jamesa-980511-4.patch)
      
      	* gtk/gtkbbox.h gtk/gtkcolorsel.h gtk/gtkvbbox.h:
      	Changed #include "gtkfoo.h" to #include <gtk/gtkfoo.h>
      
      	* gtk/gtkwindow.[ch]: Added const to gtk_window_set_wmclass
      
      Tue May 12 15:16:10 1998  Owen Taylor  <otaylor@gtk.org>
      	(From: Christopher James Lahey <clahey@umich.edu>)
      
      	* gtk/gtkbutton.[ch] gtk/gtkenums.h gtk/gtktoolbar.[ch]
      	  gtk/testgtk.c:
      
      	Added 'relief' for buttons - they can be either GTK_RELIEF_NORMAL
      	(old style), or GTK_RELIEF_NONE - no relief in the NORMAL
      	state. Added gtk_toolbar_{set,get}_button_relief, which set/get
      	the default relief for the toolbars buttons. Added an
      	toggle for the toolbar test in testgtk.c.
      c9e78a10
  3. 11 May, 1998 1 commit
    • Tim Janik's avatar
      preserve automake CFLAGS. · e8df8ce1
      Tim Janik authored
      Mon May 11 09:56:45 1998  Tim Janik  <timj@gtk.org>
      
              * configure.in (cflags_set): preserve automake CFLAGS.
      
              * Makefile.am: fully rename the created libraries to libgtk-1.1.la
              and libgdk-1.1.la. this means we need to change certain portions of
              the Makefile.am on major/minor version bumps.
      
              * ltmain.sh: the -release option is not required anymore.
      
              * gtk/gtkobject.h (gtk_trace_referencing): compile time check the type
              of the first argument to be of type GtkObject. unconditionally compile
              this function. removed __GNUC__ dependancy of the gtk_object_ref and
              gtk_object_unref macro wrappers for this function.
      
      Mon May 11 09:53:43 1998  Tim Janik  <timj@gtk.org>
      
              * configure.in: preserve automake CFLAGS.
      
              * Makefile.am: fully rename the created library to libglib-1.1.la.
              this means we need to change certain portions of the Makefile.am on
              major/minor version bumps.
      
              * ltmain.sh: the -release option is not required anymore.
      
              * glib.h: provide G_GNUC_FUNCTION and G_GNUC_PRETTY_FUNCTION to
              avoid conditionals. unconditionally define NULL, TRUE, FALSE, MAX,
              MIN, ABS and CLAMP, these macros might be screwed from other headers.
      e8df8ce1
  4. 10 May, 1998 2 commits
    • Tim Janik's avatar
      218e6199
    • Owen Taylor's avatar
      Try to figure out if this is Digital Unix and we need -std1 to get the · f75d8b0c
      Owen Taylor authored
      Sat May  9 20:11:20 1998  Owen Taylor  <otaylor@gtk.org>
      
      	* configure.in (LIBS): Try to figure out if this
      	is Digital Unix and we need -std1 to get the
      	right prototypes.
      
      Sat May  9 20:08:12 1998  Owen Taylor  <otaylor@gtk.org>
      
      	* glib/gmem.c: Experimentally restore GMemChunk
      	to its primeval state - where mem areas are
      	freed incrementally instead of searching the tree
      	every time a mem area is completely empty. Also,
      	always keep one mem chunk around. (Reduced calls
      	to malloc() a lot, but doesn't really improve
      	performance significiantly)
      
      Fri May  8 21:31:50 1998  Owen Taylor  <otaylor@gtk.org>
      
      	* gtk/gtkwidget.c (gtk_widget_queue_draw): Free the
      	draw-queue when we are done.
      
      	(gtk_widget_queue_draw/_queu_resize): Always return
      	FALSE and avoid having two idles at the same time.
      
      Fri May  8 21:04:00 1998  Owen Taylor  <otaylor@gtk.org>
      
      	* gtk/gtktext.c: Various fixes to make sure cache
      	lines are freed if line_start_cache doesn't point to the
      	beginning of the cache.
      
      Thu May  7 09:44:22 1998  Owen Taylor  <otaylor@gtk.org>
      
      	* style_set improvements for GtkText and GtkEntry
      
      Tue May  5 19:49:27 1998  Owen Taylor  <otaylor@gtk.org>
      
      	* gdk/gdkpixmap.c: Patches from Gordon Matzigkeit
      	to speed things up and remove code duplication.
      
      	Reintegrated buffer overflow patches, and added
      	some extra paranoia.
      
      Tue May  5 17:04:14 1998  Owen Taylor  <otaylor@gtk.org>
      
      	* gdk/gdk.c (gdk_event_translate): A guint * was
      	being passed where X expected a Keysym *, and
      	keysyms are long's on Alpha Linux. This was causing
      	segfaults in Xlib, apparently because of alignment.
      	(Bug located by Juergen Haas <haas@forwiss.uni-passau.de>)
      
      Tue May  5 19:11:27 1998  Owen Taylor  <otaylor@gtk.org>
      
      	* gtk/gtkdrawingarea.c (gtk_drawing_area_realize): Always
      	set GDK_EXPOSURE_MASK for DrawingAreas
      
      Tue May  5 14:32:37 1998  Owen Taylor  <otaylor@gtk.org>
      
      	* gtk/gtkwidget.[ch]: removed gtk_widge_propagate_default_style
      	(superceded by RC file reparsing capabilities)
      
      	* gtk/gtkwindow.c: Add handling for _GDK_READ_RFCILES client
      	events. (Shouldn't be sent to the InputOnly leader, which
      	it is now by gdk_event_send_clientmessage_toall
      
      	* gtk/testgtk.c: Added extra button to rcfiles test
      	to send out _GDK_READ_RCFILES events.
      
      Tue May  5 11:03:00 1998  Owen Taylor  <otaylor@gtk.org>
      
      	* gtk/gtkselection.c (gtk_selection_clear): Fixed
      	reversed conditionals that caused segfault on some
      	platforms.
      
      Tue May  5 00:44:47 1998  Owen Taylor  <otaylor@gtk.org>
      
      	* gtk/gtkcontainer.c (gtk_container_set_focus_[hv]adjustment):
      	cast to GTK_OBJECT for gtk_object_ref.
      f75d8b0c
  5. 07 May, 1998 1 commit
    • Tim Janik's avatar
      postfix -lg* libraries with LT_RELEASE. · 39ff37dc
      Tim Janik authored
      Thu May  7 05:14:19 1998  Tim Janik  <timj@gtk.org>
      
              * gtk-config.in (--libs): postfix -lg* libraries with LT_RELEASE.
      
              * ltmain.sh: added a new commandline flag -postfix similar to -release,
              but will immediately change the library name.
      
              * gdk/Makefile.am:
              * gtk/Makefile.am: specify -postfix and -version-info
      
              * configure.in: version bump to 1.1.0. added GTK_INTERFACE_AGE and
              GTK_BINARY_AGE. calculate LT_* variables for libtool.
      39ff37dc
  6. 05 May, 1998 1 commit
  7. 04 May, 1998 1 commit
    • Owen Taylor's avatar
      Merges from the gtk-1-0 branch · d142827b
      Owen Taylor authored
      Sun May  3 14:55:34 1998  Owen Taylor  <otaylor@gtk.org>
      
      	* docs/gtkfaq.sgml (CPPFLAGS): Added a FAQ entry about
      	"glibconfig.h" and another about writing another IRC
      	client.
      
      Sat May  2 00:14:05 1998  Owen Taylor  <otaylor@gtk.org>
      
      	* gtk/gtkpreview.c (gtk_trim_cmap): Make sure the
      	parameters to log are doubles. Digital Unix apparently
      	is missing the argument in its prototype.
      
      Sun May  3 19:04:46 1998  Owen Taylor  <otaylor@gtk.org>
      
      	* gtk/gtklabel.c (gtk_label_state_changed): Don't
      	force a clear until the widget is actually on
      	screen.
      
      Hopefully nothing else though CVS think there are a whole
      bunch more changed files.
      d142827b
  8. 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
  9. 01 May, 1998 4 commits
    • rhlabs's avatar
      <raster@redhat.com> · c924b9be
      rhlabs authored
      
      
      <raster@redhat.com>
      
      AHA! more bugs in the get_visual and get_colormap stuff.. guarateed to barf
      if the gdk window you are querying is gdk's own gdk_root_window :) Added
      checks to see if this window is infact the root window.... :)
      
      now ee doesnt barf if you set the image as the bg.. :)
      c924b9be
    • Owen Taylor's avatar
      New function to reset the RC styles for a heirarchy · de210bbd
      Owen Taylor authored
      Fri May  1 12:06:43 1998  Owen Taylor  <otaylor@gtk.org>
      
      	* gtk/gtkwindow.[ch] (gtk_widget_reset_rc_styles): New
      	function to reset the RC styles for a heirarchy
      
              Clear the window background if necessary in
      	gtk_window_style_set.
      
      	* gtk/gtkrc.[ch]: New function gtk_rc_reparse_all() which
      	rereads all previously read RC files.
      
      	* gdk/gdkwindow.c gdk/gdk.h: New function gdk_window_get_toplevels().
      	(Should it just be called gdk_get_toplevels?)
      
      	* gtk/testgtk.c: New test to reload RC files.
      de210bbd
    • Owen Taylor's avatar
      Fix up getting colormap for FOREIGN windows to go along with Raster's fix · 005626bd
      Owen Taylor authored
      Fri May  1 00:42:25 1998  Owen Taylor  <otaylor@gtk.org>
      
      	* gdk/gdkwindow.c (gdk_window_get_colormap): Fix up
      	getting colormap for FOREIGN windows to go along with
      	Raster's fix for visuals.
      005626bd
    • Owen Taylor's avatar
      05bc6a5b
  10. 30 Apr, 1998 1 commit
    • rhlabs's avatar
      <raster@redhat.com> · e909f843
      rhlabs authored
      
      
      <raster@redhat.com>
      
      added 2 memebrs to struct _GdkWindowPrivate (at end) to paralell gtk 1.0
      changes to keep the data structure the same size (otherwise harmless).
      e909f843
  11. 29 Apr, 1998 1 commit
  12. 28 Apr, 1998 1 commit
  13. 15 Apr, 1998 1 commit
    • Miguel de Icaza's avatar
      Fix the problem introduced by whoever thought that randomly changing ints · 21bb8361
      Miguel de Icaza authored
      1998-04-14  Miguel de Icaza  <miguel@nuclecu.unam.mx>
      
      	* gdk/gdkwindow.c (gdk_window_xid_at): Fix the problem introduced
      	by whoever thought that randomly changing ints to unsigned int
      	without reviewing the code was a good idea.  It is, btw not
      	mentioned in the ChangeLog as usual, but I know it was not Elliot
      	the culprit this time.
      21bb8361
  14. 14 Apr, 1998 2 commits
    • Owen Taylor's avatar
      Don't read the character past the end of the text. · 385164d6
      Owen Taylor authored
      Mon Apr 13 21:40:14 1998  Owen Taylor  <owt1@cornell.edu>
      
      	* gtk/gtktext.c (find_char_width): Don't read the
      	character past the end of the text.
      
      	* gtk/gtkrange.c (gtk_real_range_timer): If the mouse
      	button has been released before the timer is activated,
      	don't keep on scrolling.
      
      	* gdk/gdk.c (gdk_event_translate): Filter subsequent configure
      	events after we discard the first. Removed obsolete and
      	sometimes very slow GdkOtherEvent. (Left in gdktypes.h
      	with signal in GTK)
      385164d6
    • Federico Mena Quintero's avatar
      New function; wrapper for XPolygonRegion(). · af36f776
      Federico Mena Quintero authored
      1998-04-13  Federico Mena Quintero  <federico@nuclecu.unam.mx>
      
      	* gdk/gdkregion.c (gdk_region_polygon): New function; wrapper for
      	XPolygonRegion().
      
      	* gdk/gdk.h: Added prototype for gdk_region_polygon().
      
      	* gdk/gdktypes.h (GdkFillRule): New enum type of fill rule for polygons.
      af36f776
  15. 13 Apr, 1998 1 commit
  16. 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
  17. 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
  18. 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
  19. 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
  20. 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
  21. 03 Apr, 1998 1 commit
  22. 01 Apr, 1998 1 commit
  23. 31 Mar, 1998 2 commits
  24. 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
  25. 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
  26. 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
  27. 23 Mar, 1998 1 commit
  28. 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
  29. 17 Mar, 1998 2 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