mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-12 21:40:19 +00:00
Move an assert to the right place. (#341661, Pascal Terjan)
2006-05-13 Matthias Clasen <mclasen@redhat.com> * gtk/gtktextview.c (gtk_text_view_allocate_children): Move an assert to the right place. (#341661, Pascal Terjan)
This commit is contained in:
parent
8941969cb1
commit
2fc15d31cf
@ -1,3 +1,8 @@
|
|||||||
|
2006-05-13 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
|
* gtk/gtktextview.c (gtk_text_view_allocate_children): Move
|
||||||
|
an assert to the right place. (#341661, Pascal Terjan)
|
||||||
|
|
||||||
2006-05-12 Matthias Clasen <mclasen@redhat.com>
|
2006-05-12 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
* gtk/gtknotebook.c: Fix some corner cases in the size
|
* gtk/gtknotebook.c: Fix some corner cases in the size
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
2006-05-13 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
|
* gtk/gtktextview.c (gtk_text_view_allocate_children): Move
|
||||||
|
an assert to the right place. (#341661, Pascal Terjan)
|
||||||
|
|
||||||
2006-05-12 Matthias Clasen <mclasen@redhat.com>
|
2006-05-12 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
* gtk/gtknotebook.c: Fix some corner cases in the size
|
* gtk/gtknotebook.c: Fix some corner cases in the size
|
||||||
|
@ -2901,6 +2901,8 @@ gtk_text_view_allocate_children (GtkTextView *text_view)
|
|||||||
{
|
{
|
||||||
GtkTextViewChild *child = tmp_list->data;
|
GtkTextViewChild *child = tmp_list->data;
|
||||||
|
|
||||||
|
g_assert (child != NULL);
|
||||||
|
|
||||||
if (child->anchor)
|
if (child->anchor)
|
||||||
{
|
{
|
||||||
/* We need to force-validate the regions containing
|
/* We need to force-validate the regions containing
|
||||||
@ -2933,8 +2935,6 @@ gtk_text_view_allocate_children (GtkTextView *text_view)
|
|||||||
GtkAllocation allocation;
|
GtkAllocation allocation;
|
||||||
GtkRequisition child_req;
|
GtkRequisition child_req;
|
||||||
|
|
||||||
g_assert (child != NULL);
|
|
||||||
|
|
||||||
allocation.x = child->x;
|
allocation.x = child->x;
|
||||||
allocation.y = child->y;
|
allocation.y = child->y;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user