fixes: fix bugs found when running in a virtual machine
This commit is contained in:
parent
dbc334e870
commit
33b30cfe05
1
config.h
1
config.h
|
@ -15,6 +15,7 @@
|
||||||
|
|
||||||
#define WIDTH 1920
|
#define WIDTH 1920
|
||||||
#define HEIGHT 1080
|
#define HEIGHT 1080
|
||||||
|
#define SEARCH_BAR_SIZE 1200
|
||||||
#define KEY(x) GDK_KEY_##x
|
#define KEY(x) GDK_KEY_##x
|
||||||
#define ZOOM 1.4 /* Starting zoom level.*/
|
#define ZOOM 1.4 /* Starting zoom level.*/
|
||||||
#define ZOOM_VAL .1 /* Zooming value in zoomin/zoomout functions */
|
#define ZOOM_VAL .1 /* Zooming value in zoomin/zoomout functions */
|
||||||
|
|
2
makefile
2
makefile
|
@ -6,7 +6,7 @@
|
||||||
# make uninstall
|
# make uninstall
|
||||||
|
|
||||||
## C compiler
|
## C compiler
|
||||||
CC=clang
|
CC=gcc
|
||||||
|
|
||||||
## Main file
|
## Main file
|
||||||
SRC=rose.c
|
SRC=rose.c
|
||||||
|
|
2
rose.c
2
rose.c
|
@ -409,7 +409,7 @@ void window_init(GtkNotebook* notebook)
|
||||||
GTK_STYLE_PROVIDER(css), 800);
|
GTK_STYLE_PROVIDER(css), 800);
|
||||||
gtk_entry_buffer_new("", 0);
|
gtk_entry_buffer_new("", 0);
|
||||||
gtk_entry_set_alignment(search, 0.48);
|
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_header_bar_set_custom_title(bar, GTK_WIDGET(search));
|
||||||
gtk_window_set_titlebar(window, GTK_WIDGET(bar));
|
gtk_window_set_titlebar(window, GTK_WIDGET(bar));
|
||||||
g_signal_connect(search, "activate", G_CALLBACK(search_activate), notebook);
|
g_signal_connect(search, "activate", G_CALLBACK(search_activate), notebook);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user