gtk+-2: If gtk fails to initialize, fallback to the curses backend.
authorNeal H. Walfield <neal@gnu.org>
Sat, 16 May 2015 20:51:20 +0000 (22:51 +0200)
committerNeal H. Walfield <neal@gnu.org>
Sat, 16 May 2015 20:51:20 +0000 (22:51 +0200)
commitedd9a884604ff76e63d238504ede9b118655c55b
tree557e65ef3b7a26e8aca49ee2dac57b4a859014fe
parentd3c52a144b5b23d0d841a99a310090dcafe2074b
gtk+-2: If gtk fails to initialize, fallback to the curses backend.

* gtk+-2/pinentry-gtk-2.c (main): Use gtk_init_check instead of
gtk_init.  If gtk_init_check fails, fallback to the curses backend.

--

Reported-by: Daniel Kahn Gillmorr <dkg@fifthhorseman.net>. Closes
issue #1982.
gtk+-2/pinentry-gtk-2.c