Add general gdk functions