[gnome-builder/wip/exalm/terminal-scrolling: 3/7] terminal-page: Put IdeTerminal into a scrolled window
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/exalm/terminal-scrolling: 3/7] terminal-page: Put IdeTerminal into a scrolled window
- Date: Mon, 27 Sep 2021 08:55:34 +0000 (UTC)
commit d4baa63764551ea45be48f11e3db4d62130617d4
Author: Alexander Mikhaylenko <alexm gnome org>
Date: Sun Sep 26 05:48:56 2021 +0500
terminal-page: Put IdeTerminal into a scrolled window
src/libide/terminal/ide-terminal-page-private.h | 1 -
src/libide/terminal/ide-terminal-page.c | 7 -------
src/libide/terminal/ide-terminal-page.ui | 9 +--------
3 files changed, 1 insertion(+), 16 deletions(-)
---
diff --git a/src/libide/terminal/ide-terminal-page-private.h b/src/libide/terminal/ide-terminal-page-private.h
index b4a169e09..c1f806ec1 100644
--- a/src/libide/terminal/ide-terminal-page-private.h
+++ b/src/libide/terminal/ide-terminal-page-private.h
@@ -39,7 +39,6 @@ struct _IdeTerminalPage
GtkOverlay *terminal_overlay_top;
GtkRevealer *search_revealer_top;
IdeTerminal *terminal_top;
- GtkScrollbar *top_scrollbar;
IdeTerminalSearch *tsearch;
gint64 last_respawn;
diff --git a/src/libide/terminal/ide-terminal-page.c b/src/libide/terminal/ide-terminal-page.c
index ad6ae6067..74f964742 100644
--- a/src/libide/terminal/ide-terminal-page.c
+++ b/src/libide/terminal/ide-terminal-page.c
@@ -359,12 +359,6 @@ static void
ide_terminal_page_connect_terminal (IdeTerminalPage *self,
VteTerminal *terminal)
{
- GtkAdjustment *vadj;
-
- vadj = gtk_scrollable_get_vadjustment (GTK_SCROLLABLE (terminal));
-
- gtk_range_set_adjustment (GTK_RANGE (self->top_scrollbar), vadj);
-
g_signal_connect_object (terminal,
"focus-in-event",
G_CALLBACK (focus_in_event_cb),
@@ -528,7 +522,6 @@ ide_terminal_page_class_init (IdeTerminalPageClass *klass)
gtk_widget_class_set_template_from_resource (widget_class,
"/org/gnome/libide-terminal/ui/ide-terminal-page.ui");
gtk_widget_class_bind_template_child (widget_class, IdeTerminalPage, terminal_top);
- gtk_widget_class_bind_template_child (widget_class, IdeTerminalPage, top_scrollbar);
gtk_widget_class_bind_template_child (widget_class, IdeTerminalPage, terminal_overlay_top);
properties [PROP_CLOSE_ON_EXIT] =
diff --git a/src/libide/terminal/ide-terminal-page.ui b/src/libide/terminal/ide-terminal-page.ui
index 6ed03ca54..a8575b47e 100644
--- a/src/libide/terminal/ide-terminal-page.ui
+++ b/src/libide/terminal/ide-terminal-page.ui
@@ -13,8 +13,7 @@
<property name="expand">true</property>
<property name="visible">true</property>
<child>
- <object class="GtkBox" id="top_container">
- <property name="orientation">horizontal</property>
+ <object class="GtkScrolledWindow">
<property name="expand">true</property>
<property name="visible">true</property>
<child>
@@ -24,12 +23,6 @@
<property name="visible">true</property>
</object>
</child>
- <child>
- <object class="GtkScrollbar" id="top_scrollbar">
- <property name="orientation">vertical</property>
- <property name="visible">true</property>
- </object>
- </child>
</object>
</child>
</object>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]