1. 14 Apr, 1998 1 commit
  2. 13 Apr, 1998 1 commit
    • Owen Taylor's avatar
      Set a flag so instead of clearing the area in advance. That looked · e6af5d49
      Owen Taylor authored
      Sun Apr 12 20:09:40 1998  Owen Taylor  <owt1@cornell.edu>
      
      	* gtk/gtklabel.[ch] (gtk_label_expose): Set a flag so
      	instead of clearing the area in advance. That looked
      	_really_ bad.
      
      	* gtk/gtkcontainer.c (gtk_container_class_init): Changed
      	"focus" to RUN_LAST.
      
      	* gtk/gtkentry.c (gtk_entry_realize): Fixed place
      	where allocation was used where requisition was meant.
      	(Found by David J N Begley <david@avarice.nepean.uws.edu.au>)
      
      	* gtk/gtkwindow.c (gtk_window_set_default): Fixed
      	assertion in when setting default to NULL>
      	("Damon Chaplin" <DAChaplin@email.msn.com>)
      
      	* gtk/gtkwidget.c (gtk_widget_unparent): Unset the
      	default widget on the toplevel, if necessary.
      
      Sun Apr 12 02:04:21 1998  Owen Taylor  <owt1@cornell.edu>
      
      	* gtk/gtkpreview.c: Removed unecessary and harmful
      	htons/ntohs when storing properties. (X does the byte
      	swapping itself)
      e6af5d49
  3. 10 Apr, 1998 1 commit
  4. 09 Apr, 1998 1 commit
    • 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
  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. 03 Apr, 1998 1 commit
  7. 27 Mar, 1998 1 commit
    • Owen Taylor's avatar
      If the widget is _not_ a descendant of a Window widget, propagate key · e0ea1f0c
      Owen Taylor authored
      Fri Mar 27 00:13:18 1998  Owen Taylor  <owt1@cornell.edu>
      
      	* gtk/gtkmain.c (gtk_propagate_event): If the widget is _not_
      	a descendant of a Window widget, propagate key presses like
      	other events.
      
      	* gtk/gtkentry.c gtk/gtktext.c: Ignore multiple simultaneous
      	button presses instead of treating subsequent presses as
      	release/press pairs for tablet compatibility.
      
      	* configure.in config.h.in: Removed inline checks, because they
      	are duplicated in glib.
      
      	* gtk/gtkwidget.c (gtk_widget_draw): When gtk_widget_draw ()
      	occurs with queued draw already in place, redraw _entire_
      	widget. (Pointed out by Tim Janik)
      e0ea1f0c
  8. 26 Mar, 1998 1 commit
    • Tim Janik's avatar
      always display the correct active state. · c2906f2b
      Tim Janik authored
      Thu Mar 26 21:37:57 1998  Tim Janik  <timj@gtk.org>
      
              * gtk/gtkradiobutton.c (gtk_radio_button_draw_indicator): always
                      display the correct active state.
      
                              * gtk/gtkcheckbutton.c (gtk_real_check_button_draw_indicator): always
                                      display the correct active state.
      
                                              * gtk/gtkwidget.c (gtk_widget_set_arg): CAN_FOCUS and CAN_DEFAULT flag
                                                      changes need to queue a resize.
      
                                                              * gtk/gtkbutton.c (gtk_button_paint): take border_width into
                                                                      consideration for restrict area.
      
                                                                              * gtk/gtktogglebutton.c (gtk_toggle_button_class_init): enable the
                                                                                      draw_default member of GtkButton, otherwise the diplay is messed up
                                                                                              for CAN_DEFAULT toggles.
                                                                                                      (gtk_toggle_button_draw_focus): always display whether the toggle button
                                                                                                              is active or not.
      
                                                                                                                      * gtk/gtkwidget.c (gtk_widget_set_state):
                                                                                                                              (gtk_widget_set_sensitive):
                                                                                                                                      (gtk_widget_set_parent):
                                                                                                                                              (gtk_widget_propagate_state): take into consideration, whether we really
                                                                                                                                                      want to change childrens states, or just restauration of old states.
      c2906f2b
  9. 23 Mar, 1998 3 commits
  10. 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
    • Tim Janik's avatar
      forgot the ChangeLog ;((( · de26d9af
      Tim Janik authored
      -timj
      de26d9af
  11. 18 Mar, 1998 1 commit
    • Tim Janik's avatar
      use the resize queue. · e648c2d6
      Tim Janik authored
      Wed Mar 18 02:06:52 1998  Tim Janik  <timj@gtk.org>
      
              * gtk/gtkcontainer.c (gtk_container_border_width): use the resize queue.
      
                      * gtk/gtkwindow.c (gtk_window_set_arg): gtk_window_set_hints() after
                              setting certain arguments, so they actually take affect.
                                      (gtk_window_set_policy): likewise.
      e648c2d6
  12. 14 Mar, 1998 1 commit
  13. 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
  14. 10 Mar, 1998 1 commit
    • Owen Taylor's avatar
      commiting changes from owen: · 2f50a304
      Owen Taylor authored
      Mon Mar  9 20:38:15 1998  Owen Taylor  <owt1@cornell.edu>
      
              * gtk/gtkentry.c gtk/gtkeditable.c gtk/gtkspinbutton.c:
                Moved "activate" to editable class. Made the vfuncs in
                gtkeditable just vfuncs not signals.
      
              * gtkentry.[ch] gtktext.[ch]: Made behavior when pressing
                multiple buttons at once more rational.
      
              * gtkentry.c gtktext.c: Unified and rationalized key
                bindings. (Now are basically emacs+CUA)
      
              * gtktext.c:
                - Last position now always shares the property of the preceding
                  character
                - Freeze the widget when inserting large amounts of text.
                - Selecting lines now selects the _whole_ line.
                - Fixed bug with displaying the cursor
                - Ctrl-Home/End now move the cursor to the _absolute home/end
      
              * gtkmenuitem.c: Remove necessary code out of a g_return_if_fail
      
      -timj
      2f50a304
  15. 08 Mar, 1998 2 commits
    • Owen Taylor's avatar
      - Show selection correctly when starting selection with arrows · ab30a02e
      Owen Taylor authored
      Sun Mar  8 15:53:33 1998  Owen Taylor  <owt1@cornell.edu>
      
      	* gtk/gtktext.c:
      
      	- Show selection correctly when starting selection with arrows
      
      	- Display pixmap background only when not editable
      
      	- Redraw focus area more carefully to prevent flashing (and
      	  make style of drawing consistent with Entry)
      
      	* gtk/gtktreeitem.c: ref colormaps for pixmap by colormap
      	  storage.
      
      	* gtk/gtkrc.c: Store a separate style for each RcStyle for
      	  each colormap, so we can handle background pixmaps
      	  correctly, which need to be per-colormap. (Leaks
      	  colormaps...)
      
      	  Parse text color style entries correctly.
      
      	* gtk/testgtk.c: insert text without fg color
      	  gtk/testgtkrc: move "*" after rest, so the other class styles
      	                 take effect
      
              * gdk/gdkwindow.c gdk/gdk.c gdk/gdkprivate.h: Send DND events
      	  safely, in case drop window disappears. (Performance hit
      	  because XSync()'s are necessary)
      
      	* gdk/gdk.h gdk/gdkpixmap.c: Added
      	  gdk_pixmap_colormap_create_from_xpm[_d] to allow creating
      	  pixmaps from xpm's before you have a GdkWindow.
      ab30a02e
    • Tim Janik's avatar
      applied a bunch of patches and removed all the printfs that · 5fa1bfcf
      Tim Janik authored
      raster left over.
      -timj
      5fa1bfcf
  16. 07 Mar, 1998 1 commit
    • Owen Taylor's avatar
      Disallow pasting into non-editable widgets. · 1941bf4c
      Owen Taylor authored
      Fri Mar  6 21:30:05 1998  Owen Taylor  <owt1@cornell.edu>
      
      	* gtk/gtkeditable.c: Disallow pasting into non-editable
      	  widgets.
      
      	* gtk/gtktext.[ch]:
      
      	  -Added scrolling when dragging the selection
      	   paste the top/bottom.
      
      	  -Fix some of the problems with displaying the selection
      	   state before mouse release.
      
      	  -Disallow pasting into non-editable widgets
      
      	  -Fixed segfault when changing window size
      
      	  -Update the cursor correctly when switching between
      	   editable and non-editable
      
      	* testgtk.c: Added a toggle button for editability for
      	  the text widget.
      1941bf4c
  17. 06 Mar, 1998 1 commit
  18. 05 Mar, 1998 1 commit
    • Owen Taylor's avatar
      Unset allocation on unparent, to force reallocation if we get adding back · ba55b3f9
      Owen Taylor authored
      Thu Mar  5 01:22:06 1998  Owen Taylor  <owt1@cornell.edu>
      
      	* gtk/gtkwidget.c (gtk_widget_unparent): Unset allocation
      	  on unparent, to force reallocation if we get adding back
      	  to a new parent which is already size-allocated.
      
      	* gtk/gtktreeitem.c: Keep track of separate +/- pixmaps
      	  for each colormap, removed the idle hack.
      
      	* gdk/gdk.c: Don't warn when unable to open XIM method,
      	  since X11R5 apparently has no default method.
      
      	* gtk/gtkwidget.c (gtk_widget_set_style_internal): Don't
      	  call size_request on initial emission - since the
      	  widget size isn't set yet, it can't change.
      
      	* gtk/Makefile.am: New rules 'test' and 'test-debug' to run
      	  testgtk with the correct working directory.
      
      	* gtk/gtkentry.c (gtk_move_forward_word):
      	  Check for position at end of line.
      
      	* gtk/gtkinputdialog.h (struct _GtkInputDialogClass):
      	  removed 'gpointer data' arguments from default handler
      	  structures.
      ba55b3f9
  19. 02 Mar, 1998 1 commit
    • Tim Janik's avatar
      oh, boy, world can be so crude! · 5b51a9f7
      Tim Janik authored
      i'm ading the pixamp after the realize handler to the tree item now,
      via an *idle* handler.
      this gotta be worked out correctly.
      -timj
      5b51a9f7
  20. 01 Mar, 1998 3 commits
    • Tim Janik's avatar
      -timj · 16da0508
      Tim Janik authored
      16da0508
    • Owen Taylor's avatar
      gtk/gtkentry.[ch] gtk/gtktext.[ch] gtkeditable.[ch] · 2630943e
      Owen Taylor authored
      Sun Mar  1 03:20:39 1998  Owen Taylor  <owt1@cornell.edu>
      
      	* gtk/gtkentry.[ch] gtk/gtktext.[ch] gtkeditable.[ch]
      
      	Turned off debugging in gtktext.c
      
      	Bug fixes for cutting, pasting, deleting, etc.
      
      	Some of the bugs that were there before have definitely
      	been fixed.
      
      	* gtk/testgtk.c gtk/testgtkrc: Removed my ugly orange backgrounds,
      	to make things look nicer.
      2630943e
    • Owen Taylor's avatar
      gtk/gtkentry.[ch] gtktext.c gtkeditable.[ch] · 9205edae
      Owen Taylor authored
      Sat Feb 28 23:58:54 1998  Owen Taylor  <owt1@cornell.edu>
      
      	* gtk/gtkentry.[ch] gtktext.c gtkeditable.[ch]
      
      	Created a new base widget type Editable for the entry and
      	text widgets, which encapsulates most of the selection and
      	clipboard handling stuff, plus some common signals.
      
      	Changed the Entry widget extensively to support this,
      	but the interface and appearance should be the same.
      
      	Changed the Text widget moderately to support this.
      
      	It now supports:
      
      	- Selection style cut and paste
      	- Clipboard style cut and paste
      	- Emacs style key bindings (~same as Entry)
      	- Word motion
      	- "changed" signal
      
      	There are definitely still some bugs in the new stuff.
      
      	* gtkfilesel.c gtkspinbutton.c testgtk.c: small changes
      	to fit the new interface more exactly.
      9205edae
  21. 28 Feb, 1998 2 commits
  22. 27 Feb, 1998 1 commit
    • Tim Janik's avatar
      we make an active server grab now, this way we can change the cursor · 693fa02b
      Tim Janik authored
      Fri Feb 27 15:31:55 1998  Tim Janik  <timj@gimp.org>
      
              * gtk/gtktipsquery.c: we make an active server grab now, this way we
              can change the cursor globally and don't need to tweak event masks
              of other windows.
      
              * gtk/gtkframe.c (gtk_frame_style_set): recompute label size.
      
              * gtk/gtkwidget.h:
              * gtk/gtkwidget.c:
              New signal GtkWidget::style_set to be emitted when a widget's style
              changed. New flag GTK_RC_STYLE to indicate whether an rc lookup has
              been perfomed for the widget.
              (gtk_widget_ensure_style): New function.
              (gtk_widget_set_rc_style): New function.
      
              * docs/styles.txt: new file.
      693fa02b
  23. 25 Feb, 1998 1 commit
  24. 24 Feb, 1998 1 commit
  25. 23 Feb, 1998 1 commit
    • Tim Janik's avatar
      TODO updates (major ones ;). · 1b656e0d
      Tim Janik authored
      have the send_event field in all GdkEvents.
      gtkmenu.c, gtkacceleratortable.c, gtkwindow.c: unreference accelerator_table.
      gtk_object_query_args: removed seq_ids again, must have been quite tired
      when i commited that change ;)
      gtkoptionmenu.c: assure GTK_BIN()->child is empty when reparenting
      a menu_items child.
      gtkwindow.c: fixed some memory leaks.
      
      -timj
      1b656e0d
  26. 17 Feb, 1998 1 commit
    • Tim Janik's avatar
      invoke gtk_entry_grow_text already in this place, so the application will · b5cb66dc
      Tim Janik authored
      Tue Feb 17 05:41:31 1998  Tim Janik  <timj@gimp.org>
      
              * gtk/gtkentry.c (gtk_entry_init): invoke gtk_entry_grow_text already
                in this place, so the application will never see entry->text==NULL.
                (see also ChangeLog entry from Tue Feb 11 1997 on this).
      
      
      also i added some blurb about recent changes to the NEWS file,
      and updated the TODO.
      b5cb66dc
  27. 03 Feb, 1998 2 commits
    • Tim Janik's avatar
      don't add the same menu to different menuitems/ optionmenus. · 58423110
      Tim Janik authored
      Tue Feb  3 15:09:55 1998  Tim Janik  <timj@gimp.org>
      
              * gtk/testgtk.c: don't add the same menu to different menuitems/
                optionmenus.
      
              * gtk/gtkmenuitem.h:
              * gtk/gtkmenuitem.c: new function gtk_menu_item_remove_submenu ro
                be consistent with optionmenu. use gtk_menu_attach_to_widget/
                gtk_menu_detach for setting/removing the submenu.
                invoke gtk_widget_destroy(submenu) in destructor to be consistent
                with other destructors.
      
              * gtk/gtkoptionmenu.h:
              * gtk/gtkoptionmenu.c: attach/detach to menu widget via
                gtk_menu_attach_to_widget/gtk_menu_detach.
                invoke gtk_widget_destroy(menu) in destructor to be consistent
                with other destructors.
      58423110
    • Tim Janik's avatar
      attach/detach to menu widget via · b45cd043
      Tim Janik authored
      Tue Feb  3 15:09:55 1998  Tim Janik  <timj@gimp.org>
      
              * gtk/gtkoptionmenu.h:
              * gtk/gtkoptionmenu.c: attach/detach to menu widget via
      
              * gtk/gtkmenu.h:
              * gtk/gtkmenu.c: new functions gtk_menu_attach_to_widget
                and gtk_menu_detach that correspond to the action of
                gtk_widget_set_parent and gtk_widget_unparent.
      
              * gtk/widget.c: few fixups.
      b45cd043
  28. 30 Jan, 1998 2 commits
  29. 24 Jan, 1998 1 commit
  30. 08 Jan, 1998 1 commit
  31. 28 Dec, 1997 1 commit