mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-13 11:39:13 +02:00
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:
parent
8a6df3acc0
commit
e55f1f412f
@ -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]);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user