oregano icon indicating copy to clipboard operation
oregano copied to clipboard

oregano_warning popup - missing check for correct thread

Open drahnr opened this issue 8 years ago • 6 comments

Make sure it is used right, and nobody will ever include X11 again as this obsolete post suggests: https://stackoverflow.com/questions/18647475/threading-problems-with-gtk/1865103

drahnr avatar Jun 18 '17 17:06 drahnr

I suppose this issue has been closed with my commit:

https://github.com/gtrentalancia/oregano/commit/8dd76c5c89becdd3340e364dd6f9f222e4552f1a

and your subsequent merge:

https://github.com/drahnr/oregano/commit/4e8c529f22563191978db36bfff654282896ab81

Please let me know if there is anything else I can do. Also, for next time you merge, please include the full ChangeLog for the commit, so it is easier to track this sort of things (the issue resolution was stated in the original commit).

gtrentalancia avatar Jun 21 '17 13:06 gtrentalancia

No, this is a general problem.

There needs to be a check for those warning/logging funcs if we are in the correct thread and deal with it if not.

Otherwise this will happen again.

drahnr avatar Jun 21 '17 15:06 drahnr

I don't understand the problem.

MBanucu avatar Jun 25 '17 13:06 MBanucu

The two functions oregano_error() and oregano_warning() should only run in the main thread. As simple as that...

gtrentalancia avatar Jun 25 '17 14:06 gtrentalancia

Should hopefully be fixed here:

https://github.com/gtrentalancia/oregano/commit/27f932e900740550432e285cacc579f9ca2ac369

gtrentalancia avatar Jun 25 '17 14:06 gtrentalancia

I was more thinking of g_thread_self checks, storing the initial thread ID and comparing all others with it. This would have the advantage to have the platform handling of glib baked in withoud any additional hassles.

drahnr avatar Jun 25 '17 18:06 drahnr