[gedit/wip/adjustment-checks] view: check the new adjustments objects
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit/wip/adjustment-checks] view: check the new adjustments objects
- Date: Mon, 25 Jul 2022 01:01:21 +0000 (UTC)
commit e339a9990e6214dadcad8d7f687926ec801b8747
Author: Sébastien Wilmet <swilmet informatique-libre be>
Date: Mon Jul 25 02:54:38 2022 +0200
view: check the new adjustments objects
The invariants are respected, even when the text is cut off.
gedit/gedit-view.c | 10 ++++++++++
1 file changed, 10 insertions(+)
---
diff --git a/gedit/gedit-view.c b/gedit/gedit-view.c
index 74d85eb01..9261558a4 100644
--- a/gedit/gedit-view.c
+++ b/gedit/gedit-view.c
@@ -187,7 +187,12 @@ scrollable_notify_hadjustment_cb (GtkScrollable *scrollable,
GParamSpec *pspec,
gpointer user_data)
{
+ GtkAdjustment *hadjustment;
+
g_print ("%s()\n", G_STRFUNC);
+
+ hadjustment = gtk_scrollable_get_hadjustment (scrollable);
+ gedit_utils_check_adjustment_changes (hadjustment);
}
static void
@@ -195,7 +200,12 @@ scrollable_notify_vadjustment_cb (GtkScrollable *scrollable,
GParamSpec *pspec,
gpointer user_data)
{
+ GtkAdjustment *vadjustment;
+
g_print ("%s()\n", G_STRFUNC);
+
+ vadjustment = gtk_scrollable_get_vadjustment (scrollable);
+ gedit_utils_check_adjustment_changes (vadjustment);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]