projects
/
simple-launcher
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
make a private copy of the icon obtained through gtk_icon_them_load_icon
[simple-launcher]
/
launcher-item.cc
diff --git
a/launcher-item.cc
b/launcher-item.cc
index
39fa274
..
2b8c79f
100644
(file)
--- a/
launcher-item.cc
+++ b/
launcher-item.cc
@@
-162,6
+162,14
@@
GdkPixbuf *LauncherItem::getIcon(int icon_size) const {
}
}
+ if (pixbuf != NULL) {
+ GdkPixbuf *tempo = gdk_pixbuf_copy(pixbuf);
+
+ g_object_unref(pixbuf);
+
+ pifxbuf = tempo;
+ }
+
return pixbuf;
}