[gnome-builder] libide: add comment about broken gtk stuff
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] libide: add comment about broken gtk stuff
- Date: Tue, 24 Mar 2015 00:18:39 +0000 (UTC)
commit 6a3131d657773ae08a26dbb9eebbd5c87f3dadeb
Author: Christian Hergert <christian hergert me>
Date: Fri Mar 13 02:12:53 2015 -0700
libide: add comment about broken gtk stuff
libide/ide-source-view.c | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/libide/ide-source-view.c b/libide/ide-source-view.c
index c20345e..35aaab0 100644
--- a/libide/ide-source-view.c
+++ b/libide/ide-source-view.c
@@ -1159,6 +1159,15 @@ ide_source_view__buffer_loaded_cb (IdeSourceView *self,
g_assert (IDE_IS_SOURCE_VIEW (self));
g_assert (IDE_IS_BUFFER (buffer));
+ /*
+ * FIXME:
+ *
+ * This will not always scroll to the position. It used to, because textview worked hard to scroll
+ * to the target location (when using scroll_to_mark). I think during the animation work
+ * everything broke. We need to do our own scroll_to_mark that will work around this.
+ *
+ * But I'm busy, so yeah. Sometime.
+ */
insert = gtk_text_buffer_get_insert (GTK_TEXT_BUFFER (buffer));
gtk_text_view_scroll_to_mark (GTK_TEXT_VIEW (self), insert, 0.0, TRUE, 1.0, 0.5);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]