[niepce] ui: the default icon for the list store is now static
- From: Hubert Figuière <hub src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [niepce] ui: the default icon for the list store is now static
- Date: Sat, 18 Jan 2020 05:26:40 +0000 (UTC)
commit 45113ce7fe6158938e3a5ac9d4bb75f512cb7caf
Author: Hubert Figuière <hub figuiere net>
Date: Sat Jan 18 00:17:35 2020 -0500
ui: the default icon for the list store is now static
src/niepce/ui/imageliststore.cpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/niepce/ui/imageliststore.cpp b/src/niepce/ui/imageliststore.cpp
index 64f93e1..a59befb 100644
--- a/src/niepce/ui/imageliststore.cpp
+++ b/src/niepce/ui/imageliststore.cpp
@@ -35,8 +35,8 @@ namespace ui {
Glib::RefPtr<Gdk::Pixbuf> ImageListStore::get_loading_icon()
{
- Glib::RefPtr<Gdk::Pixbuf> icon;
- if(!icon) {
+ static Glib::RefPtr<Gdk::Pixbuf> icon;
+ if (!icon) {
static std::mutex m;
m.lock();
if (!icon) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]