[gnome-builder] debuggerui: fix warning when loading editor workspace
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] debuggerui: fix warning when loading editor workspace
- Date: Thu, 15 Oct 2020 23:28:29 +0000 (UTC)
commit 4a712a597ca83133290905f80d59e23dabb9189e
Author: Christian Hergert <chergert redhat com>
Date: Thu Oct 15 16:28:22 2020 -0700
debuggerui: fix warning when loading editor workspace
src/plugins/debuggerui/ide-debugger-log-view.c | 7 +++----
src/plugins/debuggerui/ide-debugger-log-view.ui | 2 +-
2 files changed, 4 insertions(+), 5 deletions(-)
---
diff --git a/src/plugins/debuggerui/ide-debugger-log-view.c b/src/plugins/debuggerui/ide-debugger-log-view.c
index b051dcf53..5033a27b4 100644
--- a/src/plugins/debuggerui/ide-debugger-log-view.c
+++ b/src/plugins/debuggerui/ide-debugger-log-view.c
@@ -178,6 +178,7 @@ ide_debugger_log_view_class_init (IdeDebuggerLogViewClass *klass)
gtk_widget_class_set_template_from_resource (widget_class, "/plugins/debuggerui/ide-debugger-log-view.ui");
gtk_widget_class_bind_template_child (widget_class, IdeDebuggerLogView, terminal);
gtk_widget_class_bind_template_child (widget_class, IdeDebuggerLogView, commandentry);
+ gtk_widget_class_bind_template_child (widget_class, IdeDebuggerLogView, scroller);
gtk_widget_class_bind_template_callback (widget_class, on_entry_activate);
}
@@ -186,10 +187,8 @@ ide_debugger_log_view_init (IdeDebuggerLogView *self)
{
gtk_widget_init_template (GTK_WIDGET (self));
- /* TODO: somehow scroll sync does now work */
- g_object_set (self->scroller,
- "adjustment", gtk_scrollable_get_vadjustment (GTK_SCROLLABLE (self->terminal)),
- NULL);
+ gtk_range_set_adjustment (GTK_RANGE (self->scroller),
+ gtk_scrollable_get_vadjustment (GTK_SCROLLABLE (self->terminal)));
}
void
diff --git a/src/plugins/debuggerui/ide-debugger-log-view.ui b/src/plugins/debuggerui/ide-debugger-log-view.ui
index 4aee8503f..a6e810379 100644
--- a/src/plugins/debuggerui/ide-debugger-log-view.ui
+++ b/src/plugins/debuggerui/ide-debugger-log-view.ui
@@ -20,7 +20,7 @@
</packing>
</child>
<child>
- <object class="GtkScrollbar">
+ <object class="GtkScrollbar" id="scroller">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="orientation">vertical</property>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]