2003-11-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* gdk/Pixbuf.custom: (LoadResource (assembly, resource)): a null assembly uses the calling assembly. svn path=/trunk/gtk-sharp/; revision=20124
This commit is contained in:
parent
c3b09b0d5b
commit
6506bcb5cc
2 changed files with 9 additions and 0 deletions
|
@ -1,3 +1,9 @@
|
|||
2003-11-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
|
||||
|
||||
* gdk/Pixbuf.custom:
|
||||
(LoadResource (assembly, resource)): a null assembly uses the calling
|
||||
assembly.
|
||||
|
||||
2003-11-17 Ettore Perazzoli <ettore@ximian.com>
|
||||
|
||||
* gdk/Pixbuf.custom: Removed the Assembly constructors.
|
||||
|
|
|
@ -30,6 +30,9 @@
|
|||
|
||||
static public Pixbuf LoadResource (System.Reflection.Assembly assembly, string resource)
|
||||
{
|
||||
if (assembly == null)
|
||||
return LoadResource (resource);
|
||||
|
||||
System.IO.Stream s = assembly.GetManifestResourceStream (resource);
|
||||
if (s == null)
|
||||
return null;
|
||||
|
|
Loading…
Reference in a new issue