[gnome-builder/wip/exalm/terminal-scrolling: 5/6] messages: 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: 5/6] messages: Put IdeTerminal into a scrolled window
- Date: Mon, 27 Sep 2021 08:55:21 +0000 (UTC)
commit b2179aba8c8ce6b5b432d15212107065eca9207c
Author: Alexander Mikhaylenko <alexm gnome org>
Date: Sun Sep 26 05:50:50 2021 +0500
messages: Put IdeTerminal into a scrolled window
src/plugins/messages/gbp-messages-panel.c | 7 -------
src/plugins/messages/gbp-messages-panel.ui | 10 +---------
2 files changed, 1 insertion(+), 16 deletions(-)
---
diff --git a/src/plugins/messages/gbp-messages-panel.c b/src/plugins/messages/gbp-messages-panel.c
index cefcef6f4..54fb23d9d 100644
--- a/src/plugins/messages/gbp-messages-panel.c
+++ b/src/plugins/messages/gbp-messages-panel.c
@@ -31,7 +31,6 @@ struct _GbpMessagesPanel
DzlSignalGroup *signals;
- GtkScrollbar *scrollbar;
IdeTerminal *terminal;
};
@@ -136,22 +135,16 @@ gbp_messages_panel_class_init (GbpMessagesPanelClass *klass)
widget_class->destroy = gbp_messages_panel_destroy;
gtk_widget_class_set_template_from_resource (widget_class, "/plugins/messages/gbp-messages-panel.ui");
- gtk_widget_class_bind_template_child (widget_class, GbpMessagesPanel, scrollbar);
gtk_widget_class_bind_template_child (widget_class, GbpMessagesPanel, terminal);
}
static void
gbp_messages_panel_init (GbpMessagesPanel *self)
{
- GtkAdjustment *vadj;
-
gtk_widget_init_template (GTK_WIDGET (self));
ide_widget_set_context_handler (GTK_WIDGET (self), gbp_messages_panel_set_context);
- vadj = gtk_scrollable_get_vadjustment (GTK_SCROLLABLE (self->terminal));
- gtk_range_set_adjustment (GTK_RANGE (self->scrollbar), vadj);
-
self->signals = dzl_signal_group_new (IDE_TYPE_CONTEXT);
dzl_signal_group_connect_object (self->signals,
diff --git a/src/plugins/messages/gbp-messages-panel.ui b/src/plugins/messages/gbp-messages-panel.ui
index 9f5f163cc..82c187d16 100644
--- a/src/plugins/messages/gbp-messages-panel.ui
+++ b/src/plugins/messages/gbp-messages-panel.ui
@@ -4,9 +4,8 @@
<property name="icon-name">dialog-information-symbolic</property>
<property name="title" translatable="yes">Messages</property>
<child>
- <object class="GtkBox" id="box">
+ <object class="GtkScrolledWindow">
<property name="hexpand">true</property>
- <property name="orientation">horizontal</property>
<property name="visible">true</property>
<child>
<object class="IdeTerminal" id="terminal">
@@ -15,13 +14,6 @@
<property name="visible">true</property>
</object>
</child>
- <child>
- <object class="GtkScrollbar" id="scrollbar">
- <property name="hexpand">false</property>
- <property name="orientation">vertical</property>
- <property name="visible">true</property>
- </object>
- </child>
</object>
</child>
</template>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]