1. 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
  2. 14 May, 1998 1 commit
    • Tim Janik's avatar
      typedef gint gboolean; this is needed to provide portability with · 004f0982
      Tim Janik authored
      Thu May 14 04:14:12 1998  Tim Janik  <timj@gtk.org>
      
              * glib.h: typedef gint gboolean;
              this is needed to provide portability with big-endian platforms (e.g.
              try sizeof(bool) for c++ on big-endians - it's 4).
              this is also needed to maintain some_union.d_gint==some_union.d_gboolean.
              plus, gint to gboolean casts and vice versa need to be possible without
              loss.
      
      Thu May 14 03:04:43 1998  Tim Janik  <timj@gtk.org>
      
              * gtk/gtktypeutils.c (gtk_type_free): new function to take care about
              freeing types.
              (gtk_type_set_chunk_alloc): new function to allow allocation of new
              types from a mem_chunk of certain size (n_chunks==0 indicates allocation
              thorugh g_malloc).
      
              * gtk/gtkobject.c (gtk_object_finalize): free an object through
              gtk_type_free().
      
              * gtk/gtkbutton.c (gtk_button_get_type): set chunk preallocation for
              GtkButtons to 16.
              * gtk/gtkmenuitem.c (gtk_menu_item_get_type): likewise (16).
              * gtk/gtklabel.c (gtk_label_get_type): likewise (32).
      004f0982
  3. 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
  4. 30 Apr, 1998 1 commit
    • Owen Taylor's avatar
      Allow the user to use the popup list like a menu. · 8850ce81
      Owen Taylor authored
      Thu Apr 30 11:18:00 1998  Owen Taylor  <otaylor@gtk.org>
      
      	* gtk/gtkcombo.[ch]: Allow the user to use the popup list
      	like a menu.
      
      	* gtk/gtkmenuitem.c gtk/gtkitem.c: Moved enter/leave handlers
      	to gtkitem.c so dragging can also work in lists.
      
      	* gtk/gtklist.[ch]: Track child enter events and use
      	those to allow dragging the selection.
      
      Thu Apr 30 11:16:06 1998  Owen Taylor  <otaylor@gtk.org>
      
      	* gtk/gtktext.c: Try enabling background pixmaps for editable text
      	widgets.  There is a bit of flashing, but not too bad. If you
      	don't want the flashing, you can always not set a background
      	pixmap.
      
      Wed Apr 29 15:46:13 1998  Owen Taylor  <otaylor@gtk.org>
      
      	* gtk/gtktext.c: Fixed a bug where the drawn level
      	was being messed up when the text was scrolled
      	during a deletion.
      8850ce81
  5. 13 Apr, 1998 2 commits
    • Owen Taylor's avatar
      An old allocation error. · a3ee7a94
      Owen Taylor authored
      Sun Apr 12 22:43:22 1998  Owen Taylor  <owt1@cornell.edu>
      
      	* gtk/gtkmenuitem.c (gtk_menu_item_size_allocate):
      	An old allocation error.
      
      	* gtk/gtkviewport.c (gtk_viewport_add): Don't map
      	when adding a not-VISIBLE widget to a VISIBLE
      	viewport.
      a3ee7a94
    • PDT 1998 Shawn T. Amundson's avatar
      Changed LGPL address for FSF in all .h and .c files · 92006c8e
      PDT 1998 Shawn T. Amundson authored
      Sun Apr 12 18:54:29 PDT 1998 Shawn T. Amundson <amundson@gtk.org>
      
              * Changed LGPL address for FSF in all .h and .c files
      92006c8e
  6. 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
  7. 03 Apr, 1998 1 commit
    • Owen Taylor's avatar
      More extensive debugging output · 32cd050c
      Owen Taylor authored
      Fri Apr  3 17:14:55 1998  Owen Taylor  <owt1@cornell.edu>
      
      	* gdk/gdk.c: More extensive debugging output
      
      	* gtk/gtkalignment.c gtk/gtkbutton.c gtk/gtkcheckbutton.c
      	  gtk/gtkclist.c gtk/gtkeventbox.c gtk/gtkhandlebox.c
      	  gtk/gtk[hv]box.c gtk/gtk[hv]paned.c gtk/gtklist.c
      	  gtk/gtkmenu.c gtk/gtkmenubar.c gtk/gtkmenuitem.c
      	  gtk/gtknotebook.c gtk/gtktable.c gtk/gtktree.c
      	  gtk/gtktreeitem.c gtk/gtkviewport.c
      
      	Avoid assigning negative values to unsigned allocation.width and
      	height
      
      	* gtk/gtkwindow.c:
      
      	Instead of realizing the widget, then size allocating, (resulting
      	in XMoveResizeWindows for all children, do the size allocation
      	first, then realize.
      
      	In gtk_real_window_move_resize, combine move and resize
      	into a single GDK/X call when possible.
      
      	* gtk/gtkclist.c gtk/gtkdrawingarea.c:
      
      	Remove assumption that the widget will be size allocated _after_
      	it is realized.
      
      	* gtk/gtklist.c (gtk_list_motion_notify): Removed useless
      	debugging message.
      32cd050c
  8. 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
  9. 09 Mar, 1998 1 commit
    • Tim Janik's avatar
      made the <widget>_signals[] arrays of type guint rather than gint. made · d1871831
      Tim Janik authored
      Mon Mar  9 15:48:10 1998  Tim Janik  <timj@gimp.org>
      
              * Signal signedness and naming corrections, plus GtkType fixes:
      
              * gtk/gtkadjustment.c:
              * gtk/gtkbutton.c:
              * gtk/gtkcheckmenuitem.c:
              * gtk/gtkclist.c:
              * gtk/gtkcolorsel.c:
              * gtk/gtkcontainer.c:
              * gtk/gtkcurve.c:
              * gtk/gtkdata.c:
              * gtk/gtkeditable.c:
              * gtk/gtkentry.c:
              * gtk/gtkhandlebox.c:
              * gtk/gtkinputdialog.c:
              * gtk/gtkitem.c:
              * gtk/gtklist.c:
              * gtk/gtkmenuitem.c:
              * gtk/gtkmenushell.c:
              * gtk/gtknotebook.c:
              * gtk/gtkstatusbar.c:
              * gtk/gtktoolbar.c:
              * gtk/gtktree.c:
              * gtk/gtktreeitem.c:
              * gtk/gtkwidget.c:
              * gtk/gtktogglebutton.c:
              * gtk/gtkwindow.c:
              made the <widget>_signals[] arrays of type guint rather than gint.
              * gtk/gtkwidget.c (gtk_widget_get_ancestor): made widget_type a GtkType.
      
              * gtk/gtkcombo.h:
              handler ids need to be of type guint (entry_change_id, list_change_id).
      
              * gtk/gtkaccelerator.c:
              changed signal_num to signal_id and typed it guint.
      
              * gtk/gtkmain.c: made gtk_ndebug_keys a guint.
      
              * gtk/gtkmenu.h:
              * gtk/gtkmenu.c:
              (gtk_menu_popup): made button a guint.
              (gtk_menu_set_active): made index a guint.
      
              * gtk/gtkmenuitem.h:
              * gtk/gtkmenuitem.c:
              made accelerator_signal a guint.
      
              * gtk/gtkoptionmenu.h:
              * gtk/gtkoptionmenu.c:
              (gtk_option_menu_set_history): made index a guint.
      
              * gtk/gtksignal.h:
              * gtk/gtksignal.c:
              * gtk/gtkobject.h:
              * gtk/gtkobject.c: changed a bunch of prototypes to take guints rather
              than gints. also made some conversions from guint to GtkType, left over
              from when the fundamental-types system was introduced.
      
              * gtk/gtkobject.h:
              * gtk/gtkobject.c: made object_data_id_index and obj_count guints.
              made *signals and nsignals guints in GtkObjectClass.
      d1871831
  10. 08 Mar, 1998 1 commit
  11. 03 Feb, 1998 1 commit
    • 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
  12. 30 Jan, 1998 1 commit
  13. 16 Jan, 1998 1 commit
  14. 02 Jan, 1998 1 commit
    • Shawn Amundson's avatar
      corrects a small resize bug in the viewport widget. The viewport widget · dc4e9e2f
      Shawn Amundson authored
              * gtk/gtkviewport.c: corrects a small resize bug in the
                viewport widget.  The viewport widget provides a _set_shadow
                function to draw its shadows. But if GTK_SHADOW_NONE is sent
                to this function, the viewport isn't resized correctly (it's
                still considered as a shadowed widget).  (gtk-fortier-971213-0)
      
              * gtk/gtknotebook.c: this patch fixes the redraw problems of
                notebook tabs, without using gdk_gc_set_clip_rectangle.
                (gtk-hamann_jeske-971218-0)
      
              * add gtk_widget_(show/hide)_all (Stefan Wille)
                (gtk-wille-301297-0)  Patch for testgtk not included
                because it did not patch clean.
      
      -Shawn
      dc4e9e2f
  15. 18 Dec, 1997 1 commit
  16. 24 Nov, 1997 1 commit