mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-12 05:20:17 +00:00
One or two trivial changes from the gtk-1-0 branch.
This commit is contained in:
parent
d142827b34
commit
2780a82a0e
@ -1,3 +1,9 @@
|
||||
Sat May 2 23:14:34 1998 Owen Taylor <otaylor@gtk.org>
|
||||
|
||||
* gtk/gtkcurve.c (gtk_curve_graph_events): Ignore
|
||||
Configure events that would result in a negative
|
||||
size.
|
||||
|
||||
Sun May 3 14:55:34 1998 Owen Taylor <otaylor@gtk.org>
|
||||
|
||||
* docs/gtkfaq.sgml (CPPFLAGS): Added a FAQ entry about
|
||||
|
@ -1,3 +1,9 @@
|
||||
Sat May 2 23:14:34 1998 Owen Taylor <otaylor@gtk.org>
|
||||
|
||||
* gtk/gtkcurve.c (gtk_curve_graph_events): Ignore
|
||||
Configure events that would result in a negative
|
||||
size.
|
||||
|
||||
Sun May 3 14:55:34 1998 Owen Taylor <otaylor@gtk.org>
|
||||
|
||||
* docs/gtkfaq.sgml (CPPFLAGS): Added a FAQ entry about
|
||||
|
@ -1,3 +1,9 @@
|
||||
Sat May 2 23:14:34 1998 Owen Taylor <otaylor@gtk.org>
|
||||
|
||||
* gtk/gtkcurve.c (gtk_curve_graph_events): Ignore
|
||||
Configure events that would result in a negative
|
||||
size.
|
||||
|
||||
Sun May 3 14:55:34 1998 Owen Taylor <otaylor@gtk.org>
|
||||
|
||||
* docs/gtkfaq.sgml (CPPFLAGS): Added a FAQ entry about
|
||||
|
@ -1,3 +1,9 @@
|
||||
Sat May 2 23:14:34 1998 Owen Taylor <otaylor@gtk.org>
|
||||
|
||||
* gtk/gtkcurve.c (gtk_curve_graph_events): Ignore
|
||||
Configure events that would result in a negative
|
||||
size.
|
||||
|
||||
Sun May 3 14:55:34 1998 Owen Taylor <otaylor@gtk.org>
|
||||
|
||||
* docs/gtkfaq.sgml (CPPFLAGS): Added a FAQ entry about
|
||||
|
@ -1,3 +1,9 @@
|
||||
Sat May 2 23:14:34 1998 Owen Taylor <otaylor@gtk.org>
|
||||
|
||||
* gtk/gtkcurve.c (gtk_curve_graph_events): Ignore
|
||||
Configure events that would result in a negative
|
||||
size.
|
||||
|
||||
Sun May 3 14:55:34 1998 Owen Taylor <otaylor@gtk.org>
|
||||
|
||||
* docs/gtkfaq.sgml (CPPFLAGS): Added a FAQ entry about
|
||||
|
@ -1,3 +1,9 @@
|
||||
Sat May 2 23:14:34 1998 Owen Taylor <otaylor@gtk.org>
|
||||
|
||||
* gtk/gtkcurve.c (gtk_curve_graph_events): Ignore
|
||||
Configure events that would result in a negative
|
||||
size.
|
||||
|
||||
Sun May 3 14:55:34 1998 Owen Taylor <otaylor@gtk.org>
|
||||
|
||||
* docs/gtkfaq.sgml (CPPFLAGS): Added a FAQ entry about
|
||||
|
@ -1,3 +1,9 @@
|
||||
Sat May 2 23:14:34 1998 Owen Taylor <otaylor@gtk.org>
|
||||
|
||||
* gtk/gtkcurve.c (gtk_curve_graph_events): Ignore
|
||||
Configure events that would result in a negative
|
||||
size.
|
||||
|
||||
Sun May 3 14:55:34 1998 Owen Taylor <otaylor@gtk.org>
|
||||
|
||||
* docs/gtkfaq.sgml (CPPFLAGS): Added a FAQ entry about
|
||||
|
@ -294,6 +294,9 @@ gtk_curve_graph_events (GtkWidget *widget, GdkEvent *event, GtkCurve *c)
|
||||
width = w->allocation.width - RADIUS * 2;
|
||||
height = w->allocation.height - RADIUS * 2;
|
||||
|
||||
if ((width < 0) || (height < 0))
|
||||
return FALSE;
|
||||
|
||||
/* get the pointer position */
|
||||
gdk_window_get_pointer (w->window, &tx, &ty, NULL);
|
||||
x = CLAMP ((tx - RADIUS), 0, width-1);
|
||||
|
Loading…
Reference in New Issue
Block a user