From 33b30cfe0573b7661c2073057252212f24841441 Mon Sep 17 00:00:00 2001 From: NunoSempere Date: Tue, 28 Mar 2023 13:25:32 -0600 Subject: fixes: fix bugs found when running in a virtual machine --- config.h | 1 + makefile | 2 +- rose.c | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/config.h b/config.h index 6dde0c7..6f8d4c4 100644 --- a/config.h +++ b/config.h @@ -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 */ diff --git a/makefile b/makefile index 4d28028..ec755d5 100644 --- a/makefile +++ b/makefile @@ -6,7 +6,7 @@ # make uninstall ## C compiler -CC=clang +CC=gcc ## Main file SRC=rose.c diff --git a/rose.c b/rose.c index 75f90f7..f19c88f 100644 --- a/rose.c +++ b/rose.c @@ -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); -- cgit v1.2.3