Replace X functions to GDK functions in panel_start_gui