diff --git a/ChangeLog b/ChangeLog index 205cf09ad9..d304e8c08d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +Tue Mar 17 22:45:39 1998 Tim Janik + + * gtk/gtkwidget.c (gtk_widget_get_arg): return real boolean values + not just numbers. + + * gtk/gtktogglebutton.c (gtk_toggle_button_set_state): check + state for != 0, otherwise we get strange results. + Tue Mar 17 01:55:00 1998 Owen Taylor * gtk/gtkmain.c gtk/gtkentry.c: Try to guess if we can diff --git a/ChangeLog.pre-2-0 b/ChangeLog.pre-2-0 index 205cf09ad9..d304e8c08d 100644 --- a/ChangeLog.pre-2-0 +++ b/ChangeLog.pre-2-0 @@ -1,3 +1,11 @@ +Tue Mar 17 22:45:39 1998 Tim Janik + + * gtk/gtkwidget.c (gtk_widget_get_arg): return real boolean values + not just numbers. + + * gtk/gtktogglebutton.c (gtk_toggle_button_set_state): check + state for != 0, otherwise we get strange results. + Tue Mar 17 01:55:00 1998 Owen Taylor * gtk/gtkmain.c gtk/gtkentry.c: Try to guess if we can diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index 205cf09ad9..d304e8c08d 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,11 @@ +Tue Mar 17 22:45:39 1998 Tim Janik + + * gtk/gtkwidget.c (gtk_widget_get_arg): return real boolean values + not just numbers. + + * gtk/gtktogglebutton.c (gtk_toggle_button_set_state): check + state for != 0, otherwise we get strange results. + Tue Mar 17 01:55:00 1998 Owen Taylor * gtk/gtkmain.c gtk/gtkentry.c: Try to guess if we can diff --git a/ChangeLog.pre-2-2 b/ChangeLog.pre-2-2 index 205cf09ad9..d304e8c08d 100644 --- a/ChangeLog.pre-2-2 +++ b/ChangeLog.pre-2-2 @@ -1,3 +1,11 @@ +Tue Mar 17 22:45:39 1998 Tim Janik + + * gtk/gtkwidget.c (gtk_widget_get_arg): return real boolean values + not just numbers. + + * gtk/gtktogglebutton.c (gtk_toggle_button_set_state): check + state for != 0, otherwise we get strange results. + Tue Mar 17 01:55:00 1998 Owen Taylor * gtk/gtkmain.c gtk/gtkentry.c: Try to guess if we can diff --git a/ChangeLog.pre-2-4 b/ChangeLog.pre-2-4 index 205cf09ad9..d304e8c08d 100644 --- a/ChangeLog.pre-2-4 +++ b/ChangeLog.pre-2-4 @@ -1,3 +1,11 @@ +Tue Mar 17 22:45:39 1998 Tim Janik + + * gtk/gtkwidget.c (gtk_widget_get_arg): return real boolean values + not just numbers. + + * gtk/gtktogglebutton.c (gtk_toggle_button_set_state): check + state for != 0, otherwise we get strange results. + Tue Mar 17 01:55:00 1998 Owen Taylor * gtk/gtkmain.c gtk/gtkentry.c: Try to guess if we can diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index 205cf09ad9..d304e8c08d 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,3 +1,11 @@ +Tue Mar 17 22:45:39 1998 Tim Janik + + * gtk/gtkwidget.c (gtk_widget_get_arg): return real boolean values + not just numbers. + + * gtk/gtktogglebutton.c (gtk_toggle_button_set_state): check + state for != 0, otherwise we get strange results. + Tue Mar 17 01:55:00 1998 Owen Taylor * gtk/gtkmain.c gtk/gtkentry.c: Try to guess if we can diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index 205cf09ad9..d304e8c08d 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,3 +1,11 @@ +Tue Mar 17 22:45:39 1998 Tim Janik + + * gtk/gtkwidget.c (gtk_widget_get_arg): return real boolean values + not just numbers. + + * gtk/gtktogglebutton.c (gtk_toggle_button_set_state): check + state for != 0, otherwise we get strange results. + Tue Mar 17 01:55:00 1998 Owen Taylor * gtk/gtkmain.c gtk/gtkentry.c: Try to guess if we can diff --git a/gtk/gtktogglebutton.c b/gtk/gtktogglebutton.c index c9eb8ad824..ef57d87260 100644 --- a/gtk/gtktogglebutton.c +++ b/gtk/gtktogglebutton.c @@ -158,7 +158,7 @@ gtk_toggle_button_set_state (GtkToggleButton *toggle_button, g_return_if_fail (toggle_button != NULL); g_return_if_fail (GTK_IS_TOGGLE_BUTTON (toggle_button)); - if (toggle_button->active != state) + if (toggle_button->active != (state != FALSE)) gtk_button_clicked (GTK_BUTTON (toggle_button)); } diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c index 2475a352e3..07b9d28693 100644 --- a/gtk/gtkwidget.c +++ b/gtk/gtkwidget.c @@ -881,22 +881,22 @@ gtk_widget_get_arg (GtkWidget *widget, GTK_VALUE_INT (*arg) = aux_info->height; break; case ARG_VISIBLE: - GTK_VALUE_BOOL (*arg) = GTK_WIDGET_VISIBLE (widget); + GTK_VALUE_BOOL (*arg) = (GTK_WIDGET_VISIBLE (widget) != FALSE); break; case ARG_SENSITIVE: - GTK_VALUE_BOOL (*arg) = GTK_WIDGET_SENSITIVE (widget); + GTK_VALUE_BOOL (*arg) = (GTK_WIDGET_SENSITIVE (widget) != FALSE); break; case ARG_CAN_FOCUS: - GTK_VALUE_BOOL (*arg) = GTK_WIDGET_CAN_FOCUS (widget); + GTK_VALUE_BOOL (*arg) = (GTK_WIDGET_CAN_FOCUS (widget) != FALSE); break; case ARG_HAS_FOCUS: - GTK_VALUE_BOOL (*arg) = GTK_WIDGET_HAS_FOCUS (widget); + GTK_VALUE_BOOL (*arg) = (GTK_WIDGET_HAS_FOCUS (widget) != FALSE); break; case ARG_CAN_DEFAULT: - GTK_VALUE_BOOL (*arg) = GTK_WIDGET_CAN_DEFAULT (widget); + GTK_VALUE_BOOL (*arg) = (GTK_WIDGET_CAN_DEFAULT (widget) != FALSE); break; case ARG_HAS_DEFAULT: - GTK_VALUE_BOOL (*arg) = GTK_WIDGET_HAS_DEFAULT (widget); + GTK_VALUE_BOOL (*arg) = (GTK_WIDGET_HAS_DEFAULT (widget) != FALSE); break; case ARG_STYLE: GTK_VALUE_BOXED (*arg) = (gpointer) gtk_widget_get_style (widget);