Gtk3: stop mass flooding in console from gtk_style_context_set_path().That call is unecessary in this context.

(cherry picked from commit 1aa4abc1e4)

Co-authored-by: zeljan1 <zeljko@holobit.hr>
This commit is contained in:
Željan Rikalo 2025-01-09 08:27:40 +00:00 committed by Željan Rikalo
parent 8a6df3acc0
commit e55f1f412f

View File

@ -2147,7 +2147,9 @@ begin
Context:=w^.get_style_context;
path:=w^.get_path;
gtk_style_context_set_path (context, path);
//it is wrong to call gtk_style_context_set_path here. Zeljan.
//https://docs.gtk.org/gtk3/method.StyleContext.set_path.html
//gtk_style_context_set_path (context, path);
gtk_style_context_set_state(context,(* gtk_widget_path_iter_get_state (path, -1)*) [TGtkStateFlagsIdxMinValue..TGtkStateFlagsIdxMaxValue]);
gtk_style_context_set_state(context, [GTK_STATE_FLAG_FOCUSED, GTK_STATE_FLAG_PRELIGHT]);