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:
parent
3eacb4f47a
commit
3439b34bda
2 changed files with 8 additions and 0 deletions
|
@ -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>
|
2004-04-12 Mike Kestner <mkestner@ximian.com>
|
||||||
|
|
||||||
[Rework of a patch from Ben Maurer to turn GLib.Value
|
[Rework of a patch from Ben Maurer to turn GLib.Value
|
||||||
|
|
|
@ -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)
|
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;
|
int nargs = props.Length / 2;
|
||||||
PropertyArg[] args = new PropertyArg[nargs];
|
PropertyArg[] args = new PropertyArg[nargs];
|
||||||
GLib.Value[] vals = new GLib.Value[nargs];
|
GLib.Value[] vals = new GLib.Value[nargs];
|
||||||
|
|
Loading…
Reference in a new issue