licq-im / licq

An instant messaging client for UNIX
http://www.licq.org/
16 stars 4 forks source link

GUI plugin in main thread #1

Closed erijo closed 13 years ago

erijo commented 13 years ago

Add functionality for running a GUI plugin instead of the daemon in the main thread (i.e. the initial thread that main() is called in). The reason for this is that on e.g. Mac OS X the GUI parts of Qt (or more precise the underlaying GUI libraries) only works when used in the main thread.

I've made it so that when the feature is enabled, the first plugin with "-gui" in it's name will be run in the main thread. In the future it could perhaps be some kine of property on the plugin instead.

For now I've only enabled it on Mac OS X, but it could be made configurable at run time.