forked from AuroraMiddleware/gtk
changed gtk_range_trough_click() to take an additional jump_perc arg,
Tue Mar 10 05:30:05 1998 Tim Janik <timj@gimp.org> * gtk/gtkrange.h: * gtk/gtkrange.c: changed gtk_range_trough_click() to take an additional jump_perc arg, class method and callers changed. Tue Mar 10 05:25:10 1998 Tim Janik <timj@gimp.org> * gdk/gdk.c (gdk_ic_destroy): applied gtk-gronlund-980309-1.patch.gz which fixes a memory leak.
This commit is contained in:
parent
2f50a3044e
commit
8532799aaa
91
ChangeLog
91
ChangeLog
@ -1,3 +1,15 @@
|
||||
Tue Mar 10 05:30:05 1998 Tim Janik <timj@gimp.org>
|
||||
|
||||
* gtk/gtkrange.h:
|
||||
* gtk/gtkrange.c:
|
||||
changed gtk_range_trough_click() to take an additional jump_perc arg,
|
||||
class method and callers changed.
|
||||
|
||||
Tue Mar 10 05:25:10 1998 Tim Janik <timj@gimp.org>
|
||||
|
||||
* gdk/gdk.c (gdk_ic_destroy): applied gtk-gronlund-980309-1.patch.gz
|
||||
which fixes a memory leak.
|
||||
|
||||
Mon Mar 9 20:38:15 1998 Owen Taylor <owt1@cornell.edu>
|
||||
|
||||
* gtk/gtkentry.c gtk/gtkeditable.c gtk/gtkspinbutton.c:
|
||||
@ -1260,11 +1272,46 @@ Mon Feb 2 04:15:08 1998 Tim Janik <timj@gimp.org>
|
||||
is destroyed. didn't include this before removal of the above
|
||||
mentioned bug.
|
||||
|
||||
Sat Jan 31 23:55:03 1998 Tim Janik <timj@gimp.org>
|
||||
Sat Jan 31 21:26:27 1998 Owen Taylor <owt1@cornell.edu>
|
||||
|
||||
* ChangeLog entry for Friday (incorporation of Marius Vollmer's
|
||||
reference counting revolution, plus various fixups and additions
|
||||
from myself).
|
||||
* 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.)
|
||||
|
||||
Sat Jan 31 00:05:34 PST 1998 Manish Singh <yosh@gimp.org>
|
||||
|
||||
* gtk/gtkcombo.c: changed to use g_strcasecmp
|
||||
* gtk/gtkobject.c: #include <stdlib.h> for atexit
|
||||
|
||||
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.
|
||||
|
||||
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.
|
||||
|
||||
Fri Jan 30 21:32:11 1998 Owen Taylor <owt1@cornell.edu>
|
||||
|
||||
* gtk/gtkwidget.c (gtk_widget_init): Don't replace the object
|
||||
flags, augment them. (Otherwise we'll clear the FLOATING flag)
|
||||
|
||||
Fri Jan 30 23:55:03 1998 Tim Janik <timj@gimp.org>
|
||||
|
||||
* Incorporation of Marius Vollmer's reference counting revolution,
|
||||
plus various fixups and additions from myself.
|
||||
|
||||
* gdk/gdk.h:
|
||||
* gdk/gdkgc.c: new functions gdk_gc_ref/gdk_gc_unref.
|
||||
@ -1378,42 +1425,6 @@ Sat Jan 31 23:55:03 1998 Tim Janik <timj@gimp.org>
|
||||
|
||||
* gtk/testgtk.c: some changes because of all the above ;)
|
||||
|
||||
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.)
|
||||
|
||||
Sat Jan 31 00:05:34 PST 1998 Manish Singh <yosh@gimp.org>
|
||||
|
||||
* gtk/gtkcombo.c: changed to use g_strcasecmp
|
||||
* gtk/gtkobject.c: #include <stdlib.h> for atexit
|
||||
|
||||
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.
|
||||
|
||||
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.
|
||||
|
||||
Fri Jan 30 21:32:11 1998 Owen Taylor <owt1@cornell.edu>
|
||||
|
||||
* gtk/gtkwidget.c (gtk_widget_init): Don't replace the object
|
||||
flags, augment them. (Otherwise we'll clear the FLOATING flag)
|
||||
|
||||
Fri Jan 30 17:41:06 1998 George Lebl <jirka@5z.com>
|
||||
|
||||
* gtk/gtktable.c: fixed round-off error in calculation
|
||||
|
@ -1,3 +1,15 @@
|
||||
Tue Mar 10 05:30:05 1998 Tim Janik <timj@gimp.org>
|
||||
|
||||
* gtk/gtkrange.h:
|
||||
* gtk/gtkrange.c:
|
||||
changed gtk_range_trough_click() to take an additional jump_perc arg,
|
||||
class method and callers changed.
|
||||
|
||||
Tue Mar 10 05:25:10 1998 Tim Janik <timj@gimp.org>
|
||||
|
||||
* gdk/gdk.c (gdk_ic_destroy): applied gtk-gronlund-980309-1.patch.gz
|
||||
which fixes a memory leak.
|
||||
|
||||
Mon Mar 9 20:38:15 1998 Owen Taylor <owt1@cornell.edu>
|
||||
|
||||
* gtk/gtkentry.c gtk/gtkeditable.c gtk/gtkspinbutton.c:
|
||||
@ -1260,11 +1272,46 @@ Mon Feb 2 04:15:08 1998 Tim Janik <timj@gimp.org>
|
||||
is destroyed. didn't include this before removal of the above
|
||||
mentioned bug.
|
||||
|
||||
Sat Jan 31 23:55:03 1998 Tim Janik <timj@gimp.org>
|
||||
Sat Jan 31 21:26:27 1998 Owen Taylor <owt1@cornell.edu>
|
||||
|
||||
* ChangeLog entry for Friday (incorporation of Marius Vollmer's
|
||||
reference counting revolution, plus various fixups and additions
|
||||
from myself).
|
||||
* 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.)
|
||||
|
||||
Sat Jan 31 00:05:34 PST 1998 Manish Singh <yosh@gimp.org>
|
||||
|
||||
* gtk/gtkcombo.c: changed to use g_strcasecmp
|
||||
* gtk/gtkobject.c: #include <stdlib.h> for atexit
|
||||
|
||||
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.
|
||||
|
||||
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.
|
||||
|
||||
Fri Jan 30 21:32:11 1998 Owen Taylor <owt1@cornell.edu>
|
||||
|
||||
* gtk/gtkwidget.c (gtk_widget_init): Don't replace the object
|
||||
flags, augment them. (Otherwise we'll clear the FLOATING flag)
|
||||
|
||||
Fri Jan 30 23:55:03 1998 Tim Janik <timj@gimp.org>
|
||||
|
||||
* Incorporation of Marius Vollmer's reference counting revolution,
|
||||
plus various fixups and additions from myself.
|
||||
|
||||
* gdk/gdk.h:
|
||||
* gdk/gdkgc.c: new functions gdk_gc_ref/gdk_gc_unref.
|
||||
@ -1378,42 +1425,6 @@ Sat Jan 31 23:55:03 1998 Tim Janik <timj@gimp.org>
|
||||
|
||||
* gtk/testgtk.c: some changes because of all the above ;)
|
||||
|
||||
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.)
|
||||
|
||||
Sat Jan 31 00:05:34 PST 1998 Manish Singh <yosh@gimp.org>
|
||||
|
||||
* gtk/gtkcombo.c: changed to use g_strcasecmp
|
||||
* gtk/gtkobject.c: #include <stdlib.h> for atexit
|
||||
|
||||
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.
|
||||
|
||||
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.
|
||||
|
||||
Fri Jan 30 21:32:11 1998 Owen Taylor <owt1@cornell.edu>
|
||||
|
||||
* gtk/gtkwidget.c (gtk_widget_init): Don't replace the object
|
||||
flags, augment them. (Otherwise we'll clear the FLOATING flag)
|
||||
|
||||
Fri Jan 30 17:41:06 1998 George Lebl <jirka@5z.com>
|
||||
|
||||
* gtk/gtktable.c: fixed round-off error in calculation
|
||||
|
@ -1,3 +1,15 @@
|
||||
Tue Mar 10 05:30:05 1998 Tim Janik <timj@gimp.org>
|
||||
|
||||
* gtk/gtkrange.h:
|
||||
* gtk/gtkrange.c:
|
||||
changed gtk_range_trough_click() to take an additional jump_perc arg,
|
||||
class method and callers changed.
|
||||
|
||||
Tue Mar 10 05:25:10 1998 Tim Janik <timj@gimp.org>
|
||||
|
||||
* gdk/gdk.c (gdk_ic_destroy): applied gtk-gronlund-980309-1.patch.gz
|
||||
which fixes a memory leak.
|
||||
|
||||
Mon Mar 9 20:38:15 1998 Owen Taylor <owt1@cornell.edu>
|
||||
|
||||
* gtk/gtkentry.c gtk/gtkeditable.c gtk/gtkspinbutton.c:
|
||||
@ -1260,11 +1272,46 @@ Mon Feb 2 04:15:08 1998 Tim Janik <timj@gimp.org>
|
||||
is destroyed. didn't include this before removal of the above
|
||||
mentioned bug.
|
||||
|
||||
Sat Jan 31 23:55:03 1998 Tim Janik <timj@gimp.org>
|
||||
Sat Jan 31 21:26:27 1998 Owen Taylor <owt1@cornell.edu>
|
||||
|
||||
* ChangeLog entry for Friday (incorporation of Marius Vollmer's
|
||||
reference counting revolution, plus various fixups and additions
|
||||
from myself).
|
||||
* 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.)
|
||||
|
||||
Sat Jan 31 00:05:34 PST 1998 Manish Singh <yosh@gimp.org>
|
||||
|
||||
* gtk/gtkcombo.c: changed to use g_strcasecmp
|
||||
* gtk/gtkobject.c: #include <stdlib.h> for atexit
|
||||
|
||||
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.
|
||||
|
||||
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.
|
||||
|
||||
Fri Jan 30 21:32:11 1998 Owen Taylor <owt1@cornell.edu>
|
||||
|
||||
* gtk/gtkwidget.c (gtk_widget_init): Don't replace the object
|
||||
flags, augment them. (Otherwise we'll clear the FLOATING flag)
|
||||
|
||||
Fri Jan 30 23:55:03 1998 Tim Janik <timj@gimp.org>
|
||||
|
||||
* Incorporation of Marius Vollmer's reference counting revolution,
|
||||
plus various fixups and additions from myself.
|
||||
|
||||
* gdk/gdk.h:
|
||||
* gdk/gdkgc.c: new functions gdk_gc_ref/gdk_gc_unref.
|
||||
@ -1378,42 +1425,6 @@ Sat Jan 31 23:55:03 1998 Tim Janik <timj@gimp.org>
|
||||
|
||||
* gtk/testgtk.c: some changes because of all the above ;)
|
||||
|
||||
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.)
|
||||
|
||||
Sat Jan 31 00:05:34 PST 1998 Manish Singh <yosh@gimp.org>
|
||||
|
||||
* gtk/gtkcombo.c: changed to use g_strcasecmp
|
||||
* gtk/gtkobject.c: #include <stdlib.h> for atexit
|
||||
|
||||
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.
|
||||
|
||||
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.
|
||||
|
||||
Fri Jan 30 21:32:11 1998 Owen Taylor <owt1@cornell.edu>
|
||||
|
||||
* gtk/gtkwidget.c (gtk_widget_init): Don't replace the object
|
||||
flags, augment them. (Otherwise we'll clear the FLOATING flag)
|
||||
|
||||
Fri Jan 30 17:41:06 1998 George Lebl <jirka@5z.com>
|
||||
|
||||
* gtk/gtktable.c: fixed round-off error in calculation
|
||||
|
@ -1,3 +1,15 @@
|
||||
Tue Mar 10 05:30:05 1998 Tim Janik <timj@gimp.org>
|
||||
|
||||
* gtk/gtkrange.h:
|
||||
* gtk/gtkrange.c:
|
||||
changed gtk_range_trough_click() to take an additional jump_perc arg,
|
||||
class method and callers changed.
|
||||
|
||||
Tue Mar 10 05:25:10 1998 Tim Janik <timj@gimp.org>
|
||||
|
||||
* gdk/gdk.c (gdk_ic_destroy): applied gtk-gronlund-980309-1.patch.gz
|
||||
which fixes a memory leak.
|
||||
|
||||
Mon Mar 9 20:38:15 1998 Owen Taylor <owt1@cornell.edu>
|
||||
|
||||
* gtk/gtkentry.c gtk/gtkeditable.c gtk/gtkspinbutton.c:
|
||||
@ -1260,11 +1272,46 @@ Mon Feb 2 04:15:08 1998 Tim Janik <timj@gimp.org>
|
||||
is destroyed. didn't include this before removal of the above
|
||||
mentioned bug.
|
||||
|
||||
Sat Jan 31 23:55:03 1998 Tim Janik <timj@gimp.org>
|
||||
Sat Jan 31 21:26:27 1998 Owen Taylor <owt1@cornell.edu>
|
||||
|
||||
* ChangeLog entry for Friday (incorporation of Marius Vollmer's
|
||||
reference counting revolution, plus various fixups and additions
|
||||
from myself).
|
||||
* 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.)
|
||||
|
||||
Sat Jan 31 00:05:34 PST 1998 Manish Singh <yosh@gimp.org>
|
||||
|
||||
* gtk/gtkcombo.c: changed to use g_strcasecmp
|
||||
* gtk/gtkobject.c: #include <stdlib.h> for atexit
|
||||
|
||||
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.
|
||||
|
||||
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.
|
||||
|
||||
Fri Jan 30 21:32:11 1998 Owen Taylor <owt1@cornell.edu>
|
||||
|
||||
* gtk/gtkwidget.c (gtk_widget_init): Don't replace the object
|
||||
flags, augment them. (Otherwise we'll clear the FLOATING flag)
|
||||
|
||||
Fri Jan 30 23:55:03 1998 Tim Janik <timj@gimp.org>
|
||||
|
||||
* Incorporation of Marius Vollmer's reference counting revolution,
|
||||
plus various fixups and additions from myself.
|
||||
|
||||
* gdk/gdk.h:
|
||||
* gdk/gdkgc.c: new functions gdk_gc_ref/gdk_gc_unref.
|
||||
@ -1378,42 +1425,6 @@ Sat Jan 31 23:55:03 1998 Tim Janik <timj@gimp.org>
|
||||
|
||||
* gtk/testgtk.c: some changes because of all the above ;)
|
||||
|
||||
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.)
|
||||
|
||||
Sat Jan 31 00:05:34 PST 1998 Manish Singh <yosh@gimp.org>
|
||||
|
||||
* gtk/gtkcombo.c: changed to use g_strcasecmp
|
||||
* gtk/gtkobject.c: #include <stdlib.h> for atexit
|
||||
|
||||
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.
|
||||
|
||||
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.
|
||||
|
||||
Fri Jan 30 21:32:11 1998 Owen Taylor <owt1@cornell.edu>
|
||||
|
||||
* gtk/gtkwidget.c (gtk_widget_init): Don't replace the object
|
||||
flags, augment them. (Otherwise we'll clear the FLOATING flag)
|
||||
|
||||
Fri Jan 30 17:41:06 1998 George Lebl <jirka@5z.com>
|
||||
|
||||
* gtk/gtktable.c: fixed round-off error in calculation
|
||||
|
@ -1,3 +1,15 @@
|
||||
Tue Mar 10 05:30:05 1998 Tim Janik <timj@gimp.org>
|
||||
|
||||
* gtk/gtkrange.h:
|
||||
* gtk/gtkrange.c:
|
||||
changed gtk_range_trough_click() to take an additional jump_perc arg,
|
||||
class method and callers changed.
|
||||
|
||||
Tue Mar 10 05:25:10 1998 Tim Janik <timj@gimp.org>
|
||||
|
||||
* gdk/gdk.c (gdk_ic_destroy): applied gtk-gronlund-980309-1.patch.gz
|
||||
which fixes a memory leak.
|
||||
|
||||
Mon Mar 9 20:38:15 1998 Owen Taylor <owt1@cornell.edu>
|
||||
|
||||
* gtk/gtkentry.c gtk/gtkeditable.c gtk/gtkspinbutton.c:
|
||||
@ -1260,11 +1272,46 @@ Mon Feb 2 04:15:08 1998 Tim Janik <timj@gimp.org>
|
||||
is destroyed. didn't include this before removal of the above
|
||||
mentioned bug.
|
||||
|
||||
Sat Jan 31 23:55:03 1998 Tim Janik <timj@gimp.org>
|
||||
Sat Jan 31 21:26:27 1998 Owen Taylor <owt1@cornell.edu>
|
||||
|
||||
* ChangeLog entry for Friday (incorporation of Marius Vollmer's
|
||||
reference counting revolution, plus various fixups and additions
|
||||
from myself).
|
||||
* 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.)
|
||||
|
||||
Sat Jan 31 00:05:34 PST 1998 Manish Singh <yosh@gimp.org>
|
||||
|
||||
* gtk/gtkcombo.c: changed to use g_strcasecmp
|
||||
* gtk/gtkobject.c: #include <stdlib.h> for atexit
|
||||
|
||||
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.
|
||||
|
||||
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.
|
||||
|
||||
Fri Jan 30 21:32:11 1998 Owen Taylor <owt1@cornell.edu>
|
||||
|
||||
* gtk/gtkwidget.c (gtk_widget_init): Don't replace the object
|
||||
flags, augment them. (Otherwise we'll clear the FLOATING flag)
|
||||
|
||||
Fri Jan 30 23:55:03 1998 Tim Janik <timj@gimp.org>
|
||||
|
||||
* Incorporation of Marius Vollmer's reference counting revolution,
|
||||
plus various fixups and additions from myself.
|
||||
|
||||
* gdk/gdk.h:
|
||||
* gdk/gdkgc.c: new functions gdk_gc_ref/gdk_gc_unref.
|
||||
@ -1378,42 +1425,6 @@ Sat Jan 31 23:55:03 1998 Tim Janik <timj@gimp.org>
|
||||
|
||||
* gtk/testgtk.c: some changes because of all the above ;)
|
||||
|
||||
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.)
|
||||
|
||||
Sat Jan 31 00:05:34 PST 1998 Manish Singh <yosh@gimp.org>
|
||||
|
||||
* gtk/gtkcombo.c: changed to use g_strcasecmp
|
||||
* gtk/gtkobject.c: #include <stdlib.h> for atexit
|
||||
|
||||
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.
|
||||
|
||||
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.
|
||||
|
||||
Fri Jan 30 21:32:11 1998 Owen Taylor <owt1@cornell.edu>
|
||||
|
||||
* gtk/gtkwidget.c (gtk_widget_init): Don't replace the object
|
||||
flags, augment them. (Otherwise we'll clear the FLOATING flag)
|
||||
|
||||
Fri Jan 30 17:41:06 1998 George Lebl <jirka@5z.com>
|
||||
|
||||
* gtk/gtktable.c: fixed round-off error in calculation
|
||||
|
@ -1,3 +1,15 @@
|
||||
Tue Mar 10 05:30:05 1998 Tim Janik <timj@gimp.org>
|
||||
|
||||
* gtk/gtkrange.h:
|
||||
* gtk/gtkrange.c:
|
||||
changed gtk_range_trough_click() to take an additional jump_perc arg,
|
||||
class method and callers changed.
|
||||
|
||||
Tue Mar 10 05:25:10 1998 Tim Janik <timj@gimp.org>
|
||||
|
||||
* gdk/gdk.c (gdk_ic_destroy): applied gtk-gronlund-980309-1.patch.gz
|
||||
which fixes a memory leak.
|
||||
|
||||
Mon Mar 9 20:38:15 1998 Owen Taylor <owt1@cornell.edu>
|
||||
|
||||
* gtk/gtkentry.c gtk/gtkeditable.c gtk/gtkspinbutton.c:
|
||||
@ -1260,11 +1272,46 @@ Mon Feb 2 04:15:08 1998 Tim Janik <timj@gimp.org>
|
||||
is destroyed. didn't include this before removal of the above
|
||||
mentioned bug.
|
||||
|
||||
Sat Jan 31 23:55:03 1998 Tim Janik <timj@gimp.org>
|
||||
Sat Jan 31 21:26:27 1998 Owen Taylor <owt1@cornell.edu>
|
||||
|
||||
* ChangeLog entry for Friday (incorporation of Marius Vollmer's
|
||||
reference counting revolution, plus various fixups and additions
|
||||
from myself).
|
||||
* 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.)
|
||||
|
||||
Sat Jan 31 00:05:34 PST 1998 Manish Singh <yosh@gimp.org>
|
||||
|
||||
* gtk/gtkcombo.c: changed to use g_strcasecmp
|
||||
* gtk/gtkobject.c: #include <stdlib.h> for atexit
|
||||
|
||||
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.
|
||||
|
||||
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.
|
||||
|
||||
Fri Jan 30 21:32:11 1998 Owen Taylor <owt1@cornell.edu>
|
||||
|
||||
* gtk/gtkwidget.c (gtk_widget_init): Don't replace the object
|
||||
flags, augment them. (Otherwise we'll clear the FLOATING flag)
|
||||
|
||||
Fri Jan 30 23:55:03 1998 Tim Janik <timj@gimp.org>
|
||||
|
||||
* Incorporation of Marius Vollmer's reference counting revolution,
|
||||
plus various fixups and additions from myself.
|
||||
|
||||
* gdk/gdk.h:
|
||||
* gdk/gdkgc.c: new functions gdk_gc_ref/gdk_gc_unref.
|
||||
@ -1378,42 +1425,6 @@ Sat Jan 31 23:55:03 1998 Tim Janik <timj@gimp.org>
|
||||
|
||||
* gtk/testgtk.c: some changes because of all the above ;)
|
||||
|
||||
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.)
|
||||
|
||||
Sat Jan 31 00:05:34 PST 1998 Manish Singh <yosh@gimp.org>
|
||||
|
||||
* gtk/gtkcombo.c: changed to use g_strcasecmp
|
||||
* gtk/gtkobject.c: #include <stdlib.h> for atexit
|
||||
|
||||
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.
|
||||
|
||||
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.
|
||||
|
||||
Fri Jan 30 21:32:11 1998 Owen Taylor <owt1@cornell.edu>
|
||||
|
||||
* gtk/gtkwidget.c (gtk_widget_init): Don't replace the object
|
||||
flags, augment them. (Otherwise we'll clear the FLOATING flag)
|
||||
|
||||
Fri Jan 30 17:41:06 1998 George Lebl <jirka@5z.com>
|
||||
|
||||
* gtk/gtktable.c: fixed round-off error in calculation
|
||||
|
@ -1,3 +1,15 @@
|
||||
Tue Mar 10 05:30:05 1998 Tim Janik <timj@gimp.org>
|
||||
|
||||
* gtk/gtkrange.h:
|
||||
* gtk/gtkrange.c:
|
||||
changed gtk_range_trough_click() to take an additional jump_perc arg,
|
||||
class method and callers changed.
|
||||
|
||||
Tue Mar 10 05:25:10 1998 Tim Janik <timj@gimp.org>
|
||||
|
||||
* gdk/gdk.c (gdk_ic_destroy): applied gtk-gronlund-980309-1.patch.gz
|
||||
which fixes a memory leak.
|
||||
|
||||
Mon Mar 9 20:38:15 1998 Owen Taylor <owt1@cornell.edu>
|
||||
|
||||
* gtk/gtkentry.c gtk/gtkeditable.c gtk/gtkspinbutton.c:
|
||||
@ -1260,11 +1272,46 @@ Mon Feb 2 04:15:08 1998 Tim Janik <timj@gimp.org>
|
||||
is destroyed. didn't include this before removal of the above
|
||||
mentioned bug.
|
||||
|
||||
Sat Jan 31 23:55:03 1998 Tim Janik <timj@gimp.org>
|
||||
Sat Jan 31 21:26:27 1998 Owen Taylor <owt1@cornell.edu>
|
||||
|
||||
* ChangeLog entry for Friday (incorporation of Marius Vollmer's
|
||||
reference counting revolution, plus various fixups and additions
|
||||
from myself).
|
||||
* 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.)
|
||||
|
||||
Sat Jan 31 00:05:34 PST 1998 Manish Singh <yosh@gimp.org>
|
||||
|
||||
* gtk/gtkcombo.c: changed to use g_strcasecmp
|
||||
* gtk/gtkobject.c: #include <stdlib.h> for atexit
|
||||
|
||||
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.
|
||||
|
||||
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.
|
||||
|
||||
Fri Jan 30 21:32:11 1998 Owen Taylor <owt1@cornell.edu>
|
||||
|
||||
* gtk/gtkwidget.c (gtk_widget_init): Don't replace the object
|
||||
flags, augment them. (Otherwise we'll clear the FLOATING flag)
|
||||
|
||||
Fri Jan 30 23:55:03 1998 Tim Janik <timj@gimp.org>
|
||||
|
||||
* Incorporation of Marius Vollmer's reference counting revolution,
|
||||
plus various fixups and additions from myself.
|
||||
|
||||
* gdk/gdk.h:
|
||||
* gdk/gdkgc.c: new functions gdk_gc_ref/gdk_gc_unref.
|
||||
@ -1378,42 +1425,6 @@ Sat Jan 31 23:55:03 1998 Tim Janik <timj@gimp.org>
|
||||
|
||||
* gtk/testgtk.c: some changes because of all the above ;)
|
||||
|
||||
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.)
|
||||
|
||||
Sat Jan 31 00:05:34 PST 1998 Manish Singh <yosh@gimp.org>
|
||||
|
||||
* gtk/gtkcombo.c: changed to use g_strcasecmp
|
||||
* gtk/gtkobject.c: #include <stdlib.h> for atexit
|
||||
|
||||
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.
|
||||
|
||||
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.
|
||||
|
||||
Fri Jan 30 21:32:11 1998 Owen Taylor <owt1@cornell.edu>
|
||||
|
||||
* gtk/gtkwidget.c (gtk_widget_init): Don't replace the object
|
||||
flags, augment them. (Otherwise we'll clear the FLOATING flag)
|
||||
|
||||
Fri Jan 30 17:41:06 1998 George Lebl <jirka@5z.com>
|
||||
|
||||
* gtk/gtktable.c: fixed round-off error in calculation
|
||||
|
@ -3463,6 +3463,7 @@ gdk_ic_destroy (GdkIC ic)
|
||||
|
||||
XDestroyIC (private->xic);
|
||||
xim_ic_list = g_list_remove (xim_ic_list, private);
|
||||
g_free (private);
|
||||
}
|
||||
|
||||
GdkIMStyle
|
||||
|
@ -3463,6 +3463,7 @@ gdk_ic_destroy (GdkIC ic)
|
||||
|
||||
XDestroyIC (private->xic);
|
||||
xim_ic_list = g_list_remove (xim_ic_list, private);
|
||||
g_free (private);
|
||||
}
|
||||
|
||||
GdkIMStyle
|
||||
|
@ -149,14 +149,16 @@ typedef enum
|
||||
GTK_SCROLL_STEP_BACKWARD,
|
||||
GTK_SCROLL_STEP_FORWARD,
|
||||
GTK_SCROLL_PAGE_BACKWARD,
|
||||
GTK_SCROLL_PAGE_FORWARD
|
||||
GTK_SCROLL_PAGE_FORWARD,
|
||||
GTK_SCROLL_JUMP
|
||||
} GtkScrollType;
|
||||
|
||||
typedef enum
|
||||
{
|
||||
GTK_TROUGH_NONE,
|
||||
GTK_TROUGH_START,
|
||||
GTK_TROUGH_END
|
||||
GTK_TROUGH_END,
|
||||
GTK_TROUGH_JUMP
|
||||
} GtkTroughType;
|
||||
|
||||
typedef enum
|
||||
|
@ -56,7 +56,8 @@ static gint gtk_range_focus_out (GtkWidget *widget,
|
||||
static void gtk_real_range_draw_trough (GtkRange *range);
|
||||
static void gtk_real_range_draw_slider (GtkRange *range);
|
||||
static gint gtk_real_range_timer (GtkRange *range);
|
||||
static gint gtk_range_scroll (GtkRange *range);
|
||||
static gint gtk_range_scroll (GtkRange *range,
|
||||
gfloat jump_perc);
|
||||
|
||||
static void gtk_range_add_timer (GtkRange *range);
|
||||
static void gtk_range_remove_timer (GtkRange *range);
|
||||
@ -290,13 +291,14 @@ gtk_range_slider_update (GtkRange *range)
|
||||
gint
|
||||
gtk_range_trough_click (GtkRange *range,
|
||||
gint x,
|
||||
gint y)
|
||||
gint y,
|
||||
gfloat *jump_perc)
|
||||
{
|
||||
g_return_val_if_fail (range != NULL, GTK_TROUGH_NONE);
|
||||
g_return_val_if_fail (GTK_IS_RANGE (range), GTK_TROUGH_NONE);
|
||||
|
||||
if (RANGE_CLASS (range)->trough_click)
|
||||
return (* RANGE_CLASS (range)->trough_click) (range, x, y);
|
||||
return (* RANGE_CLASS (range)->trough_click) (range, x, y, jump_perc);
|
||||
|
||||
return GTK_TROUGH_NONE;
|
||||
}
|
||||
@ -382,7 +384,8 @@ gtk_range_default_vslider_update (GtkRange *range)
|
||||
gint
|
||||
gtk_range_default_htrough_click (GtkRange *range,
|
||||
gint x,
|
||||
gint y)
|
||||
gint y,
|
||||
gfloat *jump_perc)
|
||||
{
|
||||
gint xthickness;
|
||||
gint ythickness;
|
||||
@ -404,6 +407,13 @@ gtk_range_default_htrough_click (GtkRange *range,
|
||||
{
|
||||
gdk_window_get_position (range->slider, &slider_x, NULL);
|
||||
|
||||
if (jump_perc)
|
||||
{
|
||||
*jump_perc = ((double) x) / ((double) trough_width);
|
||||
|
||||
return GTK_TROUGH_JUMP;
|
||||
}
|
||||
|
||||
if (x < slider_x)
|
||||
return GTK_TROUGH_START;
|
||||
else
|
||||
@ -417,7 +427,8 @@ gtk_range_default_htrough_click (GtkRange *range,
|
||||
gint
|
||||
gtk_range_default_vtrough_click (GtkRange *range,
|
||||
gint x,
|
||||
gint y)
|
||||
gint y,
|
||||
gfloat *jump_perc)
|
||||
{
|
||||
gint xthickness;
|
||||
gint ythickness;
|
||||
@ -439,6 +450,13 @@ gtk_range_default_vtrough_click (GtkRange *range,
|
||||
{
|
||||
gdk_window_get_position (range->slider, NULL, &slider_y);
|
||||
|
||||
if (jump_perc)
|
||||
{
|
||||
*jump_perc = ((double) y) / ((double) trough_height);
|
||||
|
||||
return GTK_TROUGH_JUMP;
|
||||
}
|
||||
|
||||
if (y < slider_y)
|
||||
return GTK_TROUGH_START;
|
||||
else
|
||||
@ -723,6 +741,7 @@ gtk_range_button_press (GtkWidget *widget,
|
||||
{
|
||||
GtkRange *range;
|
||||
gint trough_part;
|
||||
gfloat jump_perc;
|
||||
|
||||
g_return_val_if_fail (widget != NULL, FALSE);
|
||||
g_return_val_if_fail (GTK_IS_RANGE (widget), FALSE);
|
||||
@ -731,8 +750,9 @@ gtk_range_button_press (GtkWidget *widget,
|
||||
if (!GTK_WIDGET_HAS_FOCUS (widget))
|
||||
gtk_widget_grab_focus (widget);
|
||||
|
||||
jump_perc = -1;
|
||||
range = GTK_RANGE (widget);
|
||||
if (!range->button)
|
||||
if (range->button == 0)
|
||||
{
|
||||
gtk_grab_add (widget);
|
||||
|
||||
@ -744,17 +764,23 @@ gtk_range_button_press (GtkWidget *widget,
|
||||
{
|
||||
range->click_child = RANGE_CLASS (range)->trough;
|
||||
|
||||
trough_part = gtk_range_trough_click (range, event->x, event->y);
|
||||
if (range->button == 2)
|
||||
trough_part = gtk_range_trough_click (range, event->x, event->y, &jump_perc);
|
||||
else
|
||||
trough_part = gtk_range_trough_click (range, event->x, event->y, NULL);
|
||||
|
||||
range->scroll_type = GTK_SCROLL_NONE;
|
||||
if (trough_part == GTK_TROUGH_START)
|
||||
range->scroll_type = GTK_SCROLL_PAGE_BACKWARD;
|
||||
else if (trough_part == GTK_TROUGH_END)
|
||||
range->scroll_type = GTK_SCROLL_PAGE_FORWARD;
|
||||
else if (trough_part == GTK_TROUGH_JUMP &&
|
||||
jump_perc >= 0 && jump_perc <= 1)
|
||||
range->scroll_type = GTK_SCROLL_JUMP;
|
||||
|
||||
if (range->scroll_type != GTK_SCROLL_NONE)
|
||||
{
|
||||
gtk_range_scroll (range);
|
||||
gtk_range_scroll (range, jump_perc);
|
||||
gtk_range_add_timer (range);
|
||||
}
|
||||
}
|
||||
@ -768,7 +794,7 @@ gtk_range_button_press (GtkWidget *widget,
|
||||
range->click_child = RANGE_CLASS (range)->step_forw;
|
||||
range->scroll_type = GTK_SCROLL_STEP_FORWARD;
|
||||
|
||||
gtk_range_scroll (range);
|
||||
gtk_range_scroll (range, -1);
|
||||
gtk_range_add_timer (range);
|
||||
gtk_range_draw_step_forw (range);
|
||||
}
|
||||
@ -777,7 +803,7 @@ gtk_range_button_press (GtkWidget *widget,
|
||||
range->click_child = RANGE_CLASS (range)->step_back;
|
||||
range->scroll_type = GTK_SCROLL_STEP_BACKWARD;
|
||||
|
||||
gtk_range_scroll (range);
|
||||
gtk_range_scroll (range, -1);
|
||||
gtk_range_add_timer (range);
|
||||
gtk_range_draw_step_back (range);
|
||||
}
|
||||
@ -915,7 +941,7 @@ gtk_range_key_press (GtkWidget *widget,
|
||||
if (scroll != GTK_SCROLL_NONE)
|
||||
{
|
||||
range->scroll_type = scroll;
|
||||
gtk_range_scroll (range);
|
||||
gtk_range_scroll (range, -1);
|
||||
if (range->old_value != range->adjustment->value)
|
||||
{
|
||||
gtk_signal_emit_by_name (GTK_OBJECT (range->adjustment), "value_changed");
|
||||
@ -934,7 +960,7 @@ gtk_range_key_press (GtkWidget *widget,
|
||||
{
|
||||
if (pos == GTK_TROUGH_START)
|
||||
range->adjustment->value = range->adjustment->lower;
|
||||
else
|
||||
else if (pos == GTK_TROUGH_END)
|
||||
range->adjustment->value =
|
||||
range->adjustment->upper - range->adjustment->page_size;
|
||||
|
||||
@ -1143,7 +1169,7 @@ gtk_real_range_timer (GtkRange *range)
|
||||
range->need_timer = FALSE;
|
||||
}
|
||||
|
||||
if (gtk_range_scroll (range))
|
||||
if (gtk_range_scroll (range, -1))
|
||||
return return_val;
|
||||
}
|
||||
|
||||
@ -1151,7 +1177,8 @@ gtk_real_range_timer (GtkRange *range)
|
||||
}
|
||||
|
||||
static gint
|
||||
gtk_range_scroll (GtkRange *range)
|
||||
gtk_range_scroll (GtkRange *range,
|
||||
gfloat jump_perc)
|
||||
{
|
||||
gfloat new_value;
|
||||
gint return_val;
|
||||
@ -1167,6 +1194,15 @@ gtk_range_scroll (GtkRange *range)
|
||||
case GTK_SCROLL_NONE:
|
||||
break;
|
||||
|
||||
case GTK_SCROLL_JUMP:
|
||||
if (jump_perc >= 0 && jump_perc <= 1)
|
||||
{
|
||||
new_value = (range->adjustment->lower +
|
||||
(range->adjustment->upper - range->adjustment->page_size -
|
||||
range->adjustment->lower) * jump_perc);
|
||||
}
|
||||
break;
|
||||
|
||||
case GTK_SCROLL_STEP_BACKWARD:
|
||||
new_value -= range->adjustment->step_increment;
|
||||
if (new_value <= range->adjustment->lower)
|
||||
|
@ -89,7 +89,8 @@ struct _GtkRangeClass
|
||||
void (* slider_update) (GtkRange *range);
|
||||
gint (* trough_click) (GtkRange *range,
|
||||
gint x,
|
||||
gint y);
|
||||
gint y,
|
||||
gfloat *jump_perc);
|
||||
gint (* trough_keys) (GtkRange *range,
|
||||
GdkEventKey *key,
|
||||
GtkScrollType *scroll,
|
||||
@ -116,16 +117,19 @@ void gtk_range_draw_step_back (GtkRange *range);
|
||||
void gtk_range_slider_update (GtkRange *range);
|
||||
gint gtk_range_trough_click (GtkRange *range,
|
||||
gint x,
|
||||
gint y);
|
||||
gint y,
|
||||
gfloat *jump_perc);
|
||||
|
||||
void gtk_range_default_hslider_update (GtkRange *range);
|
||||
void gtk_range_default_vslider_update (GtkRange *range);
|
||||
gint gtk_range_default_htrough_click (GtkRange *range,
|
||||
gint x,
|
||||
gint y);
|
||||
gint y,
|
||||
gfloat *jump_perc);
|
||||
gint gtk_range_default_vtrough_click (GtkRange *range,
|
||||
gint x,
|
||||
gint y);
|
||||
gint y,
|
||||
gfloat *jump_perc);
|
||||
void gtk_range_default_hmotion (GtkRange *range,
|
||||
gint xdelta,
|
||||
gint ydelta);
|
||||
|
Loading…
Reference in New Issue
Block a user