Use enum as argument instead gint.