[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master bf7d66aa1a: Fix build with GTK 3.18.0 or earlier
From: |
Po Lu |
Subject: |
master bf7d66aa1a: Fix build with GTK 3.18.0 or earlier |
Date: |
Tue, 15 Mar 2022 20:42:46 -0400 (EDT) |
branch: master
commit bf7d66aa1aa165bedbab33075820d25f405fcad5
Author: Po Lu <luangruo@yahoo.com>
Commit: Po Lu <luangruo@yahoo.com>
Fix build with GTK 3.18.0 or earlier
* src/gtkutil.c (xg_update_scroll_bar_pos)
(xg_update_horizontal_scrollbar_pos): Avoid
gtk_widget_queue_allocate on older GTK versions.
---
src/gtkutil.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/gtkutil.c b/src/gtkutil.c
index 174a1bffea..ec2864e34a 100644
--- a/src/gtkutil.c
+++ b/src/gtkutil.c
@@ -4736,7 +4736,9 @@ xg_update_scrollbar_pos (struct frame *f,
if (wdesc)
{
gdk_window_move_resize (wdesc, left, top, width, height);
+#if GTK_CHECK_VERSION (3, 20, 0)
gtk_widget_queue_allocate (wparent);
+#endif
}
#endif
}
@@ -4841,7 +4843,9 @@ xg_update_horizontal_scrollbar_pos (struct frame *f,
if (wdesc)
{
gdk_window_move_resize (wdesc, left, top, width, height);
+#if GTK_CHECK_VERSION (3, 20, 0)
gtk_widget_queue_allocate (wparent);
+#endif
}
#endif
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master bf7d66aa1a: Fix build with GTK 3.18.0 or earlier,
Po Lu <=