formatting pass

This commit is contained in:
NunoSempere 2024-03-23 22:25:10 -03:00
parent db67b513d2
commit 86989d878e

View File

@ -225,7 +225,6 @@ void handle_signal_bar_press_enter(GtkEntry* self, GtkNotebook* notebook)
gtk_entry_buffer_get_text(bar.line_text), gtk_entry_buffer_get_text(bar.line_text),
WEBKIT_FIND_OPTIONS_CASE_INSENSITIVE | WEBKIT_FIND_OPTIONS_WRAP_AROUND, WEBKIT_FIND_OPTIONS_CASE_INSENSITIVE | WEBKIT_FIND_OPTIONS_WRAP_AROUND,
G_MAXUINT); G_MAXUINT);
} }
/* Handle shortcuts */ /* Handle shortcuts */
@ -284,7 +283,7 @@ int handle_shortcut(func id, GtkNotebook* notebook)
case close_tab: case close_tab:
gtk_notebook_remove_page(notebook, gtk_notebook_get_current_page(notebook)); gtk_notebook_remove_page(notebook, gtk_notebook_get_current_page(notebook));
num_tabs -= 1; num_tabs -= 1;
if(gtk_notebook_get_n_pages(notebook) == 0){ if (gtk_notebook_get_n_pages(notebook) == 0) {
exit(0); exit(0);
} }
break; break;
@ -310,7 +309,7 @@ int handle_shortcut(func id, GtkNotebook* notebook)
bar.entry_mode = _FIND; bar.entry_mode = _FIND;
const char* search_text = webkit_find_controller_get_search_text(webkit_web_view_get_find_controller(notebook_get_webview(notebook))); const char* search_text = webkit_find_controller_get_search_text(webkit_web_view_get_find_controller(notebook_get_webview(notebook)));
if (search_text != NULL)gtk_entry_buffer_set_text(bar.line_text, search_text, strlen(search_text)); if (search_text != NULL) gtk_entry_buffer_set_text(bar.line_text, search_text, strlen(search_text));
gtk_entry_set_placeholder_text(bar.line, "Find"); gtk_entry_set_placeholder_text(bar.line, "Find");
gtk_window_set_focus(window, GTK_WIDGET(bar.line)); gtk_window_set_focus(window, GTK_WIDGET(bar.line));