diff --git a/gtk3/main.c b/gtk3/main.c
index db7cc86..7866ce7 100644
--- a/gtk3/main.c
+++ b/gtk3/main.c
@@ -354,10 +354,12 @@ static void rumble_callback(GB_gameboy_t *gb, double amp) {
}
}
-static void clear_sidebar(void) {
+static gboolean clear_sidebar(void) {
GtkTextView *sidebar_output = builder_get(GTK_TEXT_VIEW, "console_sidebar_output");
GtkTextBuffer *sidebar_output_text_buf = gtk_text_view_get_buffer(sidebar_output);
gtk_text_buffer_set_text(sidebar_output_text_buf, "", -1);
+
+ return false;
}
static gboolean scroll_to_bottom(GtkTextView *textview, GtkTextMark *mark) {
@@ -375,7 +377,7 @@ static gboolean scroll_to_bottom(GtkTextView *textview, GtkTextMark *mark) {
return true;
}
-static void append_pending_output(void) {
+static gboolean append_pending_output(void) {
g_rec_mutex_lock(&gui_data.console_output_lock);
if (gui_data.should_clear_sidebar) {
@@ -401,16 +403,18 @@ static void append_pending_output(void) {
}
g_rec_mutex_unlock(&gui_data.console_output_lock);
+
+ return false;
}
-static void update_debugger_sidebar(GB_gameboy_t *gb) {
+static gboolean update_debugger_sidebar(GB_gameboy_t *gb) {
if (!GB_debugger_is_stopped(gb)) {
- return;
+ return false;
}
if (gui_data.main_thread != g_thread_self()) {
g_idle_add((GSourceFunc) update_debugger_sidebar, gb);
- return;
+ return false;
}
g_rec_mutex_lock(&gui_data.console_output_lock);
@@ -459,6 +463,8 @@ static void update_debugger_sidebar(GB_gameboy_t *gb) {
append_pending_output();
gui_data.log_to_sidebar = false;
g_rec_mutex_unlock(&gui_data.console_output_lock);
+
+ return false;
}
static void console_log(GB_gameboy_t *gb, const char *string, GB_log_attributes attributes) {
@@ -781,7 +787,7 @@ static void stop(void) {
gui_data.stopped = true;
}
-static void on_vblank(GB_gameboy_t *gb) {
+static gboolean on_vblank(GB_gameboy_t *gb) {
// Queue drawing of the current frame
if (gui_data.fallback_canvas) {
gtk_widget_queue_draw(GTK_WIDGET(gui_data.main_window));
@@ -791,6 +797,8 @@ static void on_vblank(GB_gameboy_t *gb) {
}
gtk_widget_queue_draw(GTK_WIDGET(gui_data.vram_viewer));
+
+ return false;
}
static void vblank(GB_gameboy_t *gb) {
diff --git a/gtk3/resources/css/main.css b/gtk3/resources/css/main.css
index fbbb1db..40cdce9 100644
--- a/gtk3/resources/css/main.css
+++ b/gtk3/resources/css/main.css
@@ -43,3 +43,6 @@
border-bottom: 1px solid #3d4548;
}
+.monospace {
+ font-family: monospace;
+}
diff --git a/gtk3/resources/ui/vram_viewer.ui b/gtk3/resources/ui/vram_viewer.ui
index 574d3ed..b3f205a 100644
--- a/gtk3/resources/ui/vram_viewer.ui
+++ b/gtk3/resources/ui/vram_viewer.ui
@@ -49,6 +49,8 @@ Author: Maximilian Mader
True
False
center
+ 10
+ 10
stack
@@ -65,7 +67,7 @@ Author: Maximilian Mader
False
slide-left-right
True
-
+