fixes: fix bugs found when running in a virtual machine

This commit is contained in:
NunoSempere 2023-03-28 13:25:32 -06:00
parent dbc334e870
commit 33b30cfe05
3 changed files with 3 additions and 2 deletions

View File

@ -15,6 +15,7 @@
#define WIDTH 1920
#define HEIGHT 1080
#define SEARCH_BAR_SIZE 1200
#define KEY(x) GDK_KEY_##x
#define ZOOM 1.4 /* Starting zoom level.*/
#define ZOOM_VAL .1 /* Zooming value in zoomin/zoomout functions */

View File

@ -6,7 +6,7 @@
# make uninstall
## C compiler
CC=clang
CC=gcc
## Main file
SRC=rose.c

2
rose.c
View File

@ -409,7 +409,7 @@ void window_init(GtkNotebook* notebook)
GTK_STYLE_PROVIDER(css), 800);
gtk_entry_buffer_new("", 0);
gtk_entry_set_alignment(search, 0.48);
gtk_widget_set_size_request(GTK_WIDGET(search), 1200, -1);
gtk_widget_set_size_request(GTK_WIDGET(search), SEARCH_BAR_SIZE, -1);
gtk_header_bar_set_custom_title(bar, GTK_WIDGET(search));
gtk_window_set_titlebar(window, GTK_WIDGET(bar));
g_signal_connect(search, "activate", G_CALLBACK(search_activate), notebook);