GMainLoop *loop;
gpointer ret;
+#if !GLIB_CHECK_VERSION(2,35,0)
g_type_init ();
+#endif
loop = g_main_loop_new (NULL, FALSE);
wait_condition = g_cond_new ();
return GPOINTER_TO_INT (ret);
}
-<<<<<<< HEAD
#endif
int
main (int argc, char **argv)
{
+#if !GLIB_CHECK_VERSION(2,35,0)
g_type_init ();
+#endif
g_test_init (&argc, &argv, NULL);
g_test_add_func ("/gck/value/to_boolean", test_value_to_boolean);
int
main (int argc, char **argv)
{
+#if !GLIB_CHECK_VERSION(2,35,0)
g_type_init ();
+#endif
g_test_init (&argc, &argv, NULL);
g_set_prgname ("test-gck-crypto");
int
main (int argc, char **argv)
{
+#if !GLIB_CHECK_VERSION(2,35,0)
g_type_init ();
+#endif
g_test_init (&argc, &argv, NULL);
g_set_prgname ("test-gck-enumerator");
int
main (int argc, char **argv)
{
+#if !GLIB_CHECK_VERSION(2,35,0)
g_type_init ();
+#endif
g_test_init (&argc, &argv, NULL);
g_test_add_func ("/gck/module/initialize_async", test_initialize_async);
int
main (int argc, char **argv)
{
+#if !GLIB_CHECK_VERSION(2,35,0)
g_type_init ();
+#endif
g_test_init (&argc, &argv, NULL);
g_test_add ("/gck/modules/enumerate_objects", Test, NULL, setup, test_enumerate_objects, teardown);
int
main (int argc, char **argv)
{
+#if !GLIB_CHECK_VERSION(2,35,0)
g_type_init ();
+#endif
g_test_init (&argc, &argv, NULL);
g_test_add ("/gck/object/object_props", Test, NULL, setup, test_object_props, teardown);
int
main (int argc, char **argv)
{
+#if !GLIB_CHECK_VERSION(2,35,0)
g_type_init ();
+#endif
g_test_init (&argc, &argv, NULL);
g_set_prgname ("test-gck-session");
int
main (int argc, char **argv)
{
+#if !GLIB_CHECK_VERSION(2,35,0)
g_type_init ();
+#endif
g_test_init (&argc, &argv, NULL);
g_test_add ("/gck/slot/slot_info", Test, NULL, setup, test_slot_info, teardown);
int
main (int argc, char **argv)
{
+#if !GLIB_CHECK_VERSION(2,35,0)
g_type_init ();
+#endif
g_test_init (&argc, &argv, NULL);
/* Suppress these messages in tests */
guint system_owner_id;
guint private_owner_id;
+#if !GLIB_CHECK_VERSION(2,35,0)
g_type_init ();
+#endif
gtk_init (&argc, &argv);
#ifdef HAVE_LOCALE_H
gtk_box_pack_start (GTK_BOX (box), GTK_WIDGET (self->pv->entry), TRUE, FALSE, 0);
gtk_widget_show (GTK_WIDGET (self->pv->entry));
g_object_unref (buffer);
-#if GTK_CHECK_VERSION (3,1,1)
gtk_entry_set_placeholder_text (self->pv->entry, _("Password"));
-#endif
button = gtk_button_new_with_label (_("Unlock"));
gtk_box_pack_start (GTK_BOX (box), button, FALSE, FALSE, 0);
GError *error = NULL;
GtkWindow *window;
+#if !GLIB_CHECK_VERSION(2,35,0)
g_type_init ();
+#endif
#ifdef HAVE_LOCALE_H
/* internationalisation */
const gchar *filename;
gchar *path;
+#if !GLIB_CHECK_VERSION(2,35,0)
g_type_init ();
+#endif
g_set_prgname ("frob-parser");
if (argc != 2) {
int
main (int argc, char **argv)
{
+#if !GLIB_CHECK_VERSION(2,35,0)
g_type_init ();
+#endif
g_test_init (&argc, &argv, NULL);
g_set_prgname ("test-certificate-chain");
int
main (int argc, char **argv)
{
+#if !GLIB_CHECK_VERSION(2,35,0)
g_type_init ();
+#endif
g_test_init (&argc, &argv, NULL);
g_set_prgname ("test-certificate");
int
main (int argc, char **argv)
{
+#if !GLIB_CHECK_VERSION(2,35,0)
g_type_init ();
+#endif
g_test_init (&argc, &argv, NULL);
g_set_prgname ("test-filter-collection");
int
main (int argc, char **argv)
{
+#if !GLIB_CHECK_VERSION(2,35,0)
g_type_init ();
+#endif
g_test_init (&argc, &argv, NULL);
g_test_add ("/gcr/fingerprint/rsa", Test, NULL, setup, test_rsa, teardown);
int
main (int argc, char **argv)
{
+#if !GLIB_CHECK_VERSION(2,35,0)
g_type_init ();
+#endif
g_test_init (&argc, &argv, NULL);
g_set_prgname ("test-gnupg-collection");
int
main (int argc, char **argv)
{
+#if !GLIB_CHECK_VERSION(2,35,0)
g_type_init ();
+#endif
g_test_init (&argc, &argv, NULL);
g_test_add ("/gcr/gnupg-key/label", Test, NULL, setup, test_label, teardown);
int
main (int argc, char **argv)
{
+#if !GLIB_CHECK_VERSION(2,35,0)
g_type_init ();
+#endif
g_test_init (&argc, &argv, NULL);
g_set_prgname ("test-gnupg-process");
int
main (int argc, char **argv)
{
+#if !GLIB_CHECK_VERSION(2,35,0)
g_type_init ();
+#endif
g_test_init (&argc, &argv, NULL);
g_test_add ("/gcr/memory-icon/equal_same", Test, NULL, setup, test_equal_same, teardown);
guint i;
gchar *test_path;
+#if !GLIB_CHECK_VERSION(2,35,0)
g_type_init ();
+#endif
g_test_init (&argc, &argv, NULL);
g_set_prgname ("test-openpgp");
int
main (int argc, char **argv)
{
+#if !GLIB_CHECK_VERSION(2,35,0)
g_type_init ();
+#endif
g_test_init (&argc, &argv, NULL);
g_set_prgname ("test-gnupg-process");
gchar *test;
int ret;
+#if !GLIB_CHECK_VERSION(2,35,0)
g_type_init ();
+#endif
g_test_init (&argc, &argv, NULL);
g_set_prgname ("test-parser");
int
main (int argc, char **argv)
{
+#if !GLIB_CHECK_VERSION(2,35,0)
g_type_init ();
+#endif
g_test_init (&argc, &argv, NULL);
g_set_prgname ("test-pkcs11-certificate");
int
main (int argc, char **argv)
{
+#if !GLIB_CHECK_VERSION(2,35,0)
g_type_init ();
+#endif
g_test_init (&argc, &argv, NULL);
g_test_add_func ("/gcr/record/parse_colons", test_parse_colons);
int
main (int argc, char **argv)
{
+#if !GLIB_CHECK_VERSION(2,35,0)
g_type_init ();
+#endif
g_test_init (&argc, &argv, NULL);
g_set_prgname ("test-secret-exchange");
int
main (int argc, char **argv)
{
+#if !GLIB_CHECK_VERSION(2,35,0)
g_type_init ();
+#endif
g_test_init (&argc, &argv, NULL);
g_set_prgname ("test-simple-certificate");
gint ret;
guint i;
+#if !GLIB_CHECK_VERSION(2,35,0)
g_type_init ();
+#endif
g_test_init (&argc, &argv, NULL);
test_names = g_ptr_array_new_with_free_func (g_free);
int
main (int argc, char **argv)
{
+#if !GLIB_CHECK_VERSION(2,35,0)
g_type_init ();
+#endif
g_test_init (&argc, &argv, NULL);
g_set_prgname ("test-system-prompt");
int
main (int argc, char **argv)
{
+#if !GLIB_CHECK_VERSION(2,35,0)
g_type_init ();
+#endif
g_test_init (&argc, &argv, NULL);
g_set_prgname ("test-trust");
int
main (int argc, char **argv)
{
+#if !GLIB_CHECK_VERSION(2,35,0)
g_type_init ();
+#endif
g_test_init (&argc, &argv, NULL);
g_test_add_func ("/gcr/util/test_parse_lines", test_parse_lines);