lib: implement new functions which didn't exists in older gtk.

Change-Id: Ic4d11149c343b1d08baea5baade80fc41499443f