GTK4: Use toggle_bar function to focus on bar when toggled.

This commit is contained in:
NunoSempere 2024-07-21 09:44:55 -04:00
parent 37d00ae8ee
commit 418cb6f150

View File

@ -95,10 +95,10 @@ int handle_shortcut(func id)
switch (id) { switch (id) {
case show_searchbar: case show_searchbar:
gtk_widget_set_visible(GTK_WIDGET(bar.widget), 1); toggle_bar(notebook, _SEARCH);
break; break;
case hide_bar: case hide_bar:
gtk_widget_set_visible(GTK_WIDGET(bar.widget), 0); toggle_bar(notebook, _HIDDEN);
break; break;
} }