Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions plugins/fuzzy-search/fuzzy-search-popover.vala
Original file line number Diff line number Diff line change
Expand Up @@ -234,11 +234,10 @@ public class Scratch.FuzzySearchPopover : Gtk.Popover {

scrolled = new Gtk.ScrolledWindow (null, null) {
propagate_natural_height = true,
hexpand = true
hexpand = true,
child = search_result_container
};

scrolled.add (search_result_container);

var box = new Gtk.Box (Gtk.Orientation.VERTICAL, 0);
box.pack_start (entry_layout, false, false);
box.pack_end (scrolled, true, true);
Expand Down
4 changes: 2 additions & 2 deletions plugins/pastebin/pastebin_dialog.vala
Original file line number Diff line number Diff line change
Expand Up @@ -379,9 +379,9 @@ namespace Scratch.Dialogs {
hscrollbar_policy = Gtk.PolicyType.NEVER,
height_request = 250,
hexpand = true,
vexpand = true
vexpand = true,
child = languages_listbox
};
languages_scrolled.add (languages_listbox);

var cancel_button = (Gtk.Button)format_dialog.add_button (_("Cancel"), Gtk.ResponseType.CANCEL);

Expand Down
4 changes: 2 additions & 2 deletions src/Dialogs/BranchActions/BranchListBox.vala
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ private class Scratch.Dialogs.BranchListBox : Gtk.Box {
hscrollbar_policy = NEVER,
vscrollbar_policy = AUTOMATIC,
min_content_height = 200,
vexpand = true
vexpand = true,
child = list_box
};
scrolled_window.child = list_box;

search_entry = new Gtk.SearchEntry () {
placeholder_text = _("Enter search term")
Expand Down
4 changes: 2 additions & 2 deletions src/Services/Document.vala
Original file line number Diff line number Diff line change
Expand Up @@ -226,9 +226,9 @@ namespace Scratch.Services {

scroll = new Gtk.ScrolledWindow (null, null) {
hexpand = true,
vexpand = true
vexpand = true,
child = source_view
};
scroll.add (source_view);

scroll_controller = new Gtk.EventControllerScroll (scroll, VERTICAL) {
propagation_phase = CAPTURE
Expand Down
16 changes: 9 additions & 7 deletions src/Widgets/FormatBar.vala
Original file line number Diff line number Diff line change
Expand Up @@ -93,13 +93,15 @@ public class Code.FormatBar : Gtk.Box {
lang_selection_listbox.invalidate_filter ();
});

var lang_scrolled = new Gtk.ScrolledWindow (null, null);
lang_scrolled.hscrollbar_policy = Gtk.PolicyType.NEVER;
lang_scrolled.height_request = 350;
lang_scrolled.expand = true;
lang_scrolled.margin_top = lang_scrolled.margin_bottom = 3;

lang_scrolled.add (lang_selection_listbox);
var lang_scrolled = new Gtk.ScrolledWindow (null, null) {
hscrollbar_policy = Gtk.PolicyType.NEVER,
height_request = 350,
hexpand = true,
vexpand = true,
margin_top = 3,
margin_bottom = 3,
child = lang_selection_listbox
};

unowned string[]? ids = manager.get_language_ids ();
unowned SList<Gtk.RadioButton> group = null;
Expand Down
5 changes: 3 additions & 2 deletions src/Widgets/Terminal.vala
Original file line number Diff line number Diff line change
Expand Up @@ -177,8 +177,9 @@ public class Code.Terminal : Gtk.Box {

spawn_shell (Scratch.saved_state.get_string ("last-opened-path"));

var scrolled_window = new Gtk.ScrolledWindow (null, terminal.get_vadjustment ());
scrolled_window.add (terminal);
var scrolled_window = new Gtk.ScrolledWindow (null, terminal.get_vadjustment ()) {
child = terminal
};

add (scrolled_window);
show_all ();
Expand Down