[gtk+] Don't use GTK_WIDGET_*SET_FLAGS (wid, GTK_PARENT_SENSITIVE)
- From: Javier Jardón <jjardon src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Don't use GTK_WIDGET_*SET_FLAGS (wid, GTK_PARENT_SENSITIVE)
- Date: Sat, 6 Mar 2010 12:22:20 +0000 (UTC)
commit 691c13c42408eba0b1b59d704ca2967abed76d82
Author: Javier Jardón <jjardon gnome org>
Date: Sat Mar 6 13:13:01 2010 +0100
Don't use GTK_WIDGET_*SET_FLAGS (wid, GTK_PARENT_SENSITIVE)
https://bugzilla.gnome.org/show_bug.cgi?id=69872
gtk/gtkwidget.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c
index 8b227b4..298fa26 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -9169,9 +9169,9 @@ gtk_widget_propagate_state (GtkWidget *widget,
if (data->parent_sensitive)
- GTK_WIDGET_SET_FLAGS (widget, GTK_PARENT_SENSITIVE);
+ GTK_OBJECT_FLAGS (widget) |= GTK_PARENT_SENSITIVE;
else
- GTK_WIDGET_UNSET_FLAGS (widget, GTK_PARENT_SENSITIVE);
+ GTK_OBJECT_FLAGS (widget) &= ~(GTK_PARENT_SENSITIVE);
if (gtk_widget_is_sensitive (widget))
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]