[gtk+] Give this code a chance to work
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Give this code a chance to work
- Date: Wed, 15 Jun 2011 03:22:17 +0000 (UTC)
commit d5dad6412b956f524ee7ef54caf3c2f6417b02b3
Author: Matthias Clasen <mclasen redhat com>
Date: Tue Jun 14 21:44:12 2011 -0400
Give this code a chance to work
At least it does not get uninitialized variable warnings now.
gtk/gtktextview.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtktextview.c b/gtk/gtktextview.c
index be0393b..dc9addc 100644
--- a/gtk/gtktextview.c
+++ b/gtk/gtktextview.c
@@ -7518,6 +7518,8 @@ adjust_allocation_recurse (GtkWidget *widget,
* into widget->allocation if the widget is not realized.
* FIXME someone figure out why this was.
*/
+ gtk_widget_get_allocation (widget, &allocation);
+
if (!gtk_widget_get_realized (widget))
{
if (gtk_widget_get_visible (widget))
@@ -7564,7 +7566,7 @@ adjust_allocation (GtkWidget *widget,
adjust_allocation_recurse (widget, &scroll_data);
}
-
+
static void
gtk_text_view_value_changed (GtkAdjustment *adjustment,
GtkTextView *text_view)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]