fix some small typos

This commit is contained in:
NunoSempere 2024-07-22 21:59:00 -04:00
parent 51287bc420
commit c3ac0c0333
3 changed files with 6 additions and 8 deletions

View File

@ -2,13 +2,10 @@
#include <gtk/gtk.h>
/* Key user config */
#define HEIGHT 1080
#define FULL_WIDTH 1920
#define WIDTH FULL_WIDTH
#define BAR_WIDTH FULL_WIDTH/2
#define HEIGHT_GTK3 990
#define HEIGHT_GTK4 1080
// GTK4 and GTK3 interpret height differently.
// In GTK4, it includes the height of the top bar
/* More user config */
#define ZOOM_START_LEVEL 1.8

View File

@ -399,7 +399,7 @@ int main(int argc, char** argv)
// Window
window = GTK_WINDOW(gtk_window_new(0));
gtk_window_set_default_size(window, WIDTH, HEIGHT_GTK3);
gtk_window_set_default_size(window, WIDTH, HEIGHT);
// Notebook
notebook = GTK_NOTEBOOK(gtk_notebook_new());
gtk_notebook_set_show_tabs(notebook, false);

View File

@ -1,6 +1,7 @@
#include <gdk/gdk.h>
#include <stdlib.h>
#include <string.h>
#include <webkit/webkit.h>
#include "config.h"
#include "plugins/plugins.h"
@ -39,7 +40,7 @@ void load_uri(WebKitWebView* view, const char* uri)
if (is_empty_uri) {
webkit_web_view_load_uri(view, "");
toggle_bar(notebook, _SEARCH);
return
return;
}
bool has_direct_uri_prefix = g_str_has_prefix(uri, "http://") || g_str_has_prefix(uri, "https://") || g_str_has_prefix(uri, "file://") || g_str_has_prefix(uri, "about:");
@ -53,7 +54,7 @@ void load_uri(WebKitWebView* view, const char* uri)
char tmp[strlen("https://") + strlen(uri) + 1];
snprintf(tmp, sizeof(tmp) + 1, "https://%s", uri);
webkit_web_view_load_uri(view, tmp);
return
return;
}
int l = SHORTCUT_N + strlen(uri) + 1;
@ -63,7 +64,7 @@ void load_uri(WebKitWebView* view, const char* uri)
bool has_shortcut = (check == 2);
if (has_shortcut){
webkit_web_view_load_uri(view, uri_expanded);
return
return;
}
char tmp[strlen(uri) + strlen(SEARCH)];