From 61a1d4f0f3d18783ca521f667948f45ece55c476 Mon Sep 17 00:00:00 2001 From: NunoSempere Date: Sat, 20 Jul 2024 23:19:22 -0400 Subject: [PATCH] GTK4: savepoint before trying to figure out signals --- config.h | 2 +- rosenrot4_greenfield.c | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/config.h b/config.h index c893563..5433fe9 100644 --- a/config.h +++ b/config.h @@ -113,7 +113,7 @@ static struct { { CTRL, KEY(w), close_tab }, { CTRL, KEY(l), show_searchbar }, - { CTRL, KEY(u), hide_bar }, // previously: KEY(semicolon) + { CTRL, KEY(o), hide_bar }, // previously: KEY(semicolon) { CTRL, KEY(f), show_finder }, { CTRL, KEY(n), finder_next }, { CTRL, KEY(N), finder_prev }, diff --git a/rosenrot4_greenfield.c b/rosenrot4_greenfield.c index 5132cb0..bbbda5a 100644 --- a/rosenrot4_greenfield.c +++ b/rosenrot4_greenfield.c @@ -340,6 +340,7 @@ int handle_shortcut(func id, GtkNotebook* notebook) break; case hide_bar: + gtk_widget_set_visible(GTK_WIDGET(bar.widget), 0); toggle_bar(notebook, _HIDDEN); break; @@ -385,9 +386,9 @@ int main(int argc, char** argv) /* Initialize GTK in general */ gtk_init(); g_object_set(gtk_settings_get_default(), GTK_SETTINGS_CONFIG_H, NULL); // https://docs.gtk.org/gobject/method.Object.set.html - GtkCssProvider* css = gtk_css_provider_new(); - gtk_css_provider_load_from_path(css, "/opt/rosenrot/style.css"); - gtk_style_context_add_provider_for_display(gdk_display_get_default(), GTK_STYLE_PROVIDER(css), 0); /* might change with GTK4/webkitgtk6.0 */ + // GtkCssProvider* css = gtk_css_provider_new(); + // gtk_css_provider_load_from_path(css, "/opt/rosenrot/style.css"); + // gtk_style_context_add_provider_for_display(gdk_display_get_default(), GTK_STYLE_PROVIDER(css), 0); /* might change with GTK4/webkitgtk6.0 */ printf("%d", GTK_STYLE_PROVIDER_PRIORITY_USER); printf("%d", GTK_STYLE_PROVIDER_PRIORITY_FALLBACK);