mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2025-03-01 07:57:10 +00:00
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:
commit
213a3b99e3
|
@ -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>
|
2008-04-04 Mike Kestner <mkestner@novell.com>
|
||||||
|
|
||||||
* atk/Atk.metadata: markup all the Ref* methods to indicate owned refs.
|
* atk/Atk.metadata: markup all the Ref* methods to indicate owned refs.
|
||||||
|
|
|
@ -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>
|
// Author: Andres G. Aragoneses <aaragoneses@novell.com>
|
||||||
//
|
//
|
||||||
|
@ -25,15 +25,13 @@ namespace GLib {
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Runtime.InteropServices;
|
using System.Runtime.InteropServices;
|
||||||
|
|
||||||
public class Program
|
public class Global
|
||||||
{
|
{
|
||||||
|
|
||||||
//this is a static class
|
//this is a static class
|
||||||
private Program ()
|
private Global () {}
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
public static string Name {
|
public static string ProgramName {
|
||||||
get {
|
get {
|
||||||
return GLib.Marshaller.PtrToStringGFree(g_get_prgname());
|
return GLib.Marshaller.PtrToStringGFree(g_get_prgname());
|
||||||
}
|
}
|
|
@ -32,6 +32,7 @@ sources = \
|
||||||
GException.cs \
|
GException.cs \
|
||||||
GInterfaceAdapter.cs \
|
GInterfaceAdapter.cs \
|
||||||
GInterfaceAttribute.cs \
|
GInterfaceAttribute.cs \
|
||||||
|
Global.cs \
|
||||||
GString.cs \
|
GString.cs \
|
||||||
GType.cs \
|
GType.cs \
|
||||||
GTypeAttribute.cs \
|
GTypeAttribute.cs \
|
||||||
|
@ -53,7 +54,6 @@ sources = \
|
||||||
Object.cs \
|
Object.cs \
|
||||||
ObjectManager.cs \
|
ObjectManager.cs \
|
||||||
Opaque.cs \
|
Opaque.cs \
|
||||||
Program.cs \
|
|
||||||
PropertyAttribute.cs \
|
PropertyAttribute.cs \
|
||||||
Signal.cs \
|
Signal.cs \
|
||||||
SignalArgs.cs \
|
SignalArgs.cs \
|
||||||
|
|
|
@ -41,7 +41,7 @@ namespace Gtk {
|
||||||
|
|
||||||
static void SetPrgname ()
|
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 ()
|
public static void Init ()
|
||||||
|
|
Loading…
Reference in a new issue