]> Pileus Git - ~andy/gtk/log
~andy/gtk
26 years agoOnly query the colormap for GRAYSCALE and PSEUDOCOLOR visuals, and don't
Owen Taylor [Tue, 3 Feb 1998 20:57:40 +0000 (20:57 +0000)]
Only query the colormap for GRAYSCALE and PSEUDOCOLOR visuals, and don't

Tue Feb  3 15:34:27 1998  Owen Taylor  <owt1@cornell.edu>

* gdk/gdkcolor.c (gdk_colormap_get_system): Only query
  the colormap for GRAYSCALE and PSEUDOCOLOR visuals,
  and don't ask for more than 256 colors in any case.

* gdk/gdkwindow.c (gdk_window_internal_destroy): Remove
  the input window information when we destroy the window,
  not when we are notified of it.

* gdk/gdkinputcommon.h (gdk_input_device_new): Work around
  bug in XFree86 3.3.1's handling of Wacom macro buttons.
  by assumming no device will report exactly 25 buttons.

* gdk/gdkinputcommon.h (gdk_input_common_other_event): Fill
  in string translation for generated key press events,
  do sanity checking on received key codes.

* gdk/gdkcc.c (gdk_color_context_new): Allocate enough
  room for a GdkColorContextPrivate, not just for a
  GdkColorContext.

26 years agodon't add the same menu to different menuitems/ optionmenus.
Tim Janik [Tue, 3 Feb 1998 15:14:35 +0000 (15:14 +0000)]
don't add the same menu to different menuitems/ optionmenus.

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.

26 years agoattach/detach to menu widget via
Tim Janik [Tue, 3 Feb 1998 14:13:05 +0000 (14:13 +0000)]
attach/detach to menu widget via

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.

26 years agogtk/gtktable.c Fixed problem with division by zero in row/column-spanned
Owen Taylor [Tue, 3 Feb 1998 05:57:31 +0000 (05:57 +0000)]
gtk/gtktable.c Fixed problem with division by zero in row/column-spanned

Tue Feb  3 00:12:00 1998  Owen Taylor  <owt1@cornell.edu>
* gtk/gtktable.c
  Fixed problem with division by zero in row/column-spanned
  tables. Also removed a bunch of conditionals by making
  the observation that x/1 == x.

26 years agoFixed (?) problem with arithmentic exceptions in row/column
Owen Taylor [Tue, 3 Feb 1998 05:23:03 +0000 (05:23 +0000)]
Fixed (?) problem with arithmentic exceptions in row/column
spanned tables.

26 years agodunno, what cvs wants right now. i just told me these
Tim Janik [Mon, 2 Feb 1998 21:41:24 +0000 (21:41 +0000)]
dunno, what cvs wants right now. i just told me these
changes are already commited... ;(
-timj

26 years agochanged name to reflect that these macros in fact can't operate on
Tim Janik [Mon, 2 Feb 1998 21:07:18 +0000 (21:07 +0000)]
changed name to reflect that these macros in fact can't operate on

Mon Feb  2 04:15:08 1998  Tim Janik  <timj@gimp.org>

        * gtk/gtkwindow.c:
        * gtk/gtkwidget.c:
        * gtk/gtkmain.c:
        * gtk/gtkwidget.c:
        * gtk/gtkcontainer.c:
        * gtk/gtkprivate.h (GTK_PRIVATE_UNSET_FLAG) (GTK_PRIVATE_UNSET_FLAGS):
          changed name to reflect that these macros in fact can't operate on
          multiple flags.

26 years agofixed destroy handler, so it doesn't segfault with the new refcounting
Tim Janik [Mon, 2 Feb 1998 20:40:03 +0000 (20:40 +0000)]
fixed destroy handler, so it doesn't segfault with the new refcounting

Mon Feb  2 04:15:08 1998  Tim Janik  <timj@gimp.org>

        * gtk/gtktoolbar.c: fixed destroy handler, so it doesn't
          segfault with the new refcounting scheme anymore.

        * gtk/gtkhandlebox.c:
        * gtk/gtkclist.c:
        * gtk/gtkentry.c:
        * gtk/gtkrange.c:
        * gtk/gtktext.c:
        * gtk/gtkviewport.c:
          enforced
          gdk_window_set_user_data (window, NULL);
          gdk_window_destroy (window);
          window = NULL;
          throughout the code.

26 years agofixed a bad, bad referencing bug that could caused unreferencing of
Tim Janik [Mon, 2 Feb 1998 18:44:28 +0000 (18:44 +0000)]
fixed a bad, bad referencing bug that could caused unreferencing of

Mon Feb  2 04:15:08 1998  Tim Janik  <timj@gimp.org>

        * gtk/gtkmain.c (gtk_propagate_event): fixed a bad, bad referencing
          bug that could caused unreferencing of finalized objects.

        * gtk/testgtk.c: destroy fileselection on "OK" (this triggered the
          above mentioned bug).

        * gtk/gtkwidget.h:
        * gtk/gtkwidget.c:
        * gtk/gtkobject.h:
        * gtk/gtkobject.c:
          implemented and object reference tracer (gtk_trace_referencing) which
          is activated if GTK_TRACE_OBJECTS is defined (currently per default).
          in gdb: set the static variable `gtk_trace_object' to point to the
          object that you want to have reference traced.

        * gtk/gtkfileselection.c: few cleanups.

26 years agocleanups with key name spaces.
Tim Janik [Mon, 2 Feb 1998 14:13:13 +0000 (14:13 +0000)]
cleanups with key name spaces.

Mon Feb  2 04:15:08 1998  Tim Janik  <timj@gimp.org>

        * gtk/gtkcolorsel.c:
        * gtk/gtkcombo.c:
        * gtk/gtkobject.c:
        * gtk/gtkselection.c:
        * gtk/gtkwidget.c:
        * gtk/gtkwindow.c:
          cleanups with key name spaces.

        * gtk/gtkcombo.c: fixed destruction bug with popwin.

26 years agowatch the next ChangeLog update...
Tim Janik [Mon, 2 Feb 1998 14:11:24 +0000 (14:11 +0000)]
watch the next ChangeLog update...
-timj

26 years agofixed a refresh bug with unrealization of no_window widgets.
Tim Janik [Mon, 2 Feb 1998 05:35:59 +0000 (05:35 +0000)]
fixed a refresh bug with unrealization of no_window widgets.
(dialog button in tesgtk)
-timj

26 years agoforgot gtkprivate.h as well
Tim Janik [Mon, 2 Feb 1998 04:56:42 +0000 (04:56 +0000)]
forgot gtkprivate.h as well
-timj

26 years agohehe, forgot the ChangeLog
Tim Janik [Mon, 2 Feb 1998 04:55:09 +0000 (04:55 +0000)]
hehe, forgot the ChangeLog
-timj

26 years agoGTK_RESIZE_NEEDED is a private flag now.
Tim Janik [Mon, 2 Feb 1998 04:54:25 +0000 (04:54 +0000)]
GTK_RESIZE_NEEDED is a private flag now.

Mon Feb  2 04:15:08 1998  Tim Janik  <timj@gimp.org>

        * gtk/gtkcontainer.h:
        * gtk/gtkcontainer.c: GTK_RESIZE_NEEDED is a private flag now.
          (gtk_container_register_toplevel): new function.
          (gtk_container_unregister_toplevel): new function.

        * gtk/gtkmain.c: GTK_LEAVE_PENDING is a private flag now.

        * gtk/gtkmenu.c: call gtk_container_register_toplevel in
          gtk_menu_class_init instead of this dirty gtk_widget_set_parent(,NULL)
          hack. new default handler gtk_menu_destroy for calling
          gtk_container_unregister_toplevel. removed GTK_ANCHORED, GTK_UNMAPPED.

        * gtk/gtkobject.h: macro cleanups, added GTK_DESTROYED flag.

        * gtk/gtkobject.c: only emit DESTROY signal if !GTK_OBJECT_DESTROYED
          (object).

        * gtk/gtkprivate.h: new file that will not be automatically included.
          it holds the private flags for GtkWidget along with it's SET/UNSET
          and examination macros.

        * gtk/gtkwidget.c: private flags: GTK_RESIZE_NEEDED, GTK_REDRAW_PENDING,
          GTK_RESIZE_PENDING, GTK_IN_REPARENT, GTK_USER_STYLE. GTK_ANCHORED is
          replaced by GTK_TOPLEVEL. added missing UNSET for GTK_IN_REPARENT.
          removed the gtk_widget_set_parent(, NULL) hack for toplevels.
          upon destroy free memory for widgets with GTK_WIDGET_HAS_SHAPE_MASK.

        * gtk/gtkwidget.h: split up the widget flags into a public and a private
          portion. added an extra field private_flags to GtkWidget without making
          it bigger by using an alignment gap of 16 bit. macro cleanups.

        * gtk/gtkwindow.c: removed GTK_ANCHORED. new function gtk_window_destroy
          for calling gtk_container_unregister_toplevel. removed the
          gtk_widget_set_parent(,NULL), call gtk_container_register_toplevel
          instead. remove GTK_UNMAPPED. GTK_RESIZE_NEEDED is private now.

        * gtk/gtksignal.c (gtk_signal_disconnect): removed a bug on
          removal that cut off the handler list -> living_objects == 0
          with testgtk. made some warnings more descriptive.
          new function gtk_signal_connect_object_while_alive, which
          will automatically destroy the connection once one of the objects
          is destroyed. didn't include this before removal of the above
          mentioned bug.

* reflected refcounting revolution in ChangeLog

26 years agomove enum GtkToolbarChildType before typedef to make gtktoolbar.h compile with c...
Radek Doulik [Sun, 1 Feb 1998 08:50:08 +0000 (08:50 +0000)]
move enum GtkToolbarChildType before typedef to make gtktoolbar.h compile with c++ (or egcs at least :)

26 years agoSome documentation of the internals.
Owen Taylor [Sun, 1 Feb 1998 08:22:51 +0000 (08:22 +0000)]
Some documentation of the internals.
                                        Owen

26 years agoAdded a new GTK_IN_REPARENT flag and revised gtk_widget_reparent so that
Owen Taylor [Sun, 1 Feb 1998 02:28:14 +0000 (02:28 +0000)]
Added a new GTK_IN_REPARENT flag and revised gtk_widget_reparent so that

Sat Jan 31 21:26:27 1998  Owen Taylor  <owt1@cornell.edu>

* gtk/gtkwidget.c: Added a new GTK_IN_REPARENT flag and revised
  gtk_widget_reparent so that the child would not be unrealized
  unnecessarily. Changed gtk_widget_unrealize () to recursively
  unrealize the children (since the child windows will be
  destroyed too.)

26 years agoI got sick of typing in the same commands over and over, so borrowed
Shawn Amundson [Sat, 31 Jan 1998 17:43:56 +0000 (17:43 +0000)]
I got sick of typing in the same commands over and over, so borrowed
autogen.sh from gnome cvs...  Also corrected some info in HACKING.

-Shawn

26 years agoAdded and autoconfigured in a new utility function g_strcasecmp
Manish Singh [Sat, 31 Jan 1998 08:15:57 +0000 (08:15 +0000)]
Added and autoconfigured in a new utility function g_strcasecmp
GtkCombo uses g_strcasecmp now
Quelled a warning about atexit undeclared in gtkobject

-Yosh

26 years agoBacked out change to close polygons since it caused problems for the
Owen Taylor [Sat, 31 Jan 1998 05:12:37 +0000 (05:12 +0000)]
Backed out change to close polygons since it caused problems for the

Sat Jan 31 00:13:33 1998  Owen Taylor  <owt1@cornell.edu>

* gtk/gtkstyle.c: Backed out change to close polygons
  since it caused problems for the Notebook.

26 years ago- Conformity to new reference counting schemes - Font and color
Owen Taylor [Sat, 31 Jan 1998 03:33:02 +0000 (03:33 +0000)]
- Conformity to new reference counting schemes - Font and color

Fri Jan 30 22:28:09 1998  Owen Taylor  <owt1@cornell.edu>

* gtk/gtkclist.{c,h}:
   - Conformity to new reference counting schemes
   - Font and color information is no-longer taken from
     the (possibly unitialized) style before the widget
     is realized, but is obtained when needed. (Fixes
     problems with non-default styles)
   - white_gc => base_gc where appropriate
   - Handle graphics expose events correctly (or as
     correctly as anywhere else) so that scrolling when
     overlapped works.

26 years agoIn gtk_widget_init, set the flags _on_top_of_ those for
Owen Taylor [Sat, 31 Jan 1998 02:28:43 +0000 (02:28 +0000)]
In gtk_widget_init, set the flags _on_top_of_ those for
GTK_OBJECT, to avoid clearing the FLOATING flag.
living_objects == 0!

26 years agofixed round-off error in calculation of tables with a lot of cells
George Lebl [Sat, 31 Jan 1998 01:43:47 +0000 (01:43 +0000)]
fixed round-off error in calculation of tables with a lot of cells

Fri Jan 30 17:41:06 1998  George Lebl  <jirka@5z.com>

        * gtk/gtktable.c: fixed round-off error in calculation
          of tables with a lot of cells

26 years agored/green/blue parameters are now expected to be in [0, 65535], to be
Federico Mena [Sat, 31 Jan 1998 00:09:58 +0000 (00:09 +0000)]
red/green/blue parameters are now expected to be in [0, 65535], to be

Fri Jan 30 08:51:16 1998  Federico Mena  <federico@bananoid.nuclecu.unam.mx>

* gdk/gdkcc.c (gdk_color_context_get_pixel): red/green/blue
  parameters are now expected to be in [0, 65535], to be consistent
  with the rest of Gdk.
(gdk_color_context_get_pixels): Made it use 16-bit color values as
  well.  Fixed mdist=1000000 buglet (it should start with at least
  0x1000000).
(gdk_color_context_get_pixels_incremental): Same as
gdk_color_context_get_pixels().

26 years agohm, initital refcount revolution commit ;)
Tim Janik [Fri, 30 Jan 1998 23:47:09 +0000 (23:47 +0000)]
hm, initital refcount revolution commit ;)
still some gnits left, but keep working on it ;)
-timj

26 years agomake toolbar Child structure accesible from apps
Radek Doulik [Fri, 30 Jan 1998 10:21:37 +0000 (10:21 +0000)]
make toolbar Child structure accesible from apps

26 years agoClose the polygon if it isn't already. (To match gtk_draw_polygon)
Owen Taylor [Fri, 30 Jan 1998 03:58:47 +0000 (03:58 +0000)]
Close the polygon if it isn't already. (To match gtk_draw_polygon)

Thu Jan 29 22:57:39 1998  Owen Taylor  <owt1@cornell.edu>

* gtk/gtkstyle.c (gtk_default_draw_polygon): Close
  the polygon if it isn't already. (To match gtk_draw_polygon)
  Simplified logic. (Appearance could probably be
  improved for objects with gradual curves by adding in
  some intermediate edge coloration)

26 years agodiscovered and documented a new bug ;)
Tim Janik [Fri, 30 Jan 1998 03:51:43 +0000 (03:51 +0000)]
discovered and documented a new bug ;)
-timj

26 years agosome bugs worked out.
Tim Janik [Fri, 30 Jan 1998 01:34:19 +0000 (01:34 +0000)]
some bugs worked out.
comment cleanups
-timj

26 years agonew function to gather information about a certain signal.
Tim Janik [Thu, 29 Jan 1998 20:46:05 +0000 (20:46 +0000)]
new function to gather information about a certain signal.

Thu Jan 29 21:36:14 1998  Tim Janik  <timj@gimp.org>

        * gtk/gtksignal.c (gtk_signal_query): new function to gather
          information about a certain signal.

        * gtk/gtksignal.c (gtk_signal_newv): new function similar to
          gtk_signal_new().

        * gtk/gtksignal.c (gtk_signal_real_emit): check for function_offset
          == 0.

        * gtk/gtksignal.c (gtk_signal_connect_by_type): perform a signal
          id lookup on the parent as well.

        * gtk/gtkobject.c (gtk_object_class_add_user_signal): new
          function for implementation of user defined signals.
        * gtk/gtkobject.c (gtk_object_class_add_signals): free old
          signal id array.

        * gtk/gtkobject.h: this holds the typedefs for GtkSignalFunc and
          GtkSignalMarshaller now, because they are used for
          gtk_object_class_add_user_signal.

        * gtk/gtktypeutils.c (gtk_type_class_init): reset object_class->signals
          and object_class->nsignals for new object classes.

26 years agonew user signal, and possibility to query signal information.
Tim Janik [Thu, 29 Jan 1998 20:44:14 +0000 (20:44 +0000)]
new user signal, and possibility to query signal information.
-timj

26 years agothis goes to *all* widget writers,
Tim Janik [Thu, 29 Jan 1998 13:47:47 +0000 (13:47 +0000)]
this goes to *all* widget writers,
you have to follow the gtk+ nameing scheme, otherwise bad things
will happen (in e.g. signal/argument/type lookups).
-timj

26 years agoremoved a FIXME that i had forgotten earlier.
Tim Janik [Thu, 29 Jan 1998 08:44:55 +0000 (08:44 +0000)]
removed a FIXME that i had forgotten earlier.

26 years agoThe list sort functions compared things backwards. Fixed.
Manish Singh [Thu, 29 Jan 1998 08:00:28 +0000 (08:00 +0000)]
The list sort functions compared things backwards. Fixed.
The list iterator macros now check for NULL args

-Yosh

26 years agoSmall fix to my previous GtkTable commit -miguel
Arturo Espinosa [Wed, 28 Jan 1998 05:55:54 +0000 (05:55 +0000)]
Small fix to my previous GtkTable commit -miguel

26 years agoOops, forgot a clean-up - Federico
Arturo Espinosa [Wed, 28 Jan 1998 03:51:48 +0000 (03:51 +0000)]
Oops, forgot a clean-up - Federico

26 years agoThe auto_shrink policy of the floating window is now set to TRUE. This
Federico Mena [Wed, 28 Jan 1998 03:41:55 +0000 (03:41 +0000)]
The auto_shrink policy of the floating window is now set to TRUE. This

Tue Jan 27 15:52:48 1998  Federico Mena  <federico@bananoid.nuclecu.unam.mx>

* gtk/gtkhandlebox.c (gtk_handle_box_realize): The auto_shrink
policy of the floating window is now set to TRUE.  This fixes the
problem of the floating window being too big when the handlebox
child is small.
(gtk_handle_box_motion): Now we use GDK_POINTER_MOTION_HINT_MASK
to improve movement.

26 years agoTables autoresize now -miguel
Arturo Espinosa [Tue, 27 Jan 1998 23:40:51 +0000 (23:40 +0000)]
Tables autoresize now -miguel

26 years agoMore changes from Tony Gale.
Shawn Amundson [Tue, 27 Jan 1998 20:51:36 +0000 (20:51 +0000)]
More changes from Tony Gale.

26 years agog_string_prepend* had interchanged src and dest params. Fixed.
Manish Singh [Tue, 27 Jan 1998 17:50:07 +0000 (17:50 +0000)]
g_string_prepend* had interchanged src and dest params. Fixed.

-Yosh

26 years agoFixed a really lame error where g_slist_insert didn't hook the data
Manish Singh [Tue, 27 Jan 1998 09:42:41 +0000 (09:42 +0000)]
Fixed a really lame error where g_slist_insert didn't hook the data
in! Reworked the routine a bit too.

-Yosh

26 years agoShows the widgets properly. -Jay
Jay Painter [Tue, 27 Jan 1998 06:39:56 +0000 (06:39 +0000)]
Shows the widgets properly. -Jay

26 years agoFixed widget sensitivity for the treeitem - please review at leisure
Elliot Lee [Tue, 27 Jan 1998 03:57:59 +0000 (03:57 +0000)]
Fixed widget sensitivity for the treeitem - please review at leisure

26 years agoadditions/changes from new FAQ maintainers Nathan Froyd and Tony Gale.
CST 1998 Shawn T. Amundson [Mon, 26 Jan 1998 23:11:51 +0000 (23:11 +0000)]
additions/changes from new FAQ maintainers Nathan Froyd and Tony Gale.

Mon Jan 26 17:12:12 CST 1998 Shawn T. Amundson <amundson@gimp.org>

        * docs/gtkfaq.sgml: additions/changes from new FAQ maintainers
          Nathan Froyd and Tony Gale.

26 years agoadditions/changes from Gregory A. McLean
CST 1998 Shawn T. Amundson [Mon, 26 Jan 1998 22:57:10 +0000 (22:57 +0000)]
additions/changes from Gregory A. McLean

Mon Jan 26 16:54:02 CST 1998 Shawn T. Amundson <amundson@gimp.org>

        * docs/gtk.texi: additions/changes from Gregory A. McLean

26 years agoadded a bunch of checks for window != NULL and private->destroyed. (don't
Tim Janik [Mon, 26 Jan 1998 01:20:14 +0000 (01:20 +0000)]
added a bunch of checks for window != NULL and private->destroyed. (don't

Mon Jan 26 02:15:29 1998  Tim Janik  <timj@gimp.org>

        * gdk/gdkdraw.c:
        * gdk/gdkgc.c:
        * gdk/gdkimage.c:
        * gdk/gdkinput.c:
        * gdk/gdkpixmap.c:
        * gdk/gdkproperty.c:
        * gdk/gdkselection.c:
        * gdk/gdkwindow.c: added a bunch of checks for window != NULL and
          private->destroyed.
(don't trust this cvs commit message, i didn't modify that many files!)

26 years agoFixed a resizing bug with CList where you could loose the end of the last
Jay Painter [Mon, 26 Jan 1998 00:07:40 +0000 (00:07 +0000)]
Fixed a resizing bug with CList where you could loose the end of the last
column; I also fixed a small cosmetic problem with the fileselect. -Jay

26 years agoadded new widget flag GTK_LEAVE_PENDING. if a widget has GTK_LEAVE_PENDING
Tim Janik [Sun, 25 Jan 1998 18:45:56 +0000 (18:45 +0000)]
added new widget flag GTK_LEAVE_PENDING. if a widget has GTK_LEAVE_PENDING

Sun Jan 25 19:15:32 1998  Tim Janik  <timj@gimp.org>

        * gtk/gtkwidget.h (enum): added new widget flag GTK_LEAVE_PENDING.
        * gtk/gtkmain.c (gtk_main_iteration_do): if a widget has
          GTK_LEAVE_PENDING set, send it its LEAVE_NOTIFY event, regardless
          of a grab or sensitivity.
          changed the compression code for enter/leave notify events to
          free *both* compressed event, and removed an unneccessary call
          to g_list_remove.

        * ChangeLog: finally catched up with the recent changes on my part.

26 years agoforgot a printf() line ;)
Tim Janik [Sat, 24 Jan 1998 20:03:58 +0000 (20:03 +0000)]
forgot a printf() line ;)
-timj

26 years agogtk_object_query_args() now returns the args in the corret order.
Tim Janik [Sat, 24 Jan 1998 20:02:19 +0000 (20:02 +0000)]
gtk_object_query_args() now returns the args in the corret order.
-timj

26 years agoChanged static function names/reorganized to make more sense. -Jay
Jay Painter [Sat, 24 Jan 1998 19:14:42 +0000 (19:14 +0000)]
Changed static function names/reorganized to make more sense. -Jay

26 years agoadded BUGS. -timj
Tim Janik [Sat, 24 Jan 1998 18:45:34 +0000 (18:45 +0000)]
added BUGS. -timj

added BUGS.
-timj

26 years agonew element n_args in GtkObjectClass.
Tim Janik [Fri, 23 Jan 1998 10:38:29 +0000 (10:38 +0000)]
new element n_args in GtkObjectClass.
-timj

26 years agoSwitched the file to GNU indentation, for consistency.
Federico Mena [Fri, 23 Jan 1998 06:26:39 +0000 (06:26 +0000)]
Switched the file to GNU indentation, for consistency.

Thu Jan 22 18:58:44 1998  Federico Mena  <federico@bananoid.nuclecu.unam.mx>

* gdk/gdkcc.c: Switched the file to GNU indentation, for consistency.

26 years agoPicky, picky... fix two lines with wrong indentation :-)
Federico Mena [Fri, 23 Jan 1998 06:05:39 +0000 (06:05 +0000)]
Picky, picky... fix two lines with wrong indentation :-)

Thu Jan 22 18:58:44 1998  Federico Mena  <federico@bananoid.nuclecu.unam.mx>

* gdk/gdktypes.h (struct _GdkColorContext): Picky, picky... fix
two lines with wrong indentation :-)

26 years agogtk/Makefile.am: Fixed the called to runelisp to use $(SHELL).
scott [Thu, 22 Jan 1998 07:34:13 +0000 (07:34 +0000)]
gtk/Makefile.am: Fixed the called to runelisp to use $(SHELL).
(Cannot rely on the script having execute permissions.)
--sg

26 years agoRelease GTK+ 0.99.3.
Shawn Amundson [Wed, 21 Jan 1998 23:29:56 +0000 (23:29 +0000)]
Release GTK+ 0.99.3.

26 years agosome gtk_*_set_arg fixes
Tim Janik [Wed, 21 Jan 1998 23:03:11 +0000 (23:03 +0000)]
some gtk_*_set_arg fixes
-timj

26 years agoAdded FAQ to the tree in prep for others to start working on it...
Shawn Amundson [Wed, 21 Jan 1998 22:41:35 +0000 (22:41 +0000)]
Added FAQ to the tree in prep for others to start working on it...

26 years agoAdded in Jay's new gtk_clist_column_titles_passive() call.
Ian Main [Wed, 21 Jan 1998 09:31:57 +0000 (09:31 +0000)]
Added in Jay's new gtk_clist_column_titles_passive() call.

Ian

26 years agosigh, it wasn't so simple - first correction
Tim Janik [Wed, 21 Jan 1998 09:16:33 +0000 (09:16 +0000)]
sigh, it wasn't so simple - first correction
-timj

26 years agoForgot to free GList on destroy, and to destroy fileop dialog boxes.
Ian Main [Wed, 21 Jan 1998 09:06:05 +0000 (09:06 +0000)]
Forgot to free GList on destroy, and to destroy fileop dialog boxes.

Ian

26 years agoGtkCList Updates. -Jay
Jay Painter [Wed, 21 Jan 1998 08:56:52 +0000 (08:56 +0000)]
GtkCList Updates. -Jay

26 years agoSmall fix for the optionmenu.
Ian Main [Wed, 21 Jan 1998 08:50:47 +0000 (08:50 +0000)]
Small fix for the optionmenu.

Ian

26 years agonew function gdk_pointer_is_grabbed(). extremely simple ;)
Tim Janik [Wed, 21 Jan 1998 08:35:37 +0000 (08:35 +0000)]
new function gdk_pointer_is_grabbed(). extremely simple ;)
-timj

26 years agoNew file selection dialog. Converted to use clist, added Mac-like pulldown,
Ian Main [Wed, 21 Jan 1998 07:53:07 +0000 (07:53 +0000)]
New file selection dialog.  Converted to use clist, added Mac-like pulldown,
and a few simple file operations.

Ian Main <slow@intergate.bc.ca

26 years agostrdup changed to g_strdup
Shawn Amundson [Wed, 21 Jan 1998 05:13:01 +0000 (05:13 +0000)]
strdup changed to g_strdup

-Shawn

26 years agoGot rid of -z text for Solaris x86... again... sigh.
Shawn Amundson [Wed, 21 Jan 1998 05:04:45 +0000 (05:04 +0000)]
Got rid of -z text for Solaris x86... again... sigh.

-Shawn

26 years agoremoved some superfluous variables that duplicated widget->state.
Tim Janik [Wed, 21 Jan 1998 00:52:17 +0000 (00:52 +0000)]
removed some superfluous variables that duplicated widget->state.
updated ChangeLog.
-timj

26 years agoApplied patch from (Raja R Harinath <harinath@cs.umn.edu>) to add function
Tim Janik [Wed, 21 Jan 1998 00:46:48 +0000 (00:46 +0000)]
Applied patch from (Raja R Harinath <harinath@cs.umn.edu>) to add function

Wed Jan 21 01:13:25 1998  Tim Janik  <timj@psynet.net>

        * Applied patch from (Raja R Harinath <harinath@cs.umn.edu>)
          to add function g_snprintf.
        * configure.in (AC_CHECK_FUNCS): Check for vsnprintf.
        * glib.h: Add prototype for g_snprintf.
        * glibconfig.h.in: Add HAVE_VSNPRINTF.
        * gutils.c (g_snprintf): new function.

26 years agoUse browse mode on the list
Elliot Lee [Wed, 21 Jan 1998 00:34:27 +0000 (00:34 +0000)]
Use browse mode on the list

26 years agosensitivity and state setting combination.
Tim Janik [Tue, 20 Jan 1998 23:58:42 +0000 (23:58 +0000)]
sensitivity and state setting combination.
-timj

26 years agoglib aclocal stuff -timj
Tim Janik [Tue, 20 Jan 1998 23:53:15 +0000 (23:53 +0000)]
glib aclocal stuff -timj

glib aclocal stuff
-timj

26 years agoConversion to use Paolo Molaro's GtkCombo instead of GtkComboBox
Owen Taylor [Tue, 20 Jan 1998 21:40:38 +0000 (21:40 +0000)]
Conversion to use Paolo Molaro's GtkCombo instead of GtkComboBox

26 years agoGtkCList updates. -Jay
Jay Painter [Tue, 20 Jan 1998 11:46:15 +0000 (11:46 +0000)]
GtkCList updates. -Jay

26 years agosomeone forgot the __cplusplus closing brace.
Miguel de Icaza [Tue, 20 Jan 1998 01:04:55 +0000 (01:04 +0000)]
someone forgot the __cplusplus closing brace.

Mon Jan 19 19:05:26 1998  Miguel de Icaza  <miguel@nuclecu.unam.mx>

* gtk/gtkstatusbar.h: someone forgot the __cplusplus closing brace.

26 years agoSet container_class->focus to NULL. Widgets in the toolbar should not get
Federico Mena [Mon, 19 Jan 1998 23:45:37 +0000 (23:45 +0000)]
Set container_class->focus to NULL. Widgets in the toolbar should not get

Mon Jan 19 16:21:00 1998  Federico Mena  <federico@bananoid.nuclecu.unam.mx>

* gtk/gtktoolbar.c (gtk_toolbar_class_init): Set
container_class->focus to NULL.  Widgets in the toolbar should not
get the focus via the normal key bindings (no toolkit does this,
and it makes sense).

26 years agoRemoved the GTK_PIXMAP casts to match Eckehard's new prototypes.
Federico Mena [Mon, 19 Jan 1998 22:38:22 +0000 (22:38 +0000)]
Removed the GTK_PIXMAP casts to match Eckehard's new prototypes.

Mon Jan 19 16:21:00 1998  Federico Mena  <federico@bananoid.nuclecu.unam.mx>

* gtk/testgtk.c (create_toolbar): Removed the GTK_PIXMAP casts to
match Eckehard's new prototypes.

* gtk/gtktoolbar.h: Switched the order of the tooltip_text and
widget parameters to the gtk_toolbar_*_widget() functions, to be
friendlier to the C++ bindings.  This is per request of Guillaume
Laurent.

26 years agoGtkCList updates: Click-Drag column resizing, a couple of layout
Jay Painter [Mon, 19 Jan 1998 09:59:20 +0000 (09:59 +0000)]
GtkCList updates: Click-Drag column resizing, a couple of layout
fixes, show/hide functions for the title buttons, and I've replaced
gtk_clist_new with gtk_clist_new_with_titles.  gtk_clist_new will
create a list without title bars which can be added later by calling
gtk_clist_set_column_(title/widget) for the column button you want to add.
A column button for column 0 always exhists, and buttons span all columns
until they come to the next exhisting button, or the last column. -Jay

26 years agothis is a stack of grabbing widgets now, having unique entries. the
Tim Janik [Mon, 19 Jan 1998 08:23:24 +0000 (08:23 +0000)]
this is a stack of grabbing widgets now, having unique entries. the

Mon Jan 19 09:16:38 1998  Tim Janik  <timj@psynet.net>

        * gtk/gtkmain.c (gtk_grab_add) (gtk_grab_remove): this is a stack
          of grabbing widgets now, having unique entries. the GTK_HAS_GRAB
          flag of a widget is set while it is on the stack (wasn't
          implemented before).

26 years agochanged gtk_toolbar_{append,prepend,inser]_item to accept any GtkWidget as
MET Eckehard Berns [Sun, 18 Jan 1998 23:49:56 +0000 (23:49 +0000)]
changed gtk_toolbar_{append,prepend,inser]_item to accept any GtkWidget as

Mon Jan 19 00:46:18 1998 MET  Eckehard Berns  <eb@berns.prima.de>

* gtk/gtktoolbar.[ch]: changed
    gtk_toolbar_{append,prepend,inser]_item to accept any GtkWidget
    as icon to allow more flexibility

26 years agoForgot this. -Shawn
Shawn Amundson [Sun, 18 Jan 1998 23:04:43 +0000 (23:04 +0000)]
Forgot this. -Shawn

Forgot this.
-Shawn

26 years agoStatusbar widget. -Shawn
Shawn Amundson [Sun, 18 Jan 1998 23:01:09 +0000 (23:01 +0000)]
Statusbar widget. -Shawn

Statusbar widget.
-Shawn

26 years agoMissed some files -owt
Owen Taylor [Sun, 18 Jan 1998 18:21:33 +0000 (18:21 +0000)]
Missed some files -owt

Missed some files
                                        -owt

26 years agoimplementations of gtk_invoke_key_snoopers(), gtk_key_snooper_install()
Tim Janik [Sun, 18 Jan 1998 18:17:23 +0000 (18:17 +0000)]
implementations of gtk_invoke_key_snoopers(), gtk_key_snooper_install()

implementations of
gtk_invoke_key_snoopers(),
gtk_key_snooper_install() and
gtk_key_snooper_remove()
-timj

26 years agog_str_hash stuff -timj
Tim Janik [Sun, 18 Jan 1998 18:15:46 +0000 (18:15 +0000)]
g_str_hash stuff -timj

g_str_hash stuff
-timj

26 years agorenamed g_string_equal => g_str_equal renamed g_string_hash => g_str_hash
Owen Taylor [Sun, 18 Jan 1998 15:12:01 +0000 (15:12 +0000)]
renamed g_string_equal => g_str_equal renamed g_string_hash => g_str_hash

Sat Jan 17 23:52:40 1998  Owen Taylor  <owt1@cornell.edu>

* gstring.{c,h} gscanner.c:
   renamed g_string_equal => g_str_equal
   renamed g_string_hash => g_str_hash
  And const corrected. Old functions left in for now.

26 years agogtkbutton.c gtkclist.c gtkdrawingarea.c gtkentry.c gtkeventbox.c
Owen Taylor [Sun, 18 Jan 1998 15:09:10 +0000 (15:09 +0000)]
gtkbutton.c gtkclist.c gtkdrawingarea.c gtkentry.c gtkeventbox.c

Sun Jan 18 09:57:00 1998  Owen Taylor  <owt1@cornell.edu>
* gtkbutton.c gtkclist.c gtkdrawingarea.c gtkentry.c gtkeventbox.c
  gtkfixed.c gtkhandlebox.c gtkhscale.c gtkhscrollbar.c gtkitem.c
  gtklist.c gtkmenushell.c gtkmisc.c gtknotebook.c gtkpaned.c
  gtkpreview.c gtkprogressbar.c gtkruler.c gtktext.c gtktree.c
  gtkviewport.c gtkvscale.c gtkvscrollbar.c gtkwidget.{c,h}

  Added gtk_widget_set_parent and gtk_widget_get_parent. All
  widgets should use:

   gtk_widget_get_parent() instead of widget->parent->window.

  Any widget that wants to have children not in the parent window,
  should use gtk_widget_set_parent () in their realize() and
  add () routines.

  CList and Viewport widgets changed to do this. (Viewport
  widget using code from gtk-fortier-980117-0.patch.)

26 years agoupdates... -timj
Tim Janik [Sun, 18 Jan 1998 11:11:27 +0000 (11:11 +0000)]
updates... -timj

updates...
-timj

26 years agogtk_*_get_arg() and gtk_*_set_arg() implementations. new arg
Tim Janik [Sun, 18 Jan 1998 11:09:04 +0000 (11:09 +0000)]
gtk_*_get_arg() and gtk_*_set_arg() implementations. new arg

Sun Jan 18 03:57:52 1998  Tim Janik  <timj@psynet.net>

        * gtk/gtkframe.c: gtk_*_get_arg() and gtk_*_set_arg() implementations.
        * gtk/gtkobject.c: new arg `GtkObject::object_signal' similar to
          `GtkObject::signal'. check for class type in gtk_object_{setv|getv}.

        * gtk/gtkobject.c:
        * gtk/gtksignal.c:
        * gtk/gtktypeutils.h:
        * gtk/gtktypeutils.c: added GTK_TYPE_DOUBLE.

        * gtk/gtkwidget.c: new args `has_focus' and `has_default'.
        * gtk/gtkwindow.c: new arg `window_position'.

26 years agochecked in wrong version of gtk_box_reorder_child previously.
Tim Janik [Sun, 18 Jan 1998 04:15:22 +0000 (04:15 +0000)]
checked in wrong version of gtk_box_reorder_child previously.
-timj

26 years agonew functions gtk_box_reorder_child, gtk_box_query_child_packing and
Tim Janik [Sun, 18 Jan 1998 03:09:42 +0000 (03:09 +0000)]
new functions gtk_box_reorder_child, gtk_box_query_child_packing and

Sun Jan 18 03:57:52 1998  Tim Janik  <timj@psynet.net>

        * gtk/gtkbox.h:
        * gtk/gtkbox.c: new functions gtk_box_reorder_child,
        gtk_box_query_child_packing and gtk_box_set_child_packing to
        allow modification of the child linkage after the widget tree
        is setup.

        * gtk/gtkbox.c:
        * gtk/gtklabel.c:
        * gtk/gtkwindow.c:
        * gtk/gtkwidget.c:
        * gtk/gtkobject.c: gtk_*_get_arg() and gtk_*_set_arg() fixes
          and implementations.

26 years agoFixed GDK_INPUT_ONLY window type. -Jay
Jay Painter [Sat, 17 Jan 1998 23:35:52 +0000 (23:35 +0000)]
Fixed GDK_INPUT_ONLY window type. -Jay

26 years agochanged log -owt
Owen Taylor [Sat, 17 Jan 1998 23:29:17 +0000 (23:29 +0000)]
changed log -owt

changed log
                                        -owt

26 years agoTake putback events into account
Owen Taylor [Sat, 17 Jan 1998 23:24:09 +0000 (23:24 +0000)]
Take putback events into account

* gdk/gdk.c (gdk_events_pending): Take putback events into
  account

* gdk/gdk.c (gdk_event_free): Handle dropdataavaible memory
  allocation correctly. (Incompatible change: client must
  _not_ fre event->data and event->data_type.)

* gdk/gdk.c (gdk_event_translate): Changed DND dragging
  so that we don't ungrab pointer when we reenter window
  to prevent extra Enter/Leave effects which had bad
  effects.
  Changed drag zone handling to not send uncessary
  DragEnter events.
  Fixed EnterNotify/LeaveNotify handling. (Only pay
  attention to events on window, don't specify these
  events to XGrabPointer - that isn't valid, and handle
  reverse the sense of the handling of LeaveNotify.)

* gdk/gdkwindow.c (gdk_window_remove_filter): Free removed
  filter.

* gtk/gtk.defs (GdkFont): gdk_font_free => gdk_font_unref

* gtk/gtkmain.{c,h} (gtk_events_pending): new function - apps
  should use this instead of gdk_events_pending.

* gtk/gtkvbbox.h: Fixed a duplication in the headers.

* gtk/testgtk.c (dnd_drop): Don't free the drop data,
  it belongs to the event.

26 years agoApplied patch from <lupus@lettere.unipd.it> which adds
CST 1998 Shawn T. Amundson [Sat, 17 Jan 1998 22:48:31 +0000 (22:48 +0000)]
Applied patch from <lupus@lettere.unipd.it> which adds

Sat Jan 17 13:26:15 CST 1998 Shawn T. Amundson <amundson@gimp.org>

        * gtk/gtkentry.[ch]:  Applied patch from <lupus@lettere.unipd.it>
          which adds gtk_entry_set_max_length function.  This was
          part of gtk-lupus-970112-0.

        * gtk/testgtk.c: Applied gtk-wille-980113-0 which fixes
          a problem with a shaped widget keeping grab forever
          when double clicked.

        * docs/gtk.texi: patch from Gregory McLean <gregm@randomc.com>
          to add some on aspect_frame, button_box, and color_selection
          widgets

26 years agomore *_get_arg/*_set_arg implementations
Tim Janik [Sat, 17 Jan 1998 07:52:38 +0000 (07:52 +0000)]
more *_get_arg/*_set_arg implementations
-timj

26 years ago+Sat Jan 17 06:24:05 1998 Tim Janik <timj@psynet.net>
Tim Janik [Sat, 17 Jan 1998 05:31:13 +0000 (05:31 +0000)]
+Sat Jan 17 06:24:05 1998  Tim Janik  <timj@psynet.net>
+
+        * gtk/gtktypeutils.h (gtk_type_get_arg): new function.
+        * gtk/gtkobject.h (gtk_object_query_args): new function.
+        * gtk/gtkobject.h (gtk_object_getv): new function.
+        * gtk/gtkwidget.h (gtk_widget_get): new function.

26 years agoNow we use a GtkWindow of type GTK_WINDOW_DIALOG as a destination for
Federico Mena [Fri, 16 Jan 1998 23:43:10 +0000 (23:43 +0000)]
Now we use a GtkWindow of type GTK_WINDOW_DIALOG as a destination for

Fri Jan 16 00:36:31 1998  Federico Mena  <federico@bananoid.nuclecu.unam.mx>

* gtk/gtkhandlebox.c: Now we use a GtkWindow of type
GTK_WINDOW_DIALOG as a destination for reparenting the child of
the handle box.  This solves the problem of having X calls in
Gtk.  It also makes the handle box work with KWM, OLVWM, 4Dwm (so
I expect mwm to work as well).  I hadn't noticed that previously
it only worked with fvwm and twm.

* gtk/gtkhandlebox.h (struct _GtkHandleBox): Removed the
real_parent field, as it is never used.
(struct _GtkHandleBox): Added a float_window field.  This is a
GtkWindow to where the child is now reparented.