Listing 4. This function changes the state icon to the connected state using what GTK+ calls the Apply icon. code: gtk_image_set_from_stock(GTK_IMAGE(XR_Status_Image), GTK_STOCK_APPLY, GTK_ICON_SIZE_BUTTON);