Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Associate popover with foldermanager #1396

Merged
merged 2 commits into from
Jan 6, 2024
Merged
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
12 changes: 6 additions & 6 deletions plugins/fuzzy-search/fuzzy-search-popover.vala
Original file line number Diff line number Diff line change
Expand Up @@ -20,21 +20,20 @@ public class Scratch.FuzzySearchPopover : Gtk.Popover {
private bool should_distinguish_projects;
private Gtk.EventControllerKey search_term_entry_key_controller;
private Gtk.Label title_label;
private Scratch.MainWindow current_window;
public Scratch.MainWindow current_window { get; construct; }
public bool sidebar_is_visible { get; set; }

public signal void open_file (string filepath);
public signal void close_search ();

public FuzzySearchPopover (Gee.HashMap<string, Services.SearchProject> pps, Scratch.MainWindow window) {
Object (
modal: true,
relative_to: window.toolbar,
constrain_to: Gtk.PopoverConstraint.WINDOW,
width_request: 500
relative_to: window.document_view,
width_request: 500,
current_window: window
);

current_window = window;

int height;
current_window.get_size (null, out height);
window_height = height;
Expand Down Expand Up @@ -85,6 +84,7 @@ public class Scratch.FuzzySearchPopover : Gtk.Popover {
}

construct {
pointing_to = { 0, 32, 1, 1 };
this.get_style_context ().add_class ("fuzzy-popover");

title_label = new Gtk.Label (_("Find project files"));
Expand Down