fix build on older gtk

build was failing with gtk < 2.24 thanks to an unguarded
gtk_notebook_set_name(). Thanks Joe.