void GtkUIBinding::SetIcon(SharedString icon_path) { // Notify all windows that the app icon has changed. std::vector<SharedUserWindow>& windows = this->GetOpenWindows(); std::vector<SharedUserWindow>::iterator i = windows.begin(); while (i != windows.end()) { SharedPtr<GtkUserWindow> guw = (*i).cast<GtkUserWindow>(); if (!guw.isNull()) guw->AppIconChanged(); i++; } }
void Win32UIBinding::SetIcon(SharedString icon_path) { // Notify all windows that the app icon has changed // TODO this kind of notification should really be placed in UIBinding.. std::vector<SharedUserWindow>& windows = this->GetOpenWindows(); std::vector<SharedUserWindow>::iterator i = windows.begin(); while (i != windows.end()) { SharedPtr<Win32UserWindow> wuw = (*i).cast<Win32UserWindow>(); if (!wuw.isNull()) wuw->AppIconChanged(); i++; } }