Warnings fixed.

dooris.c: In function ‘tray_icon_on_click’:
dooris.c:678:8: warning: unused variable ‘foo’ [-Wunused-variable]
dooris.c: In function ‘main’:
dooris.c:863:8: warning: variable ‘g_timeout’ set but not used [-Wunused-but-set-variable]