# HG changeset patch # User Olaf Wintermann # Date 1728209980 -7200 # Node ID 3968180cdfb01ec25e763c2826097525f99bfec0 # Parent 99a93a9250c488955a053cc6e23953d7bf9531a1 fix gtk3 build diff -r 99a93a9250c4 -r 3968180cdfb0 ui/gtk/text.c --- a/ui/gtk/text.c Sun Oct 06 12:08:40 2024 +0200 +++ b/ui/gtk/text.c Sun Oct 06 12:19:40 2024 +0200 @@ -709,9 +709,9 @@ UiPathTextField *pathtf = event->customdata1; for(int i=0;ivalue1;i++) { if(i <= event->value0) { - gtk_widget_remove_css_class(pathtf->current_path_buttons[i], "pathbar-button-inactive"); + WIDGET_REMOVE_CSS_CLASS(pathtf->current_path_buttons[i], "pathbar-button-inactive"); } else { - gtk_widget_add_css_class(pathtf->current_path_buttons[i], "pathbar-button-inactive"); + WIDGET_ADD_CSS_CLASS(pathtf->current_path_buttons[i], "pathbar-button-inactive"); } } diff -r 99a93a9250c4 -r 3968180cdfb0 ui/gtk/toolkit.h --- a/ui/gtk/toolkit.h Sun Oct 06 12:08:40 2024 +0200 +++ b/ui/gtk/toolkit.h Sun Oct 06 12:19:40 2024 +0200 @@ -65,6 +65,7 @@ #define SCROLLEDWINDOW_SET_CHILD(sw, child) gtk_scrolled_window_set_child(GTK_SCROLLED_WINDOW(sw), child) #define SCROLLEDWINDOW_GET_CHILD(sw) gtk_scrolled_window_get_child(GTK_SCROLLED_WINDOW(sw)) #define WIDGET_ADD_CSS_CLASS(w, cssclass) gtk_widget_add_css_class(w, cssclass) +#define WIDGET_REMOVE_CSS_CLASS(w, cssclass) gtk_widget_remove_css_class(w, cssclass) #else #define WINDOW_SHOW(window) gtk_widget_show_all(window) #define WINDOW_DESTROY(window) gtk_widget_destroy(window) @@ -76,6 +77,7 @@ #define SCROLLEDWINDOW_SET_CHILD(sw, child) gtk_container_add(GTK_CONTAINER(sw), child) #define SCROLLEDWINDOW_GET_CHILD(sw) gtk_bin_get_child(GTK_BIN(sw)) #define WIDGET_ADD_CSS_CLASS(w, cssclass) gtk_style_context_add_class(gtk_widget_get_style_context(w), cssclass) +#define WIDGET_REMOVE_CSS_CLASS(w, cssclass) gtk_style_context_remove_class(gtk_widget_get_style_context(w), cssclass) #endif #ifdef UI_GTK2