BUG (causes SEGV) in setting default widget + fix
- From: "Damon Chaplin" <DAChaplin email msn com>
- To: "GTK List" <gtk-list redhat com>
- Subject: BUG (causes SEGV) in setting default widget + fix
- Date: Sat, 11 Apr 1998 22:40:09 +0100
Hi,
A SEGV occurs if you call gtk_window_set_default() with NULL as the
widget. (GTK 0.99.9)
Patch included.
Damon
--- gtkwindow.c~ Wed Mar 18 06:06:10 1998
+++ gtkwindow.c Sat Apr 11 19:06:31 1998
@@ -353,7 +353,7 @@
{
g_return_if_fail (window != NULL);
g_return_if_fail (GTK_IS_WINDOW (window));
- g_return_if_fail (GTK_WIDGET_CAN_DEFAULT (defaultw));
+ if (defaultw) g_return_if_fail (GTK_WIDGET_CAN_DEFAULT (defaultw));
if (window->default_widget != defaultw)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]