1. 24 Nov, 1998 1 commit
    • Owen Taylor's avatar
      Added layout widget for scrolling arbitrarily big areas. Added plug/socket · ee1d4392
      Owen Taylor authored
      Mon Nov 23 22:10:09 1998  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/Makefile.am gtk/gtk.h gtk/gtklayout.[ch]
      	gtk/gtkplug.[ch] gtk/gtksocket.[ch] gtk/gtk.h:
      
      	Added layout widget for scrolling arbitrarily big areas.
      	Added plug/socket widgets for interprocess embedding.
      
      	These widgets still, at some point, need to be
      	made more pure in their use of GDK, as opposed
      	to raw X.
      
      	* gtk/testgtk.c: Added test for layout widget.
      ee1d4392
  2. 23 Nov, 1998 2 commits
  3. 19 Nov, 1998 1 commit
  4. 06 Nov, 1998 1 commit
  5. 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
  6. 10 Oct, 1998 1 commit
    • Tim Janik's avatar
      take the left, right, top and bottom attach arguments as mandatory and · 357c50b1
      Tim Janik authored
      Sat Oct 10 03:37:50 1998  Tim Janik  <timj@gtk.org>
      
              * gtk/gtktable.c (gtk_table_set_child_arg): take the left, right, top
              and bottom attach arguments as mandatory and readjust the table size
              and opposing edge accordingly if required. this way the order in which
              the arguments are set doesn't matter.
      357c50b1
  7. 08 Oct, 1998 1 commit
  8. 27 Sep, 1998 1 commit
  9. 12 Sep, 1998 1 commit
    • Owen Taylor's avatar
      at Sep 12 10:44:06 1998 Owen Taylor <otaylor@redhat.com> · fb00a59c
      Owen Taylor authored
      	* gtkfilesel.c: Maintain a list of directories like
      	/afs we know contain only directories, and avoid
      	stat'ing files in those directories. (Because
      	stat'ing all files in /afs is extremely expensive)
      
      	To support automounters, try to open directories,
      	even if we couldn't find them when reading their
      	parent directory.
      fb00a59c
  10. 25 Aug, 1998 1 commit
    • Owen Taylor's avatar
      Reference count the fonts used in the text widget. · caf8ebc6
      Owen Taylor authored
      Mon Aug 24 18:37:15 1998  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtktext.c: Reference count the fonts used in
      	the text widget.
      
      	* gdk/gdk.h gdk/gdkcolor.c: Rename the color allocation
      	freeing functions to be more consistent, and more
      	convenient; leave the old names in for backwards compatibility.
      
      	* gdk/gdkcolor.c gdk/gdkprivate.h: Reference count the
      	allocations in pseudo-color colormaps to greatly reduce
      	calls to XAllocColor. Keep a per-colormap hashtable to
      	speed up finding if there is an already-allocated matching
      	color.
      
      	* gdk/gdkcolor.c: Don't just match read the system colormap
      	when the colormap is created, but synchronize our copy
      	with the system colormap periodically.
      
      	* gdk/gdk.c gdk/gdktypes.h gtk/gtkentry.c gtk/gtktext.c:
      	Change XIM constants names to match GDK conventions
      
      	* gtk/testinput.c: Allow the drawing area to get the focus.
      
      	* gtk/testgtk.c: Change around the Text test to demonstrates
      	multiple fonts, use more colors.
      
      	* gtk/gtkwidget.c: Improve gtk_widget_get_colormap()/visual()
      	so they work after a widget is unrealized.
      
      	* gtk/gtktext.[ch]: Remove the requirement that the text
      	widget be realized before adding text (!) Allocate colors
      	ourself, instead of requiring the caller allocate them.
      	Allow changing styles to work properly by keeping track
      	of the values for a certain property are default or
      	set explicitely.
      
      	* gtk/gtkmenu.h: Added some comments.
      
      	* gtk/gtkentry.c: Changes to match XIM constants.
      
      	* gtk/gdk.h gdk/gdkwindow.c: Add gdk_drawable_set_data(),
      	for adding keyed data to drawables. (Uses g_dataset
      	internally)
      
      	* gdk/gdkpixmap.c: Keep track of the colors we allocate,
      	when creating an XPM - store them as user data for the GdkPixmap,
      	so we don't leak colors when we create pixmaps from XPM's.
      
      	Allocate memory for color information in large blocks instead of
      	as many little pieces.
      caf8ebc6
  11. 17 Aug, 1998 1 commit
    • Tim Janik's avatar
      version bump to 1.1.1, binary age 0, interface age 0. pass "gmodule" to · 7b9b0ab0
      Tim Janik authored
      Mon Aug 17 01:40:00 1998  Tim Janik  <timj@gtk.org>
      
              * configure.in: version bump to 1.1.1, binary age 0, interface age 0.
              pass "gmodule" to AM_PATH_GLIB, with that we require libgmodule.so now.
      
              * gtk/gtkmain.c (gtk_init): since glib's g_return*_if_fail macros log
              with G_LOG_LEVEL_CRITICAL now, i added "--g-fatal-checks",
              "--gdk-fatal-checks" and "--gtk-fatal-checks". that makes up six
              different *-fatal-* arguments now. this needs to be revised and
              compressed to a reasonable amount of arguments.
      7b9b0ab0
  12. 15 Jul, 1998 1 commit
    • Lars Hamann's avatar
      Added focus handling, horizontal and vertical autoscrolling, extended · 8b9b7b9d
      Lars Hamann authored
      * gtk/gtkctree.h :
      * gtk/gtkctree.c :
        Added focus handling, horizontal and vertical autoscrolling,
        extended Selection Mode, key bindings
        Added gtk_ctree_toggle_expansion & gtk_ctree_toggle_expansion_recursive
        Changed gtk_ctree_scroll_to to gtk_ctree_moveto.
        Removed gtk_ctree_clear.
      
      * gtk/gtkclist.h :
      * gtk/gtkclist.c :
        Added focus handling, horizontal and vertical autoscrolling,
        extended Selection Mode, key bindings
      8b9b7b9d
  13. 09 Jul, 1998 1 commit
    • Tim Janik's avatar
      deleted most of the argument handling code, since that is now implemented · 347efc33
      Tim Janik authored
      Fri Jul 10 00:02:04 1998  Tim Janik  <timj@gtk.org>
      
      	* gtk/gtkcontainer.h:
      	* gtk/gtkcontainer.c: deleted most of the argument handling code, since
      	that is now implemented in gtkarg.c. similar to gtk_object_args_collect,
      	we now export a new function gtk_container_child_args_collect().
      	for consistency with the object arguments, a few functions got renamed:
      	gtk_container_child_arg_get -> gtk_container_child_get,
      	gtk_container_child_arg_set -> gtk_container_child_set,
      	gtk_container_child_arg_getv -> gtk_container_child_getv,
      	gtk_container_child_arg_setv -> gtk_container_child_setv,
      	gtk_container_add_with_argv -> gtk_container_addv.
      	note, gtk_container_add_with_args() remained, because its equivalent
      	would be gtk_container_add(,, ...) which would break all existing code.
      	(gtk_container_add_child_arg_type): similar to gtk_object_add_arg_type,
      	we expect the `arg_name' argument to be a const static string now.
      	(gtk_container_get_child_arg_type): function removed.
      
      Thu Jul  9 07:03:04 1998  Tim Janik  <timj@gtk.org>
      
      	* gtk/gtkargcollector.c: new file which holds gtk_arg_collect_value().
      	this is a static inline function that collects command line arguments
      	from a va_list. this file can just be included in all places that
      	need this functionality.
      
      	* gtk/gtkarg.h:
      	* gtk/gtkarg.c: new files which implement most of the argument
      	handling stuff from gtkobject.c. also collected a few more
      	gtk_arg_* utility functions from else places.
      
      	* gtk/gtkobject.h:
      	* gtk/gtkobject.c: moved most of the argument handling code into
       	gtkarg.c. we now export gtk_object_args_collect() as a non-public
      	method with a blind va_list pointer.
      	(gtk_object_add_arg_type): the `arg_name' argument is required to be a
      	const static string now.
      	(gtk_object_get_arg_type): function got removed.
      
      	* gtk/gtkwidget.c:
      	(gtk_widget_set):
      	(gtk_widget_new): adaptions for gtk_object_args_collect().
      
      	* gtk/gtktypeutils.c (gtk_type_init_builtin_types): changed the internal
       	fundamental type name so as to have a valid prefix, e.g. "bool"->
      	"gboolean", "string"->"GtkString" and somesuch, left "void" as is,
      	though that should probably be something like GtkNone since the
      	type itself is called GTK_TYPE_NONE.
      	even the internal type names need to avoid name clashes and must live
      	in their own namespace, several code portions rely on that.
      	we should relly have typedefs such as typedef gchar* GtkString; so the
      	fundamental type names can be used for code dumpers just like with all
      	the Gtk/Gdk types.
      347efc33
  14. 07 Jul, 1998 1 commit
    • Tim Janik's avatar
      totaly binary incomnpatible change: · 88fba9f8
      Tim Janik authored
      
      Mon Jul  6 18:30:48 1998  Tim Janik  <timj@gtk.org>
      
              * gtk/gtkbutton.h:
              * gtk/gtkbutton.c: GtkButtons are now derived from GtkBin. we mirror
              GTK_BIN (button)->child to button->child to keep source compatibility.
      
              * gtk/gtkoptionmenu.c:
              * gtk/gtkclist.c:
              * gtkcheckbutton.c: don't refer to button->child, but
              GTK_BIN (button)->child instead.
      88fba9f8
  15. 30 Jun, 1998 1 commit
  16. 16 Jun, 1998 1 commit
  17. 07 Jun, 1998 1 commit
    • Tim Janik's avatar
      fixed an assertment. · a391196b
      Tim Janik authored
      Sat Jun  6 06:01:24 1998  Tim Janik  <timj@gtk.org>
      
              * gtk/gtksignal.c (gtk_signal_emitv): fixed an assertment.
      
              * gtk/makeenums.awk: a script to generate the GtkEnumValue arrays from,
              this should eventually be done by gentypeinfo.el somewhen.
              * gtk/gtkenumvalues.c: new generated file to hold GtkEnumValue arrays.
      
              * gtk/gtktypeutils.h: new function gtk_enum_values() to retrive all the
              enum values of an enum type.
      
              * gtk/gtk.defs:
              * gtk/gtkcurve.h:
              * gtk/gtkobject.h:
              * gtk/gtkprivate.h:
              * gtk/gtkwidget.h:
              * gtk/gtkenums.h:
              brought enum/flags definitions in sync, added a few more enum
              definitions for bindings and pattern matching.
      
              * some more macro and GtkType fixups in various places.
      
              * gdk/gdktypes.h (enum): added a new value GDK_AFTER_MASK, which is used
              as a key-release modifier for the binding system.
      
      Fri Jun  5 06:06:06 1998  Tim Janik  <timj@gtk.org>
      
              * gtk/gtkmenu.h (struct _GtkMenu): removed GList*children, since it
              was a stale list pointer that is already present in GtkMenuShell.
      
              * gtk/gtkmenushell.h (struct _GtkMenuShellClass): added a signal
              GtkMenuShell::selection_done which is emitted after the menu shell
              poped down again and all possible menu items have been activated.
      
      Thu Jun  4 02:20:42 1998  Tim Janik  <timj@gtk.org>
      
              * gtk/gtkmenushell.c (gtk_menu_shell_button_release): flush the x-queue
              before activation of the menuitem, so the menu is actually taken off the
              screen prior to any menu item activation.
      
              * gtk/gtkctree.c (gtk_ctree_get_row_data): allow function invokation
              for NULL nodes.
      
              * gtk/gtkwidget.h:
              * gtk/gtkwidget.c: new function gtk_widget_stop_accelerator to stop
              the emission of the "add-accelerator" signal on a widget. this is
              usefull to prevent accelerator installation on certain widgets.
      
              * gtk/gtknotebook.c (gtk_notebook_menu_item_create): keep the menu
              labels left justified, by setting their alignment. stop accelerator
              installation for the menu items, since we use dynamic menus.
      
      Wed Jun  3 06:41:22 1998  Tim Janik  <timj@gtk.org>
      
              * gtk/gtkmenufactory.c: adaptions to use the new accel groups. people
              should *really* use GtkItemFactory. this is only for preserving source
              compatibility where possible, use of GtkMenuFactory is deprecated as of
              now.
      
              * gtk/gtkobject.h (gtk_object_class_add_user_signal): new function
              to create user signals of type GTK_RUN_NO_RECURSE. don't know why i
              missed this possibility when i added gtk_object_class_add_user_signal
              in late january.
      
              * gtk/gtkmain.c (gtk_init): ignore subsequent function calls.
      
      Sun May 31 07:31:09 1998  Tim Janik  <timj@gtk.org>
      
              * gtk/gtkaccelgroup.h:
              * gtk/gtkaccelgroup.c: new implementation of the accelerator concept.
      
              * gtk/gtkaccellabel.h:
              * gtk/gtkaccellabel.c: new widget derived from GtkLabel whitch features
              display of the accelerators associated with a certain widget.
      
              * gtk/gtkitemfactory.h:
              * gtk/gtkitemfactory.c: new widget, item factory with automatic rc
              parsing and accelerator handling.
      
              * gtk/gtkmenu.c (gtk_menu_reposition): new function to care for
              positioning a menu.
              (gtk_menu_map): removed the allocation code.
              (gtk_menu_size_allocate): care for redrawing of children and resize
              our widget->window correctly.
              (gtk_menu_key_press): feature the new accelerator groups.
      
              * gtk/gtkmenuitem.c (gtk_menu_item_size_allocate): reposition the
              submenu if neccessary.
      
              * gtk/gtkmenuitem.c:
              * gtk/gtkcheckmenuitem.c:
              * gtk/gtkradiomenuitem.c: use GtkAccelLabel in the *_new_with_label()
              function variants.
      
              * gdk/gdk.c:
              (gdk_keyval_from_name):
              (gdk_keyval_name): new functions for keyval<->key-name associations.
              (gdk_keyval_to_upper):
              (gdk_keyval_to_lower):
              (gdk_keyval_is_upper):
              (gdk_keyval_is_lower): new functions to check/translate keyvalues with
              regards to their cases.
      
      Wed May 27 00:48:10 1998  Tim Janik  <timj@gtk.org>
      
              * gtk/gtkwidget.c (gtk_widget_class_path): new function to calculate a
              widget's class path.
              (gtk_widget_path): new function to calculate a widget's name path.
      
              * gtk/gtkrc.c: newly introduced GtkPatternSpec structures to speed up
              pattern matching, features reversed pattern matches.
      a391196b
  18. 11 May, 1998 1 commit
    • Tim Janik's avatar
      new file, gdatasets implement the object data mechanism from GtkObject. a · 01003779
      Tim Janik authored
      Mon May 11 01:44:10 1998  Tim Janik  <timj@gtk.org>
      
              * gdataset.c: new file, gdatasets implement the object data
              mechanism from GtkObject. a generic data pointer is associated with
              a certain location and a key id.
      
      Mon May 11 02:31:19 1998  Tim Janik  <timj@gtk.org>
      
              * gtk/gtkobject.h:
              * gtk/gtkobject.c:
              (gtk_object_data_try_key):
              (gtk_object_data_force_id): these are now macros substituting the old
              functions. we just use the corresponding g_dataset_* functions for
              key->id associations. (this is to assure unique key<->id associations).
      01003779
  19. 05 May, 1998 1 commit
  20. 14 Apr, 1998 1 commit
  21. 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
  22. 10 Apr, 1998 1 commit
  23. 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
  24. 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
  25. 03 Apr, 1998 1 commit
  26. 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
  27. 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
  28. 23 Mar, 1998 3 commits
  29. 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
  30. 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
  31. 14 Mar, 1998 1 commit
  32. 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
  33. 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
  34. 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
  35. 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