From c63dc99a510ed1ce72c970b0efb09e7fd2787381 Mon Sep 17 00:00:00 2001 From: Jan Ziak <0xe2.0x9a.0x9b@gmail.com> Date: Fri, 5 Mar 2021 04:39:01 +0100 Subject: [PATCH] Avoid grabbing the filter entry if it is not realized gtk_widget_grab_focus() shouldn't be called on a widget that isn't realized. gtk_widget_get_realized(window->filter_entry) will always evaluate to FALSE at that codepoint. Closes: https://gitlab.xfce.org/apps/xfce4-taskmanager/-/issues/40 --- src/process-window.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/process-window.c b/src/process-window.c index e61d2f5..6af7519 100644 --- a/src/process-window.c +++ b/src/process-window.c @@ -316,8 +316,6 @@ xtm_process_window_init (XtmProcessWindow *window) g_signal_connect (G_OBJECT(window->filter_entry), "icon-press", G_CALLBACK(filter_entry_icon_pressed_cb), NULL); g_signal_connect (G_OBJECT(window->filter_entry), "changed", G_CALLBACK(filter_entry_keyrelease_handler), window->treeview); gtk_widget_set_tooltip_text (window->filter_entry, _("Filter on process name")); - - gtk_widget_grab_focus (GTK_WIDGET (window->filter_entry)); } static void