search provider: Fix incorrect assumption

Not every application window is a TerminalWindow.

https://bugzilla.redhat.com/show_bug.cgi?id=1398958`
parent d4e25a57
......@@ -119,9 +119,12 @@ handle_get_initial_result_set_cb (TerminalSearchProvider2 *skeleton,
windows = gtk_application_get_windows (GTK_APPLICATION (app));
for (l = windows; l != NULL; l = l->next)
{
TerminalWindow *window = TERMINAL_WINDOW (l->data);
TerminalWindow *window = (TerminalWindow*)(l->data);
GList *c, *containers;
if (!TERMINAL_IS_WINDOW (l->data))
continue;
containers = terminal_window_list_screen_containers (window);
for (c = containers; c != NULL; c = c->next)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment