[gtksourceview] assistant: remove magic from GTK_POS_TOP alignment
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtksourceview] assistant: remove magic from GTK_POS_TOP alignment
- Date: Thu, 1 Sep 2022 01:00:03 +0000 (UTC)
commit 2c5cb576a1cf6f8574f236958660abaafba70b3a
Author: Christian Hergert <chergert redhat com>
Date: Wed Aug 31 16:05:01 2022 -0700
assistant: remove magic from GTK_POS_TOP alignment
This is just a bit too obnoxious to manage alignment around, so instead
just align based on the CSS bounding box and rely on CSS for situations
where people want something different.
gtksourceview/gtksourceassistant.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gtksourceview/gtksourceassistant.c b/gtksourceview/gtksourceassistant.c
index 4f5bd323..19157a2f 100644
--- a/gtksourceview/gtksourceassistant.c
+++ b/gtksourceview/gtksourceassistant.c
@@ -220,7 +220,7 @@ _gtk_source_assistant_real_get_offset (GtkSourceAssistant *assistant,
}
else
{
- *y = (margin.bottom / 3 * 2) - 1;
+ *y = margin.bottom - 1;
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]