** psensor: fixed sensor type displayed in sensor preferences dialog.
** psensor: fixed compilation error on 64bits with ATI/AMD GPU support.
+** psensor: not calling g_thread_init when compiled with glib >= 2.32.
* v0.6.2.16
return FALSE;
}
+static void log_glib_info()
+{
+ log_debug("Compiled with GLib %d.%d.%d",
+ GLIB_MAJOR_VERSION,
+ GLIB_MINOR_VERSION,
+ GLIB_MICRO_VERSION);
+
+ log_debug("Running with GLib %d.%d.%d",
+ glib_major_version,
+ glib_minor_version,
+ glib_micro_version);
+}
+
int main(int argc, char **argv)
{
struct ui_psensor ui;
log_init();
+ log_glib_info();
+#if !(GLIB_CHECK_VERSION(2, 32, 0))
+ /*
+ * Since GLib 2.3.32 g_thread_init call is deprecated and not
+ * needed. Documentation of this method is not clear whether
+ * it is also useless with 2.3.31.
+ */
+ log_debug("Calling g_thread_init(NULL)");
g_thread_init(NULL);
+#endif
+
gdk_threads_init();
/* gdk_threads_enter(); */