1. 02 Jan, 1999 2 commits
    • 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
    • Manish Singh's avatar
      gdk/gdk.c gdk/gdkinputnone.h casts to get rid of const warnings · a6da2cf9
      Manish Singh authored
      * gdk/gdk.c
      * gdk/gdkinputnone.h
      * gtk/gtkruler.c: casts to get rid of const warnings
      
      * gtk/Makefile.am: fix gtktypebuiltins.h dependencies, and do a
      cmp so people don't whine about rebuilds
      
      * gtk/gtknotebook.c: use g_snprintf on translated strings, so we
      don't get buffer overflows
      
      * gtk/gtkrc.c: use g_strdup_printf instead of g_malloc/sprintf
      Plug some memleaks.
      
      -Yosh
      a6da2cf9
  2. 01 Jan, 1999 1 commit
    • Jeff Garzik's avatar
      Check for features.h. · 7433badf
      Jeff Garzik authored
              * configure.in, config.h.in:
              Check for features.h.
      
              * gdk/gdkevents.c (gdk_event_put, gdk_events_queue):
              Fixed bug in linked list append logic by replacing hand-coded
              logic with a call to g_list_append.  Bug found by tml.
      
              * gdk/gdkimage.c:
              'gcc -ansi -pedantic' on GNU/Linux spews warnings and errors
              in sys/ipc.h, including one specific admonishment to use
              _SVID_SOURCE or _XOPEN_SOURCE.  Manually defined the latter, and
              included features.h if present to obtain the necessary
              side-effects.
      
              * gtk/gtkclist.c, gtk/gtkeditable.c:
              Eliminates comma-after-final-element warnings.
      
              * gtk/gtkfontsel.c (gtk_font_selection_init):
              Fixed bug where an intl string was declared as _("x") in
              local var initializer.
      7433badf
  3. 29 Dec, 1998 1 commit
  4. 24 Dec, 1998 2 commits
  5. 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
  6. 20 Dec, 1998 1 commit
    • Tim Janik's avatar
      export the priority at which events are processed. · af2c3bd1
      Tim Janik authored
      Sun Dec 20 04:48:59 1998  Tim Janik  <timj@gtk.org>
      
              * gdk/gdk.h (GDK_PRIORITY_EVENTS): export the priority at which
              events are processed.
      
              * gtk/gtk[main|signal|container].[ch]: removed deprecated _interp
              variants: gtk_container_foreach_interp, gtk_idle_add_interp,
              gtk_timeout_add_interp, gtk_signal_connect_interp.
      af2c3bd1
  7. 19 Dec, 1998 2 commits
    • Owen Taylor's avatar
      Don't add the gthread libs to GLIB_LIBS either, or -lgthread -lpthread · 651e2f74
      Owen Taylor authored
      Sat Dec 19 17:28:30 1998  Owen Taylor  <otaylor@redhat.com>
      
      	* configure.in: Don't add the gthread libs to
      	GLIB_LIBS either, or -lgthread -lpthread will get
      	pulled into all applications because of shlib deps.
      
      	* gtk/gtkmain.h gtk/gtkwidget.c gtk/gtk gdk/gdk:
      	Use GLIB's priority #define. Revise scale of
      	priorities.
      651e2f74
    • Tim Janik's avatar
      removed return_if_fail (label->words != NULL) since that's a valid case · 8fc5066a
      Tim Janik authored
      Sat Dec 19 05:37:51 1998  Tim Janik  <timj@gtk.org>
      
              * gtk/gtklabel.c (gtk_label_expose): removed return_if_fail
              (label->words != NULL) since that's a valid case when the label
              is empty, or just default constructed.
              fixed indentation prototype arguments and braces in some places.
              also, pointer comparisions and initializations are done with NULL
              not 0, there's a reason GLib defines NULL.
      
              * gdk/gdkevents.c (gdk_events_pending): return (queued_events ||
              putback_events) so this again returns whether events are pending,
              not whether other sources like idles are pending.
      
              * gtk/gtkmain.c (gtk_main_iteration_do):
              (gtk_main_iteration): return whether the loop is done, not whether
              something got dispatch to restore the original behaviour (yosh: this
              fixes code like in GleSelector).
      8fc5066a
  8. 18 Dec, 1998 1 commit
    • Tim Janik's avatar
      added gdk_flush() after g_main_run(), so we get the original behaviour · d2dc06da
      Tim Janik authored
      Fri Dec 18 01:32:59 1998  Tim Janik  <timj@gtk.org>
      
              * gtk/gtkmain.c (gtk_main): added gdk_flush() after g_main_run(), so we
              get the original behaviour back, i.e. the event queue needs to be flushed
              after a main loop has been quitted.
              (gtk_main): add/remove the current main loop to/from the main loop
              before/after init/quit functions have been exected to preserve the
              original gtk_main_quit() behaviour.
      
      Thu Dec 17 23:48:29 1998  Tim Janik  <timj@gtk.org>
      
              * gdk/gdkevents.c (gdk_events_init): changed argument order in call
              to g_main_add_poll() to match recent glib changes.
      d2dc06da
  9. 17 Dec, 1998 4 commits
  10. 16 Dec, 1998 4 commits
  11. 15 Dec, 1998 7 commits
    • Elliot Lee's avatar
      Use G_IO_ERR|G_IO_HUP|G_IO_NVAL as the mask for checking for · a8e00e21
      Elliot Lee authored
      1998-12-15  Elliot Lee  <sopwith@bogus.cuc.ml.org>
      
      	* gdk/gdkevents.c: Use G_IO_ERR|G_IO_HUP|G_IO_NVAL
      	as the mask for checking for GDK_INPUT_EXCEPTION events.
      a8e00e21
    • Owen Taylor's avatar
      Added gdk_text_extents_wc() · a3c1e86f
      Owen Taylor authored
      Tue Dec 15 14:30:35 1998  Owen Taylor  <otaylor@redhat.com>
      
      	* gdk/gdk.h gdk/gdkfonts.c: Added gdk_text_extents_wc()
      
              * Patch from Jonathan Blanford <jrb@redhat.com> to add line wrapping
      	  to label. (Based on patch from Jeff Dairiki
      	  <dairiki@mac-ceope.apl.washington.edu> gtk-dairiki-971208-0)
      
      	- Adds new function gtk_label_set_line_wrap()
      	- implement GTK_JUSTIFY_FILL.
      	- rename gtk_label_set to gtk_label_set_text() add
      	   gtk_label_set() to gtkcompat.h.
      
      	* Use an internal wc representation in the label, so
      	  that we handle underlining and line breaks correctly
      	  for multi-byte strings.
      a3c1e86f
    • Owen Taylor's avatar
      Keep separate putback_events and queued_events queues so that we get both · 1bf27c35
      Owen Taylor authored
      Tue Dec 15 10:26:23 1998  Owen Taylor  <otaylor@redhat.com>
      
      	* gdk/gdkevents.c: Keep separate putback_events and
      	queued_events queues so that we get both FIFO and
      	preemptive behavior for	gdk_event_put().
      1bf27c35
    • Owen Taylor's avatar
      Removed unused variable, fixed minor memory leak. · 9a9f4591
      Owen Taylor authored
      Tue Dec 15 09:22:44 1998  Owen Taylor  <otaylor@gtk.org>
      
      	* gtk/gtkrc.c (gtk_rc_init): Removed unused
      	variable, fixed minor memory leak.
      
      	* gdk/gdk.c: Fixed another merge problem.
      9a9f4591
    • Owen Taylor's avatar
      Remove gdk_signal, which crept back in in last commit. · a2fc714a
      Owen Taylor authored
      Tue Dec 15 08:53:38 1998  Owen Taylor  <otaylor@redhat.com>
      
              * gdk/gdk.c (gdk_get_display): Remove gdk_signal,
              which crept back in in last commit.
      
      gdk/gdkevents.c: File missed on last commit.
      
      CVS
      a2fc714a
    • 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
    • Manish Singh's avatar
      acconfig.h removed IPC_RMID_DEFERRED_RELEASE check · 58475f05
      Manish Singh authored
      * acconfig.h
      * configure.in: removed IPC_RMID_DEFERRED_RELEASE check
      
      * gdk/gdk.c: remove signal handlers, since we do an IPC_RMID
      after XShmAttach, and nobody complained
      
      -Yosh
      58475f05
  12. 12 Dec, 1998 1 commit
  13. 09 Dec, 1998 4 commits
    • Sebastian Wilhelmi's avatar
      Fixed argument list and return type for non-XIM fallback. · d3483d01
      Sebastian Wilhelmi authored
      Wed Dec  9 13:06:31 1998  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
      
       	* gdk/gdkim.c (gdk_ic_new,gdk_ic_{set,get}_attr): Fixed argument
       	list and return type for non-XIM fallback.
      
       	* configure.in: Only build XIM-support if available.
      d3483d01
    • Owen Taylor's avatar
      Add in missing 'flags' field to target list. · dfa88ef9
      Owen Taylor authored
      Wed Dec  9 12:23:30 1998  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/testselection.c (main): Add in missing 'flags'
      	field to target list.
      
      	* gdk/gdkproperty.c (gdk_atom_intern): Actually
      	add the atoms to the local cache.
      dfa88ef9
    • Owen Taylor's avatar
      New file that holds code for dealing with X Input Methods. · a309b7dd
      Owen Taylor authored
      (Missing from last big commit)
      a309b7dd
    • Owen Taylor's avatar
      Destroy widgets _after_ propagating unrealize signals through the widget · 207757e7
      Owen Taylor authored
      Mon Dec  7 10:27:09 1998  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkwidget.c: Destroy widgets _after_ propagating unrealize
      	signals through the widget heirarchy. This is unpleasant, as it
      	causes more X traffic, but is necessary, because we have to clean
      	up our Input Contexts before destroying the X windows.
      	(from matsu-981109-0.patch)
      
      Mon Dec  7 10:18:18 1998  Owen Taylor  <otaylor@redhat.com>
      
      	Applied gtk-a-higuti-981202-0 :
      	[ a-higuti@math.sci.hokudai.ac.jp (Akira Higuchi) ]
      
      	* gdk/gdk.h gdk/gdk.c
      		(gdk_mbstowcs): New function. Nearly equals to mbstowcs, but
      			implemented by a combination of Xlib functions, so
      			it works even with X_LOCALE.
      		(gdk_wcstombs): New function.
      		(g_mbtowc): Removed. No longer needed.
      
      	* gdk/gdk.h gdk/gdkfont.c gdk/gdkdraw.c:
      	        Added _wc() variants to gdk_text_width(),
      		gdk_char_width(), gdk_draw_text(),
      
      	* gdk/gdki18n.h
      		(mblen, mbtowc, wctomb, mbstowcs, wcstombs,
      		 wcslen, wcscpy, wcsncpy):
      			Removed. No longer needed.
      		(iswalnum): Removed.
      		(gdk_iswalnum): New macro.
      		(gdk_iswspace): New macro.
      	* gdk/gdktype.h
      		(GdkWChar): New typedef.
      
      	* gtk/gtkentry.h, gtk/gtkentry.c
      		There are many changes according to the change of the
      		internal representation of text, from multibyte string
      		to wide characters.
      	* gtk/gtkprivate.h, gtk/gtkmain.c
      		Removed the variable gtk_use_mb and related codes.
      	* gtk/gtkspinbutton.c
      		Some changes according to the change of type of entry->text.
      	* gtk/gtktext.h, gtk/gtktext.c
      		Changed the internal representation of text. We use GdkWchar
      		if a fontset is supplied. If not, we use guchar to save
      		memory.
      207757e7
  14. 07 Dec, 1998 2 commits
    • Owen Taylor's avatar
      Use IPC_RMID _after_ doing XShmAttach. This should work everywhere, and · d1045b68
      Owen Taylor authored
      Mon Dec  7 13:38:06 1998  Owen Taylor  <otaylor@redhat.com>
      
      	* gdk/gdkimage.c (gdk_image_new): Use IPC_RMID
      	_after_ doing XShmAttach. This should work everywhere,
      	and avoid the need for signal handlers or configure
      	checks.
      d1045b68
    • Owen Taylor's avatar
      New functions gtk_window_set_transient_for() - set up a "transient for" · 621beb8a
      Owen Taylor authored
      Mon Dec  7 01:29:27 1998  Owen Taylor  <otaylor@gtk.org>
      
      	* gtk/gtkwindow.c: New functions
              gtk_window_set_transient_for() - set up a "transient for" relationship.
      	gtk_window_set_default_size() - set the initial size of a window
      	   distinct from its minimum size.
      	gtk_window_set_geometry_hints() - Allow the user to set
      	   minimum, maximum sizes, aspect rations, and gridded geometry,
      	   possibly all with respect to a subwidget of the window.
      	These interfaces are still a wee bit experimental.
      
      	* gdk/gdk.c: Added gdk_window_set_transient_for(),
      	gdk_window_set_geometry_hints(), and gdk_window_set_role().
      
      	* gdk/gdktypes.h: Added new types for find-grained specification
      	of WM hints.
      
      	* gtk/testgtk.c: Various changes to tests to test the
      	above new functions.
      
      	* gtk/gtkfontsel.c: Squash a few 'const' warnings.
      
      	* gtk/gtktogglebutton.c (gtk_toggle_button_realize): Restored
      	call to gtk_style_set_background() to prevent egregious
      	flashing to black.
      621beb8a
  15. 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
  16. 27 Nov, 1998 1 commit
  17. 24 Nov, 1998 2 commits
    • 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
    • Jeff Garzik's avatar
      Removed DEFS "+=" mess that breaks recent automakes. INCLUDES is the · 91d99f89
      Jeff Garzik authored
      
      * gdk/Makefile.am, gtk/Makefile.am:
      
              Removed DEFS "+=" mess that breaks recent automakes.
              INCLUDES is the correct way to add to CFLAGS from Makefile.am.
      
      * gdk/gdk.c, gdk/gdkglobals.c, gdk/gdkimage.c, gdk/gdkinput.c,
      gdk/gdkpixmap.c, gdk/gdkthreads.c, gdk/gdkwindow.c,
      gdk/gxid_lib.c, gtk/fnmatch.c, gtk/gtkclist.c, gtk/gtkmain.c,
      gtk/testthreads.c:
      
              Include "config.h" instead of "../config.h".
      
              Now that DEFS works again, automake will automatically pass us
              the location of config.h in -I.
      91d99f89
  18. 22 Nov, 1998 1 commit
  19. 18 Nov, 1998 2 commits
    • Owen Taylor's avatar
      Accept drops that are sent to a toplevel but are not within the toplevels · 8715d1c1
      Owen Taylor authored
      Wed Nov 18 11:54:57 1998  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkdnd.c (gtk_drag_find_widget): Accept drops
      	that are sent to a toplevel but are not within the
      	toplevels bounds.
      
      	* gdk/gdkdnd.c gdk/gdk.h: Added support for a
      	XdndProxy atom which proxies the drag to another window.
      8715d1c1
    • Carsten Haitzler's avatar
      Tue Nov 17 1998 The Rasterman <raster@redhat.com> Added · 6343181e
      Carsten Haitzler authored
      
      
      Tue Nov 17 1998 The Rasterman <raster@redhat.com>
              * gdk/gdk.h, gdk/gdkwindow.c: Added gdk_window_get_deskrelative_origin
                function to correctly determine gdk window position relative to
      	  its "root window" - contains check for an Enlightenment
      	  virtual root window.
              * gtk/gtkhandlebox.c: changed gdk_window_get_origin ->
      	  gdk_window_get_deskrelative_origin to get the origin of dragged
      	  handleboxes correctly. Now it works correctly with E.
      6343181e