GTK4: Use toggle_bar function to focus on bar when toggled.
This commit is contained in:
parent
37d00ae8ee
commit
418cb6f150
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user