formatting pass

min
NunoSempere 2 months ago
parent db67b513d2
commit 86989d878e

@ -225,7 +225,6 @@ void handle_signal_bar_press_enter(GtkEntry* self, GtkNotebook* notebook)
gtk_entry_buffer_get_text(bar.line_text),
WEBKIT_FIND_OPTIONS_CASE_INSENSITIVE | WEBKIT_FIND_OPTIONS_WRAP_AROUND,
G_MAXUINT);
}
/* Handle shortcuts */
@ -284,7 +283,7 @@ int handle_shortcut(func id, GtkNotebook* notebook)
case close_tab:
gtk_notebook_remove_page(notebook, gtk_notebook_get_current_page(notebook));
num_tabs -= 1;
if(gtk_notebook_get_n_pages(notebook) == 0){
if (gtk_notebook_get_n_pages(notebook) == 0) {
exit(0);
}
break;
@ -310,7 +309,7 @@ int handle_shortcut(func id, GtkNotebook* notebook)
bar.entry_mode = _FIND;
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_window_set_focus(window, GTK_WIDGET(bar.line));

Loading…
Cancel
Save