[Gtk-sharp-list] MonoLaunch & XBGM & other

Rafael Teixeira Rafael Teixeira <monoman@gmail.com>
Wed, 26 Jan 2005 17:24:04 -0200


------=_Part_2112_25906540.1106767444595
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

I'll resubmit here my patch for a working FileChooser, for your
appreciation. My previous email was sent before I subscribed to this
list and is pending...

Hope it helps,=20

On Wed, 26 Jan 2005 00:10:32 +0000, underdog10@netcourrier.com
<underdog10@netcourrier.com> wrote:
> Hello,
>=20
> i own the project XBGM (xbgm.sourceforge.net) which is written in C# usin=
g a GTK# UI and is multi platform (Win32, Linux).
>=20
> In order to remove the command line window when running xbgm on win32, i =
contact Paco for MonoLaunch (http://www.mfconsulting.com/mono).
>=20
> Since the last version 1.0.1.0-1, I can now run XBGM nicely on win32 with=
out all gtk sharp dll in the XBGM install dir. So now I don't even need to =
set mono environment any more in a batch file wich confuse many  users of X=
BGM.
>=20
> The only thing missing in GTK# is a nice FileChooserDialog and also a to =
have a real DirectoryChooserDialog.
>=20
> I'am also looking for someone to make it run on MacOS X and other platfor=
m support by mono.
>=20
> So thanks for all the work done with mono and GTK#.
>=20
> KaYa.
>=20
> -------------------------------------------------------------
> NetCourrier, votre bureau virtuel sur Internet : Mail, Agenda, Clubs, Too=
lbar...
> Web/Wap : www.netcourrier.com
> T=C3=A9l=C3=A9phone/Fax : 08 92 69 00 21 (0,34 =E2=82=AC TTC/min)
> Minitel: 3615 NETCOURRIER (0,16 =E2=82=AC TTC/min)
>=20
> _______________________________________________
> Gtk-sharp-list maillist  -  Gtk-sharp-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/gtk-sharp-list
>=20


--=20
Rafael "Monoman" Teixeira
---------------------------------------
I'm trying to become a "Rosh Gadol" before my own eyes.=20
See http://www.joelonsoftware.com/items/2004/12/06.html for enlightment.

------=_Part_2112_25906540.1106767444595
Content-Type: text/x-patch; name="FileChooserDialog.diff"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment; filename="FileChooserDialog.diff"

Index: FileChooserDialog.custom
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- FileChooserDialog.custom=09(revision 39432)
+++ FileChooserDialog.custom=09(working copy)
@@ -21,6 +21,29 @@
=20
=20
 =09=09[DllImport("libgtk-win32-2.0-0.dll")]
+=09=09static extern IntPtr gtk_file_chooser_dialog_new(string title, IntPt=
r parent, int action,=20
+=09=09=09string firstButtonText, int firstButtonResponse,=20
+=09=09=09string secondButtonText, int secondButtonResponse, IntPtr nil);
+
+=09=09public FileChooserDialog (string title, string acceptButtonText, Win=
dow parent, FileChooserAction action)
+=09=09{
+=09=09=09if (GetType () !=3D typeof (FileChooserDialog)) {
+=09=09=09=09CreateNativeObject (new string[0], new GLib.Value[0]);
+=09=09=09=09Title =3D title;
+=09=09=09=09if (parent !=3D null)
+=09=09=09=09=09TransientFor =3D parent;
+=09=09=09=09Action =3D action;
+=09=09=09=09return;
+=09=09=09}
+=09=09=09Raw =3D gtk_file_chooser_dialog_new (title, parent =3D=3D null ? =
IntPtr.Zero : parent.Handle, (int)action,=20
+=09=09=09=09=09Gtk.Stock.Cancel, (int)ResponseType.Cancel,
+=09=09=09=09=09acceptButtonText, (int)ResponseType.Accept,
+=09=09=09=09=09IntPtr.Zero);
+=09=09}
+=09=09
+=09=09
+
+=09=09[DllImport("libgtk-win32-2.0-0.dll")]
 =09=09static extern IntPtr gtk_file_chooser_dialog_new(string title, IntPt=
r parent, int action, IntPtr nil);
=20
 =09=09public FileChooserDialog (string title, Window parent, FileChooserAc=
tion action)
@@ -131,3 +154,5 @@
 =09=09=09=09return result;
 =09=09=09}
 =09=09}
+
+=20

------=_Part_2112_25906540.1106767444595--