1. 07 Jun, 1998 6 commits
    • Manish Singh's avatar
      silly typo · c1665b14
      Manish Singh authored
      -Yosh
      c1665b14
    • Tim Janik's avatar
      feature check menu items in the compatibility code (this required me to · 8102e79d
      Tim Janik authored
      Sun Jun  7 14:34:31 1998  Tim Janik  <timj@gtk.org>
      
              * gtk/gtkitemfactory.c (gtk_item_factory_create_menu_entries): feature
              check menu items in the compatibility code (this required me to remove
              the "<check>" part from the menu item name, grrr).
      8102e79d
    • Tim Janik's avatar
      further additions to fit the gimp's code. additions to the dumping code to · 50a9ba1f
      Tim Janik authored
      Sun Jun  7 10:53:02 1998  Tim Janik  <timj@gtk.org>
      
              * gtk/gtkitemfactory.h:
              * gtk/gtkitemfactory.c: further additions to fit the gimp's code.
              additions to the dumping code to feature GtkPatternSpec.
              even found a bug to fix in the original code ;)
      50a9ba1f
    • Tim Janik's avatar
      support different types of callbacks, to maintain existing code. · 210cb3f5
      Tim Janik authored
      Sun Jun  7 09:36:04 1998  Tim Janik  <timj@gtk.org>
      
              * gtk/gtkitemfactory.h:
              * gtk/gtkitemfactory.c: support different types of callbacks, to
              maintain existing code.
      
      
      ... changes to the item factory to ease support of the gimp's code...
      210cb3f5
    • Tim Janik's avatar
      cd8e439b
    • 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. 06 Jun, 1998 1 commit
  3. 02 Jun, 1998 2 commits
  4. 25 May, 1998 1 commit
  5. 24 May, 1998 1 commit
  6. 23 May, 1998 1 commit
    • Owen Taylor's avatar
      Locate child at (border_width,border_width), not · 53d06396
      Owen Taylor authored
      Sat May 23 17:48:58 1998  Owen Taylor  <otaylor@gtk.org>
      
      	* gtk/gtkeventbox.c (gtk_event_box_size_allocate):
              Locate child at (border_width,border_width), not
      	(2*border_width,2*border_width). [ The border is _outside_
      	widget->window ]
      
      	* gdk/gdk.[ch]: added gdk_screen_width_mm/gdk_screen_height_mm
      	  functions. [From: Alexander Larsson <alla@lysator.liu.se> ]
      53d06396
  7. 22 May, 1998 5 commits
  8. 21 May, 1998 2 commits
  9. 19 May, 1998 1 commit
  10. 18 May, 1998 2 commits
    • Elliot Lee's avatar
      Allow GTK_DEBUG=signals - VERY useful ;-) · 67baa4b4
      Elliot Lee authored
      
      
      Allow GTK_DEBUG=signals - VERY useful ;-)
      67baa4b4
    • Tim Janik's avatar
      changed "proximity-in-event", "drop-data-available-event", · c174981e
      Tim Janik authored
      Mon May 18 04:01:41 1998  Tim Janik  <timj@gtk.org>
      
              * gtk/gtkwidget.c (gtk_widget_class_init): changed "proximity-in-event",
              "drop-data-available-event", "drop-enter-event" and "drop-leave-event"
              to be of runtype GTK_RUN_LAST.
      
              * gtk/gtkcontainer.c (gtk_container_class_init): likewise for
              "need-resize".
      
              * gtk/gtktipsquery.c (gtk_tips_query_class_init): likewise for
              "widget-selected".
      c174981e
  11. 16 May, 1998 4 commits
    • Tim Janik's avatar
      g_strdup() the text retrived from GtkEntry. only intercept the Tab key if · 5aa450f9
      Tim Janik authored
      Sat May 16 09:04:32 1998  Tim Janik  <timj@gtk.org>
      
              * gtk/gtkfilesel.c (gtk_file_selection_key_press): g_strdup() the
              text retrived from GtkEntry. only intercept the Tab key if there
              was some text to complete.
      5aa450f9
    • Owen Taylor's avatar
      Basic thread-awareness: · dc93f21f
      Owen Taylor authored
      Fri May 15 21:16:54 1998  Owen Taylor  <otaylor@gtk.org>
      
      	Basic thread-awareness:
      
      	* acconfig.h configure.in: New option --with-threads=[yes/posix/no]
      
      	* gdk/Makefile.am gdk/gdkthreads.c: Added new functions
      	gdk_threads_[init/enter/leave] for applications, plus
      	gdk_threads_wake to wake the mainloop thread out of
      	the select().
      
      	* gtk/Makefile.am: gtk/testthreads.c: Test program for threads
      dc93f21f
    • Owen Taylor's avatar
      Basic thread-awareness: · 45714833
      Owen Taylor authored
      Fri May 15 21:16:54 1998  Owen Taylor  <otaylor@gtk.org>
      
      	Basic thread-awareness:
      
      	* acconfig.h configure.in: New option --with-threads=[yes/posix/no]
      
      	* gdk/Makefile.am gdk/gdkthreads.c: Added new functions
      	gdk_threads_[init/enter/leave] for applications, plus
      	gdk_threads_wake to wake the mainloop thread out of
      	the select().
      
      	* gtk/Makefile.am: gtk/testthreads.c: Test program for threads
      
      Fri May 15 12:08:48 1998  Owen Taylor  <otaylor@gtk.org>
      
      	* gtk/testgtk.c (list_clear): Account for the fact
      	that gtk_list_clear_items is not inclusive. (Clears
      	[start, end))
      45714833
    • Manish Singh's avatar
      ignore furry autogened files · 123e299b
      Manish Singh authored
      -Yosh
      123e299b
  12. 15 May, 1998 2 commits
    • Manish Singh's avatar
      bye bye autogenerated file · c71c5f6a
      Manish Singh authored
      -Yosh
      c71c5f6a
    • Tim Janik's avatar
      [binray incompatibility] · 152ff348
      Tim Janik authored
      
      [binray incompatibility]
      
      
      Fri May 15 00:56:59 1998  Tim Janik  <timj@gtk.org>
      
              * glib.h: further support for gcc function attributes: G_GNUC_FORMAT,
              G_GNUC_NORETURN and G_GNUC_CONST.
      
              * gscanner.c (g_scanner_stat_mode): changed stat() to lstat().
              (g_scanner_msg_handler): "\n" at end of line!
              (g_scanner_foreach_symbol): new function to iterate over the symbol
              table (GScanner does value-wrapping).
      
      Fri May 15 09:44:10 1998  Tim Janik  <timj@gtk.org>
      
              * gtk/gtkwidget.h (struct _GtkWidgetClass): corrected returntype of
              the visibility_notify_event method and changed method order.
      152ff348
  13. 14 May, 1998 2 commits
    • 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
    • 4's avatar
      gtk/gtkwidget.[ch] Added visibility_notify_event to GtkWidget · 344a2717
      4 authored
      
      
      1998-05-14    <sopwith@moebuis.labs.redhat.com>
      
              * gtk/gtkwidget.[ch] Added visibility_notify_event to GtkWidget
      
      Can you say "binary incompatible"? :-)
      344a2717
  14. 13 May, 1998 2 commits
    • Owen Taylor's avatar
      A few more GPOINTER_TO_UINT fixes. · 4283c9de
      Owen Taylor authored
      Wed May 13 00:53:52 1998  Owen Taylor  <otaylor@gtk.org>
      
      	* gtk/gtktypeutils.c gtk/gtksignal.c: A few more
      	  GPOINTER_TO_UINT fixes.
      
      	* gtk/gtksignal.c: Include <string.h> for memset.
      
      Tue May 12 23:10:53 1998  Owen Taylor  <otaylor@gtk.org>
      	(Maximilian Bisani <bisani@kawo2.rwth-aachen.de>: gtk-bisani-980320-0)
      
      	* gtk/gtkvruler.c gtk/gtkhruler.c gtk/gtkruler.h:
      	Cleanups, comments and the ability to have rulers with
      	a reversed direction.
      4283c9de
    • Owen Taylor's avatar
      Fixed up a stat() that Sopwith missed when changing stat => lstat. · 43dfe74c
      Owen Taylor authored
      Tue May 12 19:37:55 1998  Owen Taylor  <otaylor@gtk.org>
      
      	* gtk/gtkrc.c (gtk_rc_parse_file): Fixed up a stat()
      	that Sopwith missed when changing stat => lstat.
      
      Tue May 12 19:19:29 1998  Owen Taylor  <otaylor@gtk.org>
      
      	* gtk/gtkinputdialog.c gtk/gtkgamma.c gtk/gtkrc.c
      	  gtk/gtkcolorsel.c gtk/gtkclist.c gtk/testgtk.c: Use
      	GPOINTER_TO_INT/GINT_TO_POINTER macros where appropriate.
      
      	* gdk/gdk.c: Print sizeof() results
      	as g_print("%ld", (glong)sizeof(foo)), to deal with
      	sizeof() being long on Alpha's.
      
      	* gtk/testgtk.c: include <string.h> for strlen
      
      Tue May 12 19:22:58 1998  Owen Taylor  <otaylor@gtk.org>
      
       	* glib/glib.h: Added macros G[U]INT_TO_POINTER() and
      	GPOINTER_TO_[U]INT for storing small integers integers
      	inside pointers.
      
      	* glib/testglib.c: Print sizeof() results
      	as g_print("%ld", (glong)sizeof(foo)), to deal with
      	size_t being long on Alpha's.
      43dfe74c
  15. 12 May, 1998 5 commits
    • Elliot Lee's avatar
      Use lstat() to tell when an rc file was modified, not stat(), because we · eae7b32f
      Elliot Lee authored
      
      
      Use lstat() to tell when an rc file was modified, not stat(), because we
      could be pointing symlinks around.
      eae7b32f
    • Owen Taylor's avatar
      (James A <jamesa@demon.net> : gtk-jamesa-980511-4.patch) · c9e78a10
      Owen Taylor authored
      Tue May 12 16:54:15 1998  Owen Taylor  <otaylor@gtk.org>
      	(James A <jamesa@demon.net> : gtk-jamesa-980511-4.patch)
      
      	* glib.h gstring.c gmessages.c: Added some missing
      	const to arguments.
      
      	* gutils.c (g_strsignal.c): Added missing return statements.
      
      Tue May 12 16:56:35 1998  Owen Taylor  <otaylor@gtk.org>
      	(James A <jamesa@demon.net> : gtk-jamesa-980511-4.patch)
      
      	* gtk/gtkbbox.h gtk/gtkcolorsel.h gtk/gtkvbbox.h:
      	Changed #include "gtkfoo.h" to #include <gtk/gtkfoo.h>
      
      	* gtk/gtkwindow.[ch]: Added const to gtk_window_set_wmclass
      
      Tue May 12 15:16:10 1998  Owen Taylor  <otaylor@gtk.org>
      	(From: Christopher James Lahey <clahey@umich.edu>)
      
      	* gtk/gtkbutton.[ch] gtk/gtkenums.h gtk/gtktoolbar.[ch]
      	  gtk/testgtk.c:
      
      	Added 'relief' for buttons - they can be either GTK_RELIEF_NORMAL
      	(old style), or GTK_RELIEF_NONE - no relief in the NORMAL
      	state. Added gtk_toolbar_{set,get}_button_relief, which set/get
      	the default relief for the toolbars buttons. Added an
      	toggle for the toolbar test in testgtk.c.
      c9e78a10
    • Federico Mena Quintero's avatar
      The commit to the stable branch is on its way... · 2fa59370
      Federico Mena Quintero authored
      1998-05-11  Federico Mena Quintero  <federico@nuclecu.unam.mx>
      
      	* gtk/gtkpreview.c (gtk_preview_realize): Create the window using
      	GtkPreview's visual and colormap, otherwise things can BadMatch.
      
      	* gtk/testgtk.c (create_color_preview):
      	(create_gray_preview): Removed pushing/popping of visual/colormap
      	now that GtkPreview does things correctly.
      
      	* gtk/gtkcolorsel.c (gtk_color_selection_draw_wheel_frame):
      	(gtk_color_selection_draw_wheel): Pick the style from the correct
      	place (the colorsel->wheel_area widget) so that the GCs will match
      	with where we are going to paint to.
      
      	* gtk/testgtk.c (create_color_selection): Removed pushing/popping
      	of visual/colormap now that GtkColorSelection does things the
      	right way.
      2fa59370
    • Owen Taylor's avatar
      Use the previously unused window->need_resize flag to mark if a window's · 962386fb
      Owen Taylor authored
      Mon May 11 21:04:51 1998  Owen Taylor  <otaylor@gtk.org>
      
      	* gtk/gtkwindow.c (gtk_real_window_move_resize): Use the
      	previously unused window->need_resize flag to mark if a window's
      	descendents changed size while the window was not visible. In this
      	case, when the window becomes visible, we reallocate everything,
      	since we didn't keep track of what actually changed.
      
      	(Fixes bug where changing the popdown strings of a
      	combo to something of the same length caused them to
      	blank out, as reported by Todd Dukes <tdukes@ibmoto.com>)
      962386fb
    • Tim Janik's avatar
      [security audit by Alan Cox] · 075cb432
      Tim Janik authored
      Tue May 12 02:31:57 1998  Tim Janik  <timj@gtk.org>
      
              [security audit by Alan Cox]
      
              * gtk/gtkobject.c (gtk_object_get_arg_type): check for arg_name to not
              exceed maximum assumed size.
      
              * gtk/gtkmenufactory.c (gtk_menu_factory_create): check that `path' does
              not exceed maximum assumed size.
              (gtk_menu_factory_remove): likewise.
              (gtk_menu_factory_find_recurse): likewise.
      075cb432
  16. 11 May, 1998 3 commits
    • Tim Janik's avatar
      queue the idle_sizer with GTK_PRIORITY_INTERNAL - 1, so widgets get first · f15bd558
      Tim Janik authored
      Tue May 12 00:21:33 1998  Tim Janik  <timj@gtk.org>
      
              * gtk/gtkwidget.c (gtk_widget_queue_resize): queue the idle_sizer with
              GTK_PRIORITY_INTERNAL - 1, so widgets get first resized and then
              redrawn if that is still neccessary. don't allow queueing of already
              destructed objects.
              (gtk_widget_idle_sizer): proccess the resize queue in a save manner, so
              widgets which are in the queue can be destroyed savely, handle
              requeueing properly.
              (gtk_widget_idle_draw): proccess the redraw queue in a save manner, so
              widgets which are in the queue can be destroyed/unrealized savely.
      f15bd558
    • Tim Janik's avatar
      compilation fixups · ad137948
      Tim Janik authored
      ad137948
    • Tim Janik's avatar
      preserve automake CFLAGS. · e8df8ce1
      Tim Janik authored
      Mon May 11 09:56:45 1998  Tim Janik  <timj@gtk.org>
      
              * configure.in (cflags_set): preserve automake CFLAGS.
      
              * Makefile.am: fully rename the created libraries to libgtk-1.1.la
              and libgdk-1.1.la. this means we need to change certain portions of
              the Makefile.am on major/minor version bumps.
      
              * ltmain.sh: the -release option is not required anymore.
      
              * gtk/gtkobject.h (gtk_trace_referencing): compile time check the type
              of the first argument to be of type GtkObject. unconditionally compile
              this function. removed __GNUC__ dependancy of the gtk_object_ref and
              gtk_object_unref macro wrappers for this function.
      
      Mon May 11 09:53:43 1998  Tim Janik  <timj@gtk.org>
      
              * configure.in: preserve automake CFLAGS.
      
              * Makefile.am: fully rename the created library to libglib-1.1.la.
              this means we need to change certain portions of the Makefile.am on
              major/minor version bumps.
      
              * ltmain.sh: the -release option is not required anymore.
      
              * glib.h: provide G_GNUC_FUNCTION and G_GNUC_PRETTY_FUNCTION to
              avoid conditionals. unconditionally define NULL, TRUE, FALSE, MAX,
              MIN, ABS and CLAMP, these macros might be screwed from other headers.
      e8df8ce1