2004-04-12 Mike Kestner <mkestner@ximian.com>

* gnome/Program.custom : add ArgumentException for app_id containing
	spaces.  [fixes #56594]

svn path=/trunk/gtk-sharp/; revision=25374
This commit is contained in:
Mike Kestner 2004-04-12 19:43:06 +00:00
parent 3eacb4f47a
commit 3439b34bda
2 changed files with 8 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2004-04-12 Mike Kestner <mkestner@ximian.com>
* gnome/Program.custom : add ArgumentException for app_id containing
spaces. [fixes #56594]
2004-04-12 Mike Kestner <mkestner@ximian.com>
[Rework of a patch from Ben Maurer to turn GLib.Value

View File

@ -23,6 +23,9 @@ gtksharp_gnome_program_init (string app_id, string app_version, ref ModuleInfo m
public Program (string app_id, string app_version, ModuleInfo module, string[] argv, params object[] props) : base (IntPtr.Zero)
{
if (app_id.IndexOf (" ") > 0)
throw new ArgumentException ("app_id argument can't contain spaces.");
int nargs = props.Length / 2;
PropertyArg[] args = new PropertyArg[nargs];
GLib.Value[] vals = new GLib.Value[nargs];