I#1649 - Unable to clear search

Correct signal ordering, aka save the state before executing
the search, thus when some part loads the search it's the new one,
not the previous search.

Closes https://gitlab.gnome.org/GNOME/evolution/-/issues/1649
This commit is contained in:
Milan Crha
2021-10-06 18:12:08 +02:00
parent e75c4faa36
commit acd57a8d7d
2 changed files with 2 additions and 2 deletions

View File

@ -688,7 +688,7 @@ shell_searchbar_constructed (GObject *object)
shell_view, "custom-search",
G_CALLBACK (shell_searchbar_custom_search_cb), searchbar);
g_signal_connect_after (
g_signal_connect (
shell_view, "execute-search",
G_CALLBACK (shell_searchbar_execute_search_cb), searchbar);

View File

@ -1068,7 +1068,7 @@ e_shell_view_class_init (EShellViewClass *class)
signals[EXECUTE_SEARCH] = g_signal_new (
"execute-search",
G_OBJECT_CLASS_TYPE (object_class),
G_SIGNAL_RUN_FIRST,
G_SIGNAL_RUN_LAST,
G_STRUCT_OFFSET (EShellViewClass, execute_search),
NULL, NULL,
g_cclosure_marshal_VOID__VOID,