From 1cdba8834040571ecddf3db5756145a3c6febf82 Mon Sep 17 00:00:00 2001 From: Havoc Pennington Date: Wed, 7 Mar 2001 21:55:02 +0000 Subject: [PATCH] use PRIORITY_VALIDATE 2001-03-07 Havoc Pennington * gtk/gtktextview.c (invalidated_handler): use PRIORITY_VALIDATE * gtk/gtktextview.h (GTK_TEXT_VIEW_PRIORITY_VALIDATE): add this here, bug #50368; changed to be GDK_PRIORITY_REDRAW + 5, instead of GDK_PRIORITY_REDRAW + 1, so you can insert stuff in between the validation and the redraw which is higher priority than the validation. --- ChangeLog | 10 ++++++++++ ChangeLog.pre-2-0 | 10 ++++++++++ ChangeLog.pre-2-10 | 10 ++++++++++ ChangeLog.pre-2-2 | 10 ++++++++++ ChangeLog.pre-2-4 | 10 ++++++++++ ChangeLog.pre-2-6 | 10 ++++++++++ ChangeLog.pre-2-8 | 10 ++++++++++ gtk/gtktextview.c | 2 +- gtk/gtktextview.h | 2 ++ 9 files changed, 73 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 0c9654576b..51bf013ed2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,13 @@ +2001-03-07 Havoc Pennington + + * gtk/gtktextview.c (invalidated_handler): use PRIORITY_VALIDATE + + * gtk/gtktextview.h (GTK_TEXT_VIEW_PRIORITY_VALIDATE): add this + here, bug #50368; changed to be GDK_PRIORITY_REDRAW + 5, instead + of GDK_PRIORITY_REDRAW + 1, so you can insert stuff in between the + validation and the redraw which is higher priority than the + validation. + 2001-03-07 Havoc Pennington * gtk/gtkentry.c (gtk_entry_get_property): remove trailer diff --git a/ChangeLog.pre-2-0 b/ChangeLog.pre-2-0 index 0c9654576b..51bf013ed2 100644 --- a/ChangeLog.pre-2-0 +++ b/ChangeLog.pre-2-0 @@ -1,3 +1,13 @@ +2001-03-07 Havoc Pennington + + * gtk/gtktextview.c (invalidated_handler): use PRIORITY_VALIDATE + + * gtk/gtktextview.h (GTK_TEXT_VIEW_PRIORITY_VALIDATE): add this + here, bug #50368; changed to be GDK_PRIORITY_REDRAW + 5, instead + of GDK_PRIORITY_REDRAW + 1, so you can insert stuff in between the + validation and the redraw which is higher priority than the + validation. + 2001-03-07 Havoc Pennington * gtk/gtkentry.c (gtk_entry_get_property): remove trailer diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index 0c9654576b..51bf013ed2 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,13 @@ +2001-03-07 Havoc Pennington + + * gtk/gtktextview.c (invalidated_handler): use PRIORITY_VALIDATE + + * gtk/gtktextview.h (GTK_TEXT_VIEW_PRIORITY_VALIDATE): add this + here, bug #50368; changed to be GDK_PRIORITY_REDRAW + 5, instead + of GDK_PRIORITY_REDRAW + 1, so you can insert stuff in between the + validation and the redraw which is higher priority than the + validation. + 2001-03-07 Havoc Pennington * gtk/gtkentry.c (gtk_entry_get_property): remove trailer diff --git a/ChangeLog.pre-2-2 b/ChangeLog.pre-2-2 index 0c9654576b..51bf013ed2 100644 --- a/ChangeLog.pre-2-2 +++ b/ChangeLog.pre-2-2 @@ -1,3 +1,13 @@ +2001-03-07 Havoc Pennington + + * gtk/gtktextview.c (invalidated_handler): use PRIORITY_VALIDATE + + * gtk/gtktextview.h (GTK_TEXT_VIEW_PRIORITY_VALIDATE): add this + here, bug #50368; changed to be GDK_PRIORITY_REDRAW + 5, instead + of GDK_PRIORITY_REDRAW + 1, so you can insert stuff in between the + validation and the redraw which is higher priority than the + validation. + 2001-03-07 Havoc Pennington * gtk/gtkentry.c (gtk_entry_get_property): remove trailer diff --git a/ChangeLog.pre-2-4 b/ChangeLog.pre-2-4 index 0c9654576b..51bf013ed2 100644 --- a/ChangeLog.pre-2-4 +++ b/ChangeLog.pre-2-4 @@ -1,3 +1,13 @@ +2001-03-07 Havoc Pennington + + * gtk/gtktextview.c (invalidated_handler): use PRIORITY_VALIDATE + + * gtk/gtktextview.h (GTK_TEXT_VIEW_PRIORITY_VALIDATE): add this + here, bug #50368; changed to be GDK_PRIORITY_REDRAW + 5, instead + of GDK_PRIORITY_REDRAW + 1, so you can insert stuff in between the + validation and the redraw which is higher priority than the + validation. + 2001-03-07 Havoc Pennington * gtk/gtkentry.c (gtk_entry_get_property): remove trailer diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index 0c9654576b..51bf013ed2 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,3 +1,13 @@ +2001-03-07 Havoc Pennington + + * gtk/gtktextview.c (invalidated_handler): use PRIORITY_VALIDATE + + * gtk/gtktextview.h (GTK_TEXT_VIEW_PRIORITY_VALIDATE): add this + here, bug #50368; changed to be GDK_PRIORITY_REDRAW + 5, instead + of GDK_PRIORITY_REDRAW + 1, so you can insert stuff in between the + validation and the redraw which is higher priority than the + validation. + 2001-03-07 Havoc Pennington * gtk/gtkentry.c (gtk_entry_get_property): remove trailer diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index 0c9654576b..51bf013ed2 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,3 +1,13 @@ +2001-03-07 Havoc Pennington + + * gtk/gtktextview.c (invalidated_handler): use PRIORITY_VALIDATE + + * gtk/gtktextview.h (GTK_TEXT_VIEW_PRIORITY_VALIDATE): add this + here, bug #50368; changed to be GDK_PRIORITY_REDRAW + 5, instead + of GDK_PRIORITY_REDRAW + 1, so you can insert stuff in between the + validation and the redraw which is higher priority than the + validation. + 2001-03-07 Havoc Pennington * gtk/gtkentry.c (gtk_entry_get_property): remove trailer diff --git a/gtk/gtktextview.c b/gtk/gtktextview.c index 9e8027ecf0..fefd95bab8 100644 --- a/gtk/gtktextview.c +++ b/gtk/gtktextview.c @@ -2554,7 +2554,7 @@ invalidated_handler (GtkTextLayout *layout, text_view->first_validate_idle = g_idle_add_full (GTK_PRIORITY_RESIZE - 1, first_validate_callback, text_view, NULL); if (!text_view->incremental_validate_idle) - text_view->incremental_validate_idle = g_idle_add_full (GDK_PRIORITY_REDRAW + 1, incremental_validate_callback, text_view, NULL); + text_view->incremental_validate_idle = g_idle_add_full (GTK_TEXT_VIEW_PRIORITY_VALIDATE, incremental_validate_callback, text_view, NULL); } static void diff --git a/gtk/gtktextview.h b/gtk/gtktextview.h index 02b9d11c12..b60ccd9719 100644 --- a/gtk/gtktextview.h +++ b/gtk/gtktextview.h @@ -53,6 +53,8 @@ typedef enum GTK_TEXT_WINDOW_BOTTOM } GtkTextWindowType; +#define GTK_TEXT_VIEW_PRIORITY_VALIDATE (GDK_PRIORITY_REDRAW + 5) + typedef struct _GtkTextView GtkTextView; typedef struct _GtkTextViewClass GtkTextViewClass;