Aaargh. Forgot last mv
svn path=/trunk/gtk-sharp/; revision=20126
This commit is contained in:
parent
6506bcb5cc
commit
52d51cc863
1 changed files with 7 additions and 1 deletions
|
@ -31,7 +31,10 @@
|
|||
static public Pixbuf LoadResource (System.Reflection.Assembly assembly, string resource)
|
||||
{
|
||||
if (assembly == null)
|
||||
return LoadResource (resource);
|
||||
return LoadResource (System.Reflection.Assembly.GetCallingAssembly (), resource);
|
||||
|
||||
if (resource == null)
|
||||
throw new ArgumentNullException ("resource");
|
||||
|
||||
System.IO.Stream s = assembly.GetManifestResourceStream (resource);
|
||||
if (s == null)
|
||||
|
@ -42,6 +45,9 @@
|
|||
|
||||
static public Pixbuf LoadResource (string resource)
|
||||
{
|
||||
if (resource == null)
|
||||
throw new ArgumentNullException ("resource");
|
||||
|
||||
return LoadResource (System.Reflection.Assembly.GetCallingAssembly (), resource);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue