2008-04-04 Mike Kestner <mkestner@novell.com>

* glib/Global.cs: renamed from Program.cs.  Program.Name is now 
	Global.ProgramName to try to avoid clashes with existing Gnome.Program
	usage.
	* gtk/Application.cs: s/GLib.Program.Name/GLib.Global.ProgramName.

svn path=/trunk/gtk-sharp/; revision=99875
This commit is contained in:
Mike Kestner 2008-04-04 18:45:13 +00:00
commit 213a3b99e3
4 changed files with 13 additions and 8 deletions

View File

@ -1,3 +1,10 @@
2008-04-04 Mike Kestner <mkestner@novell.com>
* glib/Global.cs: renamed from Program.cs. Program.Name is now
Global.ProgramName to try to avoid clashes with existing Gnome.Program
usage.
* gtk/Application.cs: s/GLib.Program.Name/GLib.Global.ProgramName.
2008-04-04 Mike Kestner <mkestner@novell.com>
* atk/Atk.metadata: markup all the Ref* methods to indicate owned refs.

View File

@ -1,4 +1,4 @@
// GLib.Program.cs - GProgram class implementation
// GLib.Global.cs - Global glib properties and methods.
//
// Author: Andres G. Aragoneses <aaragoneses@novell.com>
//
@ -25,15 +25,13 @@ namespace GLib {
using System.Text;
using System.Runtime.InteropServices;
public class Program
public class Global
{
//this is a static class
private Program ()
{
}
private Global () {}
public static string Name {
public static string ProgramName {
get {
return GLib.Marshaller.PtrToStringGFree(g_get_prgname());
}

View File

@ -32,6 +32,7 @@ sources = \
GException.cs \
GInterfaceAdapter.cs \
GInterfaceAttribute.cs \
Global.cs \
GString.cs \
GType.cs \
GTypeAttribute.cs \
@ -53,7 +54,6 @@ sources = \
Object.cs \
ObjectManager.cs \
Opaque.cs \
Program.cs \
PropertyAttribute.cs \
Signal.cs \
SignalArgs.cs \

View File

@ -41,7 +41,7 @@ namespace Gtk {
static void SetPrgname ()
{
GLib.Program.Name = System.IO.Path.GetFileNameWithoutExtension (Environment.GetCommandLineArgs () [0]);
GLib.Global.ProgramName = System.IO.Path.GetFileNameWithoutExtension (Environment.GetCommandLineArgs () [0]);
}
public static void Init ()