Sun, 06 Oct 2024 12:19:40 +0200
fix gtk3 build
ui/gtk/text.c | file | annotate | diff | comparison | revisions | |
ui/gtk/toolkit.h | file | annotate | diff | comparison | revisions |
--- 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;i<event->value1;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"); } }
--- 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