1. 14 Jul, 1998 2 commits
    • Tim Janik's avatar
      macro and GtkType fixups. · a91be935
      Tim Janik authored
      Tue Jul 14 11:41:38 1998  Tim Janik  <timj@gtk.org>
      
              * gtk/gtkdialog.h:
              * gtk/gtkseparator.h:
              * gtk/gtkhseparator.h:
              * gtk/gtkvseparator.h: macro and GtkType fixups.
      a91be935
    • Tim Janik's avatar
      display the current cursor name. · da355fee
      Tim Janik authored
      Tue Jul 14 06:25:46 1998  Tim Janik  <timj@gtk.org>
      
              * gtk/testgtk.c (create_cursors): display the current cursor name.
      
              * gtk/gtktypeutils.h:
              * gtk/gtktypeutils.c (gtk_type_init_builtin_types): cleanups to
              the fundamental type definition. the GtkArg union now only covers
              the required storage types for argument values. adapted the GTK_VALUE_*
              macro set. handle GTK_TYPE_UCHAR. definiton of type set bounds macros.
      
              * gtk/gtkargcollector.c (gtk_arg_collect_value): clean ups of the
              code, fixed int/float collection. fixed a bug in the sanity checking
              code for GtkObjects.
      
              * gtk/gtkbindings.c (gtk_binding_entry_add_signal): fixups of the
              argument collection code.
      
              * gtk/gtksignal.c (gtk_signal_collect_params): use the type set bounds
              macros when distinguishing the return type.
      da355fee
  2. 13 Jul, 1998 1 commit
  3. 12 Jul, 1998 3 commits
    • Tim Janik's avatar
      fix float argument collection (always casted to doubles upon argument · 8792bbbd
      Tim Janik authored
      Sun Jul 12 16:40:06 1998  Tim Janik  <timj@gtk.org>
      
              * gtk/gtkargcollector.c (gtk_arg_collect_value): fix float argument
              collection (always casted to doubles upon argument passing).
      8792bbbd
    • Tim Janik's avatar
      call the base classes' object_init_func for derived objects with the · 34b7b5d7
      Tim Janik authored
      Sun Jul 12 05:59:26 1998  Tim Janik  <timj@gtk.org>
      
              * gtk/gtktypeutils.c (gtk_type_new): call the base classes'
              object_init_func for derived objects with the object's ->klass field
              still pointing to the corresponding base class, otherwise overridden
              class functions could get called with partly-initialized objects.
              (change from Tero Pulkkinen <terop@modeemi.cs.tut.fi>).
      34b7b5d7
    • Tim Janik's avatar
      new functions which wraps gtk_arg_get_info(). · ab7cb501
      Tim Janik authored
      Sun Jul 12 02:47:35 1998  Tim Janik  <timj@gtk.org>
      
              * gtk/gtkobject.h:
              * gtk/gtkobject.c:
              (gtk_object_arg_get_info): new functions which wraps gtk_arg_get_info().
      
              * gtk/gtkcontainer.h:
              * gtk/gtkcontainer.c:
              (gtk_container_child_arg_get_info): new function which wraps
              gtk_arg_get_info().
      ab7cb501
  4. 10 Jul, 1998 6 commits
  5. 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
  6. 08 Jul, 1998 1 commit
    • Tim Janik's avatar
      handle GTK_RELIEF_HALF, which was introduced to keep either · 9b4d9046
      Tim Janik authored
      Wed Jul  8 15:31:28 1998  Tim Janik  <timj@gtk.org>
      
              * gtk/gtkbutton.c: handle GTK_RELIEF_HALF, which was introduced to
              keep either GTK_STATE_NORMAL for relief buttons (GTK_RELIEF_NONE) or
              to still honour GTK_WIDGET_STATE(), e.g. for coloured buttons
              (GTK_RELIEF_HALF).
              (gtk_button_paint): set the background for prelighted buttons with
              GTK_STATE_NORMAL only if GTK_RELIEF_NONE.
              (gtk_button_draw_focus): if GTK_RELIEF_NONE, use GTK_STATE_NORMAL for
              the shadow type (otherwise we get strange shadows for coloured buttons).
              (gtk_button_set_relief): queue a redraw after changing
              the relief.
              (gtk_button_class_init):
              (gtk_button_set_arg):
              (gtk_button_get_arg): added object argument "GtkButton::relief".
      
              * gtk/gtkenums.h (enum): added GTK_RELIEF_HALF.
      9b4d9046
  7. 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
  8. 06 Jul, 1998 1 commit
  9. 04 Jul, 1998 1 commit
  10. 03 Jul, 1998 14 commits
  11. 01 Jul, 1998 3 commits
  12. 30 Jun, 1998 5 commits
    • Tim Janik's avatar
      minor updates. · 79e1b1ab
      Tim Janik authored
      79e1b1ab
    • Tim Janik's avatar
      fixed lookup order for rc styles. the latest defined rc set pattern is · 10184125
      Tim Janik authored
      Tue Jun 30 14:30:37 1998  Tim Janik  <timj@gtk.org>
      
              * gtk/gtkrc.c: fixed lookup order for rc styles. the latest defined
              rc set pattern is favoured, this is needed for overriding of style
              patterns with subsequently parsed rc files.
      10184125
    • Tim Janik's avatar
      code overhaul for simplicity and more descriptive error messages. · b483ca4b
      Tim Janik authored
      Tue Jun 30 12:45:19 1998  Tim Janik  <timj@gtk.org>
      
              * gtk/gtkrc.c: code overhaul for simplicity and more descriptive
              error messages.
      b483ca4b
    • Tim Janik's avatar
      ok, this enables the possibility for key-release bindings. · 80b0b3ea
      Tim Janik authored
      but nearly no widget really cares to set GDK_KEY_RELEASE_MASK,
      which needs to be enabled in order for release bindings to work.
      
      Tue Jun 30 09:24:40 1998  Tim Janik  <timj@gtk.org>
      
              * gtk/gtkaccelgroup.c (gtk_accelerator_parse): parse "<Release>"
              modifier as well.
              (gtk_accelerator_name): add "<Release>" to the accelerator name if
              neccessary.
      
              * gtk/gtkbindings.c (BINDING_MOD_MASK): take BINDING_MOD_MASK into
              account.
      
              * gtk/gtkwidget.c (gtk_widget_real_key_release_event): implemented
              default handler for key-release events, which checks for activation
              of GDK_RELEASE_MASK key bindings.
      
              * gdk/gdktypes.h (enum): added GDK_RELEASE_MASK to GdkModifierType.
      80b0b3ea
    • Tim Janik's avatar
      implemented default handler for key-release events, which checks for · bf44f089
      Tim Janik authored
      Tue Jun 30 09:24:40 1998  Tim Janik  <timj@gtk.org>
      
              * gtk/gtkwidget.c (gtk_widget_real_key_release_event): implemented
              default handler for key-release events, which checks for activation
              of GDK_RELEASE_MASK key bindings.
      
              * gdk/gdktypes.h (enum): added GDK_RELEASE_MASK to GdkModifierType.
      bf44f089
  13. 29 Jun, 1998 1 commit