From amartinez@atc.ugr.es Mon Mar 1 11:22:41 2004 From: amartinez@atc.ugr.es (=?windows-1252?Q?Antonio_Mart=EDnez_=C1lvarez?=) Date: Mon, 01 Mar 2004 12:22:41 +0100 Subject: [Gtk-sharp-list] Changing the state of a CheckButton In-Reply-To: <1077912661.29289.755.camel@localhost.localdomain> References: <1077748025.1922.14.camel@euler> <1077912661.29289.755.camel@localhost.localdomain> Message-ID: <40431D01.1030306@atc.ugr.es> Mike Kestner wrote: > On Wed, 2004-02-25 at 16:27, Antonio Martínez Álvarez wrote: > >>Hello. >> >>How do I make a CheckButton not to change when the user clicks on it? >>I suppose I have to do something like disconnect an event. I have been >>looking for something like that without good results. > > > Are you looking for the Widget.Sensitive property? Ok but it could be a solution, but I don't want the grayish aspect of the widget. Any other way to do what I want? Thank you so much. -- Antonio Martnez From mkestner@ximian.com Mon Mar 1 14:47:57 2004 From: mkestner@ximian.com (Mike Kestner) Date: Mon, 01 Mar 2004 08:47:57 -0600 Subject: [Gtk-sharp-list] Changing the state of a CheckButton In-Reply-To: <40431D01.1030306@atc.ugr.es> References: <1077748025.1922.14.camel@euler> <1077912661.29289.755.camel@localhost.localdomain> <40431D01.1030306@atc.ugr.es> Message-ID: <1078152476.3192.2.camel@localhost.localdomain> On Mon, 2004-03-01 at 05:22, Antonio Martínez Álvarez wrote: > >>How do I make a CheckButton not to change when the user clicks on it? > >>I suppose I have to do something like disconnect an event. I have been > >>looking for something like that without good results. > > > > Are you looking for the Widget.Sensitive property? > > Ok but it could be a solution, but I don't want the grayish aspect of > the widget. > Any other way to do what I want? Why don't you want the "grayish aspect"? If you have a sensitive checkbutton that doesn't change when it's clicked, and it doesn't look like you aren't allowed to click it, your users are just going to get frustrated that your program isn't doing what they tell it to do. -- Mike Kestner From felipemaya@manizales.com Mon Mar 1 15:54:00 2004 From: felipemaya@manizales.com (felipe maya) Date: Mon, 1 Mar 2004 09:54:00 -0600 Subject: [Gtk-sharp-list] gtksharpglue+DllNotFoundException Message-ID: <200403011554.i21Fs0726722@server1.enredese.net> I'm trying with gtk-sharp-0.17 from source:

1) tar -xzvf gtk-sharp-0.17.tar.gz
2) ./configure
3) make
4) make install

The compilation is SUCCESS, but when the program is executed with mono I'm obtaining System.DllNotFoundException with gtksharpglue.

WHAT IS WRONG.


Consigue tu correo GRATIS en Manizales.com,
dale vida a tus mensajes con más de 300 motivos grficos.
Busca el portal de tu ciudad en http://66.216.122.105

From mkestner@ximian.com Mon Mar 1 15:01:05 2004 From: mkestner@ximian.com (Mike Kestner) Date: Mon, 01 Mar 2004 09:01:05 -0600 Subject: [Gtk-sharp-list] gtksharpglue+DllNotFoundException In-Reply-To: <200403011554.i21Fs0726722@server1.enredese.net> References: <200403011554.i21Fs0726722@server1.enredese.net> Message-ID: <1078153264.3192.5.camel@localhost.localdomain> On Mon, 2004-03-01 at 09:54, felipe maya wrote: > I'm trying with gtk-sharp-0.17 from source: > > 1) tar -xzvf gtk-sharp-0.17.tar.gz > 2) ./configure > 3) make > 4) make install > > The compilation is SUCCESS, but when the program is executed with mono > I'm obtaining System.DllNotFoundException with gtksharpglue. export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH -- Mike Kestner From felipemaya@manizales.com Mon Mar 1 19:39:38 2004 From: felipemaya@manizales.com (felipe maya) Date: Mon, 1 Mar 2004 13:39:38 -0600 Subject: [Gtk-sharp-list] ButtonPressEvent Message-ID: <200403011939.i21JdcS01783@server1.enredese.net> I have this function:

tv.ButtonPressEvent += new ButtonPressEventHandler (button_pressed);

void button_pressed (object obj, EventArgs args){
Gdk.EventButton ev = args.Event;
if (ev.Button == 1){

}
}

But from 0.15 version is not properly.

HOW IS NOW (0.17).

THANKS

Consigue tu correo GRATIS en Manizales.com,
dale vida a tus mensajes con más de 300 motivos grficos.
Busca el portal de tu ciudad en http://66.216.122.105

From jlupion@alcornoque.jazztel.es Mon Mar 1 19:49:28 2004 From: jlupion@alcornoque.jazztel.es (Juan =?iso-8859-1?q?Lupi=F3n?=) Date: Mon, 1 Mar 2004 20:49:28 +0100 Subject: [Gtk-sharp-list] ButtonPressEvent In-Reply-To: <200403011939.i21JdcS01783@server1.enredese.net> References: <200403011939.i21JdcS01783@server1.enredese.net> Message-ID: <200403012049.28525.jlupion@alcornoque.jazztel.es> Will it have something to do with FAQ section 3.3, maybe? (http://gtk-sharp.sourceforge.net/faq.html) > But from 0.15 version is not properly. > > HOW IS NOW (0.17). > > THANKS From kokey@gluch.org.mx Mon Mar 1 23:27:42 2004 From: kokey@gluch.org.mx (Jorge de J. Ramirez S.) Date: Mon, 1 Mar 2004 16:27:42 -0700 (MST) Subject: [Gtk-sharp-list] glade windows Message-ID: <4699.148.235.12.17.1078183662.squirrel@mail.gluch.org.mx> Hi, I have a glade project with 2 windows, so when i push a button need to open the second window, but i don't have success get... =S this is part of the C# code: public SyncTss (string[] args) { Application.Init(); //gxml is declarated in public class gxml = new Glade.XML ("synctss.glade", "login", null); gxml.Autoconnect (this); Application.Run(); } public void on_button_Login_clicked (System.Object obj, EventArgs e){ ????? } Any idea? (o_ //\ V_/_ "hackers build things, crackers break them." http://kokey.gluch.org.mx From amartinez@atc.ugr.es Tue Mar 2 10:52:47 2004 From: amartinez@atc.ugr.es (=?ISO-8859-1?Q?Antonio_Mart=EDnez_=C1lvarez?=) Date: Tue, 02 Mar 2004 11:52:47 +0100 Subject: [Gtk-sharp-list] Changing the state of a CheckButton In-Reply-To: <1078152476.3192.2.camel@localhost.localdomain> References: <1077748025.1922.14.camel@euler> <1077912661.29289.755.camel@localhost.localdomain> <40431D01.1030306@atc.ugr.es> <1078152476.3192.2.camel@localhost.localdomain> Message-ID: <4044677F.8040306@atc.ugr.es> Mike Kestner wrote: >>Ok but it could be a solution, but I don't want the grayish aspect of >>the widget. >>Any other way to do what I want? > > > Why don't you want the "grayish aspect"? If you have a sensitive > checkbutton that doesn't change when it's clicked, and it doesn't look > like you aren't allowed to click it, your users are just going to get > frustrated that your program isn't doing what they tell it to do. Ok. It really seemed a bit strange, but it's what I want. I need a set of 8 CkeckButton widgets to show a 8 bits binary integer (like LEDs). The "grayish aspect" don't show the information very clearly. Thank you. -- Antonio Martnez From jeremiah@facility9.com Tue Mar 2 17:03:54 2004 From: jeremiah@facility9.com (Jeremiah McElroy) Date: Tue, 02 Mar 2004 12:03:54 -0500 Subject: [Gtk-sharp-list] RadioMenuItem Problems Message-ID: <4044BE7A.80402@facility9.com> I have a bit of code for a debug window that prints messages when they are at or below a certain logging threshold. The threshold is set when the window is created, but I wanted to add functionality to change the threshold on the fly. I have attempted to implement this using a menu containing RadioMenuItems that correspond to the various log levels. However, when I close the DebugWindow (which is created by my main app) mono crashes with a System.NullReferenceException: Unhandled Exception: System.NullReferenceException: A null value was found where an object instance was required in (unmanaged) (wrapper managed-to-native) Gtk.Widget:gtk_widget_destroy (intptr) in <0x00004> (wrapper managed-to-native) Gtk.Widget:gtk_widget_destroy (intptr) in <0x0001f> Gtk.Widget:Destroy () in <0x0000e> SharpJab.DebugWindow:OnMenuCloseEvent (object,System.EventArgs) in <0x0005a> (wrapper delegate-invoke) System.MulticastDelegate:invoke_void_object_EventArgs (object,System.EventArgs) in <0x0012b> GtkSharp.voidObjectSignal:voidObjectCallback (intptr,int) in <0x00030> (wrapper native-to-managed) GtkSharp.voidObjectSignal:voidObjectCallback (intptr,int) in (unmanaged) (wrapper managed-to-native) Gtk.Application:gtk_main () in <0x00004> (wrapper managed-to-native) Gtk.Application:gtk_main () in <0x00007> Gtk.Application:Run () in <0x005cb> Projects.TestApp2:.ctor (string[]) in <0x00024> Projects.TestApp2:Main (string[]) Here is the code for creating the menu: Menu LogLevelMenu = new Menu(); RadioMenuItem DebugItem = new RadioMenuItem ("_Debug"); group = DebugItem.Group; RadioMenuItem HighItem = new RadioMenuItem (group, "_High"); RadioMenuItem NormalItem = new RadioMenuItem (group, "_Normal"); RadioMenuItem MinimalItem = new RadioMenuItem (group, "_Minimal"); RadioMenuItem NoneItem = new RadioMenuItem (group, "N_one"); LogLevelMenu.Append (DebugItem); LogLevelMenu.Append (HighItem); LogLevelMenu.Append (NormalItem); LogLevelMenu.Append (MinimalItem); LogLevelMenu.Append (NoneItem); MenuItem LogLevelItem = new MenuItem ("_Log Level"); LogLevelItem.Submenu = LogLevelMenu; MenuBar.Append (LogLevelItem); Thanks in advance, Jeremiah From baxas@eresmas.com Tue Mar 2 20:12:58 2004 From: baxas@eresmas.com (=?ISO-8859-15?Q?Andr=E9s_Ot=F3n_Urbano?=) Date: Tue, 02 Mar 2004 21:12:58 +0100 Subject: [Gtk-sharp-list] Compiling gtk# 0.17 other resources Message-ID: <4044EACA.1000909@eresmas.com> Hello, Could you say me the links to the web of the next resources to compile the support on gtk sharp of: * gda-sharp.dll * gnomedb-sharp.dll * gtkhtml-sharp.dll Thanks. -- ---------------------------------------------------------------------- | Andrs Otn Urbano | Jabber:Baxas en bulmalug.net| | Estudiante Ing. de Telecomunicacin | Linux User: 297070 | | Universidad Politecnica de Cartagena | Email: baxas en eresmas.com | ---------------------------------------------------------------------- -o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o - Lastima? S, fue lastima lo que detuvo la mano de Bilbo. Lastima y misericordia: no matar sin necesidad. -o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o - Muchos de los que viven merecen morir y algunos de los que mueren merecen la vida. Puedes devolver la vida?. Entonces no te apresures a dispensar la muerte, pues ni el ms sabio conoce el fin de todos los caminos. -o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o From edd@usefulinc.com Tue Mar 2 21:05:31 2004 From: edd@usefulinc.com (Edd Dumbill) Date: Tue, 02 Mar 2004 21:05:31 +0000 Subject: [Gtk-sharp-list] gtkmozembed-problem by running app In-Reply-To: <200402290732.i1T7WEQ27113@mailgate5.cinetic.de> References: <200402290732.i1T7WEQ27113@mailgate5.cinetic.de> Message-ID: <1078261531.6602.4.camel@saag> You need to set your LD_LIBRARY_PATH to /usr/lib/mozilla (or similar) so Mono can find the right .so. -- Edd On Sun, 2004-02-29 at 07:32, Franz Burgmann wrote: > Hello, > > when I compile the monodoc-example (Mozilla Libraries-EmbedWidget Class), everything is fine, but when I'm going to start the application, I'll get the following error: > > Unhandled Exception: System.DllNotFoundException: gtkembedmoz > in <0x0005c> (wrapper managed-to-native) GtkMozEmbed.EmbedWidget:gtk_moz_embed_set_profile_path (string,string) > in <0x00043> GtkMozEmbed.EmbedWidget:.ctor (string,string) > in <0x00561> GtkMozTest.GtkMozTest:.ctor () > in <0x0001e> GtkMozTest.GtkMozTest:Main (string[]) > > I installed mozilla from sources with gtk-enabled and gtkmozembed-sharp, too. > > Somebody an idea? From cgaisford@novell.com Tue Mar 2 21:27:48 2004 From: cgaisford@novell.com (Calvin Gaisford) Date: Tue, 02 Mar 2004 14:27:48 -0700 Subject: [Gtk-sharp-list] ButtonPressEvents and Glade Message-ID: <4044FC54.80206@novell.com> I've read through the FAQ and discussions on the changes made in 0.15 and how default handlers now behave. I understand the benefit of subclassing a TreeView and providing my own delegates to do what I want. I am wondering if this is possible when using glade. Using autoconnect in glade is great but it looks like I can only get it to return me a Gtk.TreeView not my subclassed TreeView. Any thoughts? -Calvin From misleb@onshore.com Tue Mar 2 21:55:31 2004 From: misleb@onshore.com (misleb@onshore.com) Date: Tue, 2 Mar 2004 15:55:31 -0600 (CST) Subject: [Gtk-sharp-list] ButtonPressEvents and Glade In-Reply-To: <4044FC54.80206@novell.com> Message-ID: <200403022148.i22LmLWs024890@queso.onshore.com> Make your Glade GUI as usual, but leave out the TreeView. Just create an empty ScrolledWindow. Add your MyTreeView instance to it later, in your code. i.e.: scrolledwindow1.Add(mytreeview); scrolledwindow1.ShowAll(); On 2 Mar, Calvin Gaisford wrote: > I've read through the FAQ and discussions on the changes made in 0.15 > and how default handlers now behave. I understand the benefit of > subclassing a TreeView and providing my own delegates to do what I > want. I am wondering if this is possible when using glade. Using > autoconnect in glade is great but it looks like I can only get it to > return me a Gtk.TreeView not my subclassed TreeView. > > Any thoughts? > > -Calvin > _______________________________________________ > Gtk-sharp-list maillist - Gtk-sharp-list@lists.ximian.com > http://lists.ximian.com/mailman/listinfo/gtk-sharp-list > > > !DSPAM:4044fc12241125044313483! > > From alramire@ecs.syr.edu Tue Mar 2 22:04:55 2004 From: alramire@ecs.syr.edu (Alvaro A. Ramirez) Date: Tue, 02 Mar 2004 17:04:55 -0500 Subject: [Gtk-sharp-list] subclassing treeview Message-ID: <1078265095.24183.4.camel@stella> i'm trying to subclass treeview and override ButtonPressEvent in order to display a context menu. this compiles fine on gtk# 0.15. on version 0.17 it gives me the following error: easyTreeview.cs(55) error CS0115: `Gui.EasyTreeview.OnButtonPressEvent' no suitable methods found to override any suggestions? regards, Alvaro From mkestner@ximian.com Tue Mar 2 22:38:19 2004 From: mkestner@ximian.com (Mike Kestner) Date: Tue, 02 Mar 2004 16:38:19 -0600 Subject: [Gtk-sharp-list] subclassing treeview In-Reply-To: <1078265095.24183.4.camel@stella> References: <1078265095.24183.4.camel@stella> Message-ID: <1078267099.28729.2.camel@localhost.localdomain> On Tue, 2004-03-02 at 16:04, Alvaro A. Ramirez wrote: > i'm trying to subclass treeview and override ButtonPressEvent in order > to display a context menu. this compiles fine on gtk# 0.15. on version > 0.17 it gives me the following error: > > easyTreeview.cs(55) error CS0115: `Gui.EasyTreeview.OnButtonPressEvent' > no suitable methods found to override Perhaps we could better assist you if you tell us what line 55 of easyTreeview.cs is? You probably just need to remove a ref keyword, since Gdk.Event* classes are now reference types, not value types. -- Mike Kestner From alramire@ecs.syr.edu Tue Mar 2 22:49:04 2004 From: alramire@ecs.syr.edu (Alvaro A. Ramirez) Date: Tue, 02 Mar 2004 17:49:04 -0500 Subject: [Gtk-sharp-list] subclassing treeview In-Reply-To: <1078267099.28729.2.camel@localhost.localdomain> References: <1078265095.24183.4.camel@stella> <1078267099.28729.2.camel@localhost.localdomain> Message-ID: <1078267743.24183.24.camel@stella> yes! that was it! sorry, i should have included the line. the ref keyword needed to be removed. thanks, alvaro On Tue, 2004-03-02 at 17:38, Mike Kestner wrote: > On Tue, 2004-03-02 at 16:04, Alvaro A. Ramirez wrote: > > i'm trying to subclass treeview and override ButtonPressEvent in order > > to display a context menu. this compiles fine on gtk# 0.15. on version > > 0.17 it gives me the following error: > > > > easyTreeview.cs(55) error CS0115: `Gui.EasyTreeview.OnButtonPressEvent' > > no suitable methods found to override > > Perhaps we could better assist you if you tell us what line 55 of > easyTreeview.cs is? > > You probably just need to remove a ref keyword, since Gdk.Event* classes > are now reference types, not value types. From gtk-sharp-list@web.de Wed Mar 3 09:41:02 2004 From: gtk-sharp-list@web.de (Franz Burgmann) Date: Wed, 3 Mar 2004 10:41:02 +0100 Subject: [Gtk-sharp-list] Re: gtkmozembed-problem by running app Message-ID: <200403030941.i239f2Q27769@mailgate5.cinetic.de> hi Edd, thank you, it works now :-) Franz >You need to set your LD_LIBRARY_PATH to /usr/lib/mozilla (or similar) so >Mono can find the right .so. >-- Edd >On Sun, 2004-02-29 at 07:32, Franz Burgmann wrote: >> Hello, >> > >when I compile the monodoc-example (Mozilla Libraries-EmbedWidget Class), everything is fine, but when I'm going to start the application, I'll get the following error: >> >>Unhandled Exception: System.DllNotFoundException: gtkembedmoz >>in <0x0005c> (wrapper managed-to-native) GtkMozEmbed.EmbedWidget:gtk_moz_embed_set_profile_path (string,string) >> in <0x00043> GtkMozEmbed.EmbedWidget:.ctor (string,string) >> in <0x00561> GtkMozTest.GtkMozTest:.ctor () >> in <0x0001e> GtkMozTest.GtkMozTest:Main (string[]) >> >> I installed mozilla from sources with gtk-enabled and gtkmozembed-sharp, too. >> >> Somebody an idea?< ______________________________________________________________________________ ... and the winner is... WEB.DE FreeMail! - Deutschlands beste E-Mail ist zum 39. Mal Testsieger (PC Praxis 03/04) http://f.web.de/?mc=021191 From mcrichto@ecs.umass.edu Tue Mar 2 21:52:42 2004 From: mcrichto@ecs.umass.edu (Mark Crichton) Date: Tue, 2 Mar 2004 16:52:42 -0500 Subject: [Gtk-sharp-list] gtkmozembed-problem by running app In-Reply-To: <1078261531.6602.4.camel@saag> Message-ID: You really should use the run-mozilla.sh script found in a Mozilla distribution, or also set MOZILLA_FIVE_HOME to /usr/lib/mozilla as well (it needs it to find extensions it may need IIRC) Take Care, Mark Crichton -----Original Message----- From: gtk-sharp-list-admin@lists.ximian.com [mailto:gtk-sharp-list-admin@lists.ximian.com]On Behalf Of Edd Dumbill Sent: Tuesday, March 02, 2004 4:06 PM To: Franz Burgmann Cc: gtk-sharp-list@lists.ximian.com Subject: Re: [Gtk-sharp-list] gtkmozembed-problem by running app You need to set your LD_LIBRARY_PATH to /usr/lib/mozilla (or similar) so Mono can find the right .so. -- Edd On Sun, 2004-02-29 at 07:32, Franz Burgmann wrote: > Hello, > > when I compile the monodoc-example (Mozilla Libraries-EmbedWidget Class), everything is fine, but when I'm going to start the application, I'll get the following error: > > Unhandled Exception: System.DllNotFoundException: gtkembedmoz > in <0x0005c> (wrapper managed-to-native) GtkMozEmbed.EmbedWidget:gtk_moz_embed_set_profile_path (string,string) > in <0x00043> GtkMozEmbed.EmbedWidget:.ctor (string,string) > in <0x00561> GtkMozTest.GtkMozTest:.ctor () > in <0x0001e> GtkMozTest.GtkMozTest:Main (string[]) > > I installed mozilla from sources with gtk-enabled and gtkmozembed-sharp, too. > > Somebody an idea? _______________________________________________ Gtk-sharp-list maillist - Gtk-sharp-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/gtk-sharp-list From alramire@ecs.syr.edu Wed Mar 3 20:17:01 2004 From: alramire@ecs.syr.edu (Alvaro A. Ramirez) Date: Wed, 03 Mar 2004 15:17:01 -0500 Subject: [Gtk-sharp-list] win32 vs linux override discrepancy Message-ID: <1078345020.10090.27.camel@stella> I've been using gtk# on linux (mono) and win32 (.net). This has been working flawlessly for quite a while. Now that I upgraded gtk# on linux to 0.17, the same code does not compile on .net. I decided to compile my 0.17 dll's using cygwin (for the first time). Not sure if I'm doing it right. Took the 7 compiled dll's and put them in my Bin/Debug directory of my visual studio solution. This is where I usually put them when I download them from the gtk# site and they work. Assuming that I compiled them correctly, I cannot override OnButtonPressEvent on win32 (.net). On linux it's ok. I get "no suitable method found to override." I'm using: protected override bool OnButtonPressEvent(Gdk.EventButton evnt) In order for it to work on .net, I have to use ref: protected override bool OnButtonPressEvent(ref Gdk.EventButton evnt) Also, members of Gdk.EventButton are lower case in win32 and uppercase on mono (linux) such as: button, x, and y Does anyone have the windows dll's for 0.17? I would like to try someone else's? Regards, Alvaro From will@xpi.net Wed Mar 3 22:38:59 2004 From: will@xpi.net (will@xpi.net) Date: Wed, 3 Mar 2004 15:38:59 -0700 (Mountain Standard Time) Subject: [Possible SPAM] Re: [Gtk-sharp-list] win32 vs linux override discrepancy In-Reply-To: <1078345020.10090.27.camel@stella> References: <1078345020.10090.27.camel@stella> Message-ID: <3733.216.17.234.6.1078353539.squirrel@pop.xpi.net> I have put the latest CVS WIN32 builds in an installer at http://pop.xpi.net/gtksharp/gtksharp.exe . This installer is similar to the .15 installer I made a while back but is using the latest CVS build. Works for VS .NET/C# Builder. By request, I have changed the install dir to C:\Program Files\GNU\LIB\GTKSHARP . But you can actually install the libraries anywhere you want to (I prefer C:\GNU\LIB\GTKSHARP). If you are using my previous installer, unistall it using the Add/Remove link and then install this new one. Don't forget to update your references in VS .NET to the new install dir. Also this version of the Installer has one annoying bug in it that I haven't had the time to correct: If you decide to uninstall GTKSHARP, it will remove the entry in the Add/Remove Programs tool in the Control Panel. However, it does not correctly remove the shortcut in the Windows Start Menu. Just right-click on it and delete it. I will get around to fixing that annoying bug when I have the time. Also for you extremely lazy people out there (count me in this group): I have a new Windows installer that is currently in testing with my QA guy. It is fully aware of Mono, MCS, VS .NET and C# Builder. So it will let you choose which compiler to install for. It also will grab the latest daily CVS builds of GTKSharp from our servers so that I don't have to keep recompiling the installer for new people. Then there is an auto-update tool that will check daily for new builds of the gtksharp libraries and download an incrimental (spelling?) patch for the files from the servers. On the server end, it builds the latest cvs builds automatically and makes them available for the auto-update tool in the installer. The thought was to take the headache out of using the GTKSHARP libraries and let people focus on just developing. When the newer installer is available, I will let everyone know. Enjoy! --Will Collins Xperience Software will@xpi.net > I've been using gtk# on linux (mono) and win32 (.net). This has been > working flawlessly for quite a while. Now that I upgraded gtk# on linux > to 0.17, the same code does not compile on .net. I decided to compile my > 0.17 dll's using cygwin (for the first time). Not sure if I'm doing it > right. Took the 7 compiled dll's and put them in my Bin/Debug directory > of my visual studio solution. This is where I usually put them when I > download them from the gtk# site and they work. > > Assuming that I compiled them correctly, I cannot override > OnButtonPressEvent on win32 (.net). On linux it's ok. > > I get "no suitable method found to override." > > I'm using: > > protected override bool OnButtonPressEvent(Gdk.EventButton evnt) > > In order for it to work on .net, I have to use ref: > > protected override bool OnButtonPressEvent(ref Gdk.EventButton evnt) > > > Also, members of Gdk.EventButton are lower case in win32 and uppercase > on mono (linux) such as: > > button, x, and y > > Does anyone have the windows dll's for 0.17? I would like to try someone > else's? > > Regards, > > Alvaro > > _______________________________________________ > Gtk-sharp-list maillist - Gtk-sharp-list@lists.ximian.com > http://lists.ximian.com/mailman/listinfo/gtk-sharp-list > From will@xpi.net Wed Mar 3 22:38:59 2004 From: will@xpi.net (will@xpi.net) Date: Wed, 3 Mar 2004 15:38:59 -0700 (Mountain Standard Time) Subject: [Gtk-sharp-list] win32 vs linux override discrepancy In-Reply-To: <1078345020.10090.27.camel@stella> References: <1078345020.10090.27.camel@stella> Message-ID: <3733.216.17.234.6.1078353539.squirrel@pop.xpi.net> I have put the latest CVS WIN32 builds in an installer at http://pop.xpi.net/gtksharp/gtksharp.exe . This installer is similar to the .15 installer I made a while back but is using the latest CVS build. Works for VS .NET/C# Builder. By request, I have changed the install dir to C:\Program Files\GNU\LIB\GTKSHARP . But you can actually install the libraries anywhere you want to (I prefer C:\GNU\LIB\GTKSHARP). If you are using my previous installer, unistall it using the Add/Remove link and then install this new one. Don't forget to update your references in VS .NET to the new install dir. Also this version of the Installer has one annoying bug in it that I haven't had the time to correct: If you decide to uninstall GTKSHARP, it will remove the entry in the Add/Remove Programs tool in the Control Panel. However, it does not correctly remove the shortcut in the Windows Start Menu. Just right-click on it and delete it. I will get around to fixing that annoying bug when I have the time. Also for you extremely lazy people out there (count me in this group): I have a new Windows installer that is currently in testing with my QA guy. It is fully aware of Mono, MCS, VS .NET and C# Builder. So it will let you choose which compiler to install for. It also will grab the latest daily CVS builds of GTKSharp from our servers so that I don't have to keep recompiling the installer for new people. Then there is an auto-update tool that will check daily for new builds of the gtksharp libraries and download an incrimental (spelling?) patch for the files from the servers. On the server end, it builds the latest cvs builds automatically and makes them available for the auto-update tool in the installer. The thought was to take the headache out of using the GTKSHARP libraries and let people focus on just developing. When the newer installer is available, I will let everyone know. Enjoy! --Will Collins Xperience Software will@xpi.net > I've been using gtk# on linux (mono) and win32 (.net). This has been > working flawlessly for quite a while. Now that I upgraded gtk# on linux > to 0.17, the same code does not compile on .net. I decided to compile my > 0.17 dll's using cygwin (for the first time). Not sure if I'm doing it > right. Took the 7 compiled dll's and put them in my Bin/Debug directory > of my visual studio solution. This is where I usually put them when I > download them from the gtk# site and they work. > > Assuming that I compiled them correctly, I cannot override > OnButtonPressEvent on win32 (.net). On linux it's ok. > > I get "no suitable method found to override." > > I'm using: > > protected override bool OnButtonPressEvent(Gdk.EventButton evnt) > > In order for it to work on .net, I have to use ref: > > protected override bool OnButtonPressEvent(ref Gdk.EventButton evnt) > > > Also, members of Gdk.EventButton are lower case in win32 and uppercase > on mono (linux) such as: > > button, x, and y > > Does anyone have the windows dll's for 0.17? I would like to try someone > else's? > > Regards, > > Alvaro > > _______________________________________________ > Gtk-sharp-list maillist - Gtk-sharp-list@lists.ximian.com > http://lists.ximian.com/mailman/listinfo/gtk-sharp-list > From alramire@ecs.syr.edu Wed Mar 3 23:35:01 2004 From: alramire@ecs.syr.edu (Alvaro A. Ramirez) Date: Wed, 03 Mar 2004 18:35:01 -0500 Subject: [Gtk-sharp-list] win32 vs linux override discrepancy In-Reply-To: <3733.216.17.234.6.1078353539.squirrel@pop.xpi.net> References: <1078345020.10090.27.camel@stella> <3733.216.17.234.6.1078353539.squirrel@pop.xpi.net> Message-ID: <1078356901.3022.0.camel@stella> Excellent! Will try it now and let you know. Thanks, Alvaro On Wed, 2004-03-03 at 17:38, will@xpi.net wrote: > I have put the latest CVS WIN32 builds in an installer at > http://pop.xpi.net/gtksharp/gtksharp.exe . > > This installer is similar to the .15 installer I made a while back but is > using the latest CVS build. > > Works for VS .NET/C# Builder. > > By request, I have changed the install dir to C:\Program > Files\GNU\LIB\GTKSHARP . But you can actually install the libraries > anywhere you want to (I prefer C:\GNU\LIB\GTKSHARP). If you are using my > previous installer, unistall it using the Add/Remove link and then install > this new one. > > Don't forget to update your references in VS .NET to the new install dir. > > Also this version of the Installer has one annoying bug in it that I > haven't had the time to correct: > > If you decide to uninstall GTKSHARP, it will remove the entry in the > Add/Remove Programs tool in the Control Panel. However, it does not > correctly remove the shortcut in the Windows Start Menu. Just right-click > on it and delete it. > > I will get around to fixing that annoying bug when I have the time. > > Also for you extremely lazy people out there (count me in this group): > > I have a new Windows installer that is currently in testing with my QA > guy. It is fully aware of Mono, MCS, VS .NET and C# Builder. So it will > let you choose which compiler to install for. It also will grab the > latest daily CVS builds of GTKSharp from our servers so that I don't have > to keep recompiling the installer for new people. Then there is an > auto-update tool that will check daily for new builds of the gtksharp > libraries and download an incrimental (spelling?) patch for the files from > the servers. On the server end, it builds the latest cvs builds > automatically and makes them available for the auto-update tool in the > installer. > > The thought was to take the headache out of using the GTKSHARP libraries > and let people focus on just developing. > > When the newer installer is available, I will let everyone know. > > Enjoy! > > --Will Collins > Xperience Software > will@xpi.net > > > I've been using gtk# on linux (mono) and win32 (.net). This has been > > working flawlessly for quite a while. Now that I upgraded gtk# on linux > > to 0.17, the same code does not compile on .net. I decided to compile my > > 0.17 dll's using cygwin (for the first time). Not sure if I'm doing it > > right. Took the 7 compiled dll's and put them in my Bin/Debug directory > > of my visual studio solution. This is where I usually put them when I > > download them from the gtk# site and they work. > > > > Assuming that I compiled them correctly, I cannot override > > OnButtonPressEvent on win32 (.net). On linux it's ok. > > > > I get "no suitable method found to override." > > > > I'm using: > > > > protected override bool OnButtonPressEvent(Gdk.EventButton evnt) > > > > In order for it to work on .net, I have to use ref: > > > > protected override bool OnButtonPressEvent(ref Gdk.EventButton evnt) > > > > > > Also, members of Gdk.EventButton are lower case in win32 and uppercase > > on mono (linux) such as: > > > > button, x, and y > > > > Does anyone have the windows dll's for 0.17? I would like to try someone > > else's? > > > > Regards, > > > > Alvaro > > > > _______________________________________________ > > Gtk-sharp-list maillist - Gtk-sharp-list@lists.ximian.com > > http://lists.ximian.com/mailman/listinfo/gtk-sharp-list > > From ecmel@ercansoy.com Thu Mar 4 01:01:33 2004 From: ecmel@ercansoy.com (Ecmel Ercan) Date: Thu, 04 Mar 2004 03:01:33 +0200 Subject: [Gtk-sharp-list] NodeStore Insert Message-ID: Hi, Using Gtk#0.17 is there a way to add a node in the begining of a NodeStore (or insert at specific location)? Ecmel Ercan From linux@800e.net Thu Mar 4 14:37:44 2004 From: linux@800e.net (Yao Heling) Date: Thu, 04 Mar 2004 22:37:44 +0800 Subject: [Gtk-sharp-list] how to use System.Drawing with gtk-sharp Message-ID: <1078411064.3644.7.camel@debian> Hello all, I wonder whether it's possible to using System.Drawing with gtk-sharp and how as I'm interested to see a cross platform canvas. so here's the code with winform, could someone pls convert it to gtk-sharp? using System; using System.Drawing; using System.Windows.Forms; public class BasicForm: Form { public static void Main() { BasicForm f = new BasicForm(); Application.Run(f); } protected override void OnPaint(PaintEventArgs e) { Graphics g = e.Graphics; g.DrawString("This is my string!", new Font("Arial",12), Brushes.Black, 25, 25); base.OnPaint(e); } } Basically, I'd like to access the Graphics so that I can use System.Drawing stuff. I really appreciate any help/suggestions. Joseph H. Yao p.s: I'm not on the list, pls cc me when you reply. Thanks! From felipemaya@manizales.com Thu Mar 4 16:30:02 2004 From: felipemaya@manizales.com (felipe maya) Date: Thu, 4 Mar 2004 10:30:02 -0600 Subject: [Gtk-sharp-list] Re: win32 vs linux override discrepancy Message-ID: <200403041630.i24GU2K05084@server1.enredese.net> I'm wotking with mono-0.30.2 on Linux, I'm trying to connect to MySql database with ByteFX. On Linux is very slow and return TIMED OUT. On Windows (0.30) is slow to but the connection SUCCESS.

When the compilation on Win32 with .NET is success, the execution of the program without MONO, the accent() UTF8 encoding blank the string of the Gtk# LABEL, but the execution with MONO don't produce it.

I'm trying with MySQLDriverCS the latest version, the compilation with mono don't success and inform me that i have to recompile the source because mono need to incremental... With .NET, the compilation is success, but i have the same problem blank GTK# Label.

THANKS

> I've been using gtk# on linux (mono) and win32 (.net). This has been
> working flawlessly for quite a while. Now that I upgraded gtk# on linux
> to 0.17, the same code does not compile on .net. I decided to compile my
> 0.17 dll's using cygwin (for the first time). Not sure if I'm doing it
> right. Took the 7 compiled dll's and put them in my Bin/Debug directory
> of my visual studio solution. This is where I usually put them when I
> download them from the gtk# site and they work.
>
> Assuming that I compiled them correctly, I cannot override
> OnButtonPressEvent on win32 (.net). On linux it's ok.
>
> I get "no suitable method found to override."
>
> I'm using:
>
> protected override bool OnButtonPressEvent(Gdk.EventButton evnt)
>
> In order for it to work on .net, I have to use ref:
>
> protected override bool OnButtonPressEvent(ref Gdk.EventButton evnt)
>
>
> Also, members of Gdk.EventButton are lower case in win32 and uppercase
> on mono (linux) such as:
>
> button, x, and y
>
> Does anyone have the windows dll's for 0.17? I would like to try someone
> else's?
>
> Regards,
>
> Alvaro


Consigue tu correo GRATIS en Manizales.com,
dale vida a tus mensajes con más de 300 motivos grficos.
Busca el portal de tu ciudad en http://66.216.122.105

From felipemaya@manizales.com Thu Mar 4 17:00:56 2004 From: felipemaya@manizales.com (felipe maya) Date: Thu, 4 Mar 2004 11:00:56 -0600 Subject: [Gtk-sharp-list] GTK#+win32 Message-ID: <200403041700.i24H0uh06233@server1.enredese.net> Hello, I'm trying with gtk-sharp-0.17.tar.gz using cygwin, the compilation is success but the gtksharpglue.dll went wrong. I feel that it success because the glib version is old, I DON'T SURE????...

I download today your gtk# distribution for Windows and i see that don't distribute gtksharpglue.dll (this library is very important), you have the same problem.

THANKS.
Consigue tu correo GRATIS en Manizales.com,
dale vida a tus mensajes con más de 300 motivos grficos.
Busca el portal de tu ciudad en http://66.216.122.105

From will@xpi.net Thu Mar 4 16:27:25 2004 From: will@xpi.net (will@xpi.net) Date: Thu, 4 Mar 2004 09:27:25 -0700 (Mountain Standard Time) Subject: [Possible SPAM] Re: [Gtk-sharp-list] GTK#+win32 In-Reply-To: <200403041700.i24H0uh06233@server1.enredese.net> References: <200403041700.i24H0uh06233@server1.enredese.net> Message-ID: <3034.216.17.234.6.1078417645.squirrel@pop.xpi.net> Hello, Actually I do distribute gtksharpglue.dll with the installer. It's just that it is installed in %WINDIR\System32 so that Windows (and more specifically VS .NET) know where to find it. All of the other files are installed in the user defined install folder. So if you are specifically looking for this file, look in your \Windows\System32 folder. --Will Collins Xperience Software will@xpi.net > Hello, I'm trying with gtk-sharp-0.17.tar.gz using cygwin, the compilation > is success but the gtksharpglue.dll went wrong. I feel that it success > because the glib version is old, I DON'T SURE????... > > > > I download today your gtk# distribution for Windows and i see that don't > distribute gtksharpglue.dll (this library is very important), you have the > same problem. > > > > THANKS. > Consigue tu correo GRATIS en Manizales.com, > dale vida a tus mensajes con ms de 300 motivos grficos. > Busca el portal de tu ciudad en http://66.216.122.105 > > _______________________________________________ > Gtk-sharp-list maillist - Gtk-sharp-list@lists.ximian.com > http://lists.ximian.com/mailman/listinfo/gtk-sharp-list > From will@xpi.net Thu Mar 4 16:27:25 2004 From: will@xpi.net (will@xpi.net) Date: Thu, 4 Mar 2004 09:27:25 -0700 (Mountain Standard Time) Subject: [Gtk-sharp-list] GTK#+win32 In-Reply-To: <200403041700.i24H0uh06233@server1.enredese.net> References: <200403041700.i24H0uh06233@server1.enredese.net> Message-ID: <3034.216.17.234.6.1078417645.squirrel@pop.xpi.net> Hello, Actually I do distribute gtksharpglue.dll with the installer. It's just that it is installed in %WINDIR\System32 so that Windows (and more specifically VS .NET) know where to find it. All of the other files are installed in the user defined install folder. So if you are specifically looking for this file, look in your \Windows\System32 folder. --Will Collins Xperience Software will@xpi.net > Hello, I'm trying with gtk-sharp-0.17.tar.gz using cygwin, the compilation > is success but the gtksharpglue.dll went wrong. I feel that it success > because the glib version is old, I DON'T SURE????... > > > > I download today your gtk# distribution for Windows and i see that don't > distribute gtksharpglue.dll (this library is very important), you have the > same problem. > > > > THANKS. > Consigue tu correo GRATIS en Manizales.com, > dale vida a tus mensajes con ms de 300 motivos grficos. > Busca el portal de tu ciudad en http://66.216.122.105 > > _______________________________________________ > Gtk-sharp-list maillist - Gtk-sharp-list@lists.ximian.com > http://lists.ximian.com/mailman/listinfo/gtk-sharp-list > From alramire@ecs.syr.edu Thu Mar 4 19:09:50 2004 From: alramire@ecs.syr.edu (Alvaro A. Ramirez) Date: Thu, 04 Mar 2004 14:09:50 -0500 Subject: [Re: [Gtk-sharp-list] win32 vs linux override discrepancy] Message-ID: <1078427390.2547.9.camel@stella> --=-wxlGPFTd6c3iXh+Bjg7L Content-Type: text/plain Content-Transfer-Encoding: 7bit --=-wxlGPFTd6c3iXh+Bjg7L Content-Disposition: inline Content-Description: Forwarded message - Re: [Gtk-sharp-list] win32 vs linux override discrepancy Content-Type: message/rfc822 Subject: Re: [Gtk-sharp-list] win32 vs linux override discrepancy From: "Alvaro A. Ramirez" To: will@xpi.net In-Reply-To: <3733.216.17.234.6.1078353539.squirrel@pop.xpi.net> References: <1078345020.10090.27.camel@stella> <3733.216.17.234.6.1078353539.squirrel@pop.xpi.net> Content-Type: multipart/mixed; boundary="=-pJK+KDHN8g6PDZWEA9eb" Message-Id: <1078427259.2540.7.camel@stella> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.5 Date: Thu, 04 Mar 2004 14:07:39 -0500 --=-pJK+KDHN8g6PDZWEA9eb Content-Type: text/plain Content-Transfer-Encoding: 7bit Will, thank you. everything worked perfectly both on win32 and linux. if anyone needs to catch right-click events on a treeview, here's how i did it in an attachment. regards, alvaro On Wed, 2004-03-03 at 17:38, will@xpi.net wrote: > I have put the latest CVS WIN32 builds in an installer at > http://pop.xpi.net/gtksharp/gtksharp.exe . > > This installer is similar to the .15 installer I made a while back but is > using the latest CVS build. > > Works for VS .NET/C# Builder. > > By request, I have changed the install dir to C:\Program > Files\GNU\LIB\GTKSHARP . But you can actually install the libraries > anywhere you want to (I prefer C:\GNU\LIB\GTKSHARP). If you are using my > previous installer, unistall it using the Add/Remove link and then install > this new one. > > Don't forget to update your references in VS .NET to the new install dir. > > Also this version of the Installer has one annoying bug in it that I > haven't had the time to correct: > > If you decide to uninstall GTKSHARP, it will remove the entry in the > Add/Remove Programs tool in the Control Panel. However, it does not > correctly remove the shortcut in the Windows Start Menu. Just right-click > on it and delete it. > > I will get around to fixing that annoying bug when I have the time. > > Also for you extremely lazy people out there (count me in this group): > > I have a new Windows installer that is currently in testing with my QA > guy. It is fully aware of Mono, MCS, VS .NET and C# Builder. So it will > let you choose which compiler to install for. It also will grab the > latest daily CVS builds of GTKSharp from our servers so that I don't have > to keep recompiling the installer for new people. Then there is an > auto-update tool that will check daily for new builds of the gtksharp > libraries and download an incrimental (spelling?) patch for the files from > the servers. On the server end, it builds the latest cvs builds > automatically and makes them available for the auto-update tool in the > installer. > > The thought was to take the headache out of using the GTKSHARP libraries > and let people focus on just developing. > > When the newer installer is available, I will let everyone know. > > Enjoy! > > --Will Collins > Xperience Software > will@xpi.net > > > I've been using gtk# on linux (mono) and win32 (.net). This has been > > working flawlessly for quite a while. Now that I upgraded gtk# on linux > > to 0.17, the same code does not compile on .net. I decided to compile my > > 0.17 dll's using cygwin (for the first time). Not sure if I'm doing it > > right. Took the 7 compiled dll's and put them in my Bin/Debug directory > > of my visual studio solution. This is where I usually put them when I > > download them from the gtk# site and they work. > > > > Assuming that I compiled them correctly, I cannot override > > OnButtonPressEvent on win32 (.net). On linux it's ok. > > > > I get "no suitable method found to override." > > > > I'm using: > > > > protected override bool OnButtonPressEvent(Gdk.EventButton evnt) > > > > In order for it to work on .net, I have to use ref: > > > > protected override bool OnButtonPressEvent(ref Gdk.EventButton evnt) > > > > > > Also, members of Gdk.EventButton are lower case in win32 and uppercase > > on mono (linux) such as: > > > > button, x, and y > > > > Does anyone have the windows dll's for 0.17? I would like to try someone > > else's? > > > > Regards, > > > > Alvaro > > > > _______________________________________________ > > Gtk-sharp-list maillist - Gtk-sharp-list@lists.ximian.com > > http://lists.ximian.com/mailman/listinfo/gtk-sharp-list > > > > _______________________________________________ > Gtk-sharp-list maillist - Gtk-sharp-list@lists.ximian.com > http://lists.ximian.com/mailman/listinfo/gtk-sharp-list > --=-pJK+KDHN8g6PDZWEA9eb Content-Disposition: attachment; filename=override.cs Content-Type: text/x-csharp; name=override.cs; charset=iso-8859-1 Content-Transfer-Encoding: 7bit namespace GtkSamples { using Gtk; using System; public class ButtonApp { public static int Main (string[] args) { Application.Init (); Window win = new Window ("Treeview Tester"); win.DeleteEvent += new DeleteEventHandler (Quit); EasyTreeview SubbedTree = new EasyTreeview("hello","bye","hola","adios"); SubbedTree.ExtendedButtonPressedEvent+=new EasyTreeview.ExtendedButtonPressedHandler(ObjectPopup); SubbedTree.AddRow("yes","no","si","no"); SubbedTree.AddRow("yes","no","si","no"); SubbedTree.AddRow("yes","no","si","no"); win.Add (SubbedTree); win.ShowAll (); Application.Run (); return 0; } static void ObjectPopup(object o, Gdk.EventButton e) { EasyTreeview TempEasyTreeView = (EasyTreeview)o; if (e.Button==3) { Gtk.TreePath TempPath = new Gtk.TreePath(); if (TempEasyTreeView.GetPathAtPos((int)e.X,(int)e.Y,out TempPath)) Console.WriteLine("right clicked node "+TempPath.ToString()); } } static void Quit (object sender, DeleteEventArgs args) { Application.Quit(); } } public class EasyTreeview:Gtk.TreeView { private Gtk.ListStore ListStoreTemp; private static GLib.GType TreeType; public delegate void ExtendedButtonPressedHandler( object o, Gdk.EventButton e ); public event ExtendedButtonPressedHandler ExtendedButtonPressedEvent; static EasyTreeview() { TreeType=RegisterGType(typeof(EasyTreeview)); } public EasyTreeview(params string[] StringColumnsPar):base(TreeType) { this.ListStoreTemp = null; System.Type[] RowTypes = null; RowTypes = new System.Type[StringColumnsPar.Length]; for (int i = 0; i --=-jbPKFyZEiDy8R2latO8M Content-Type: text/plain Content-Transfer-Encoding: 7bit this patch is for completing DemoImages section (progressif image loading stuff) on GtkDemo plus some fixes on DemoColorSelection and DemoDrawingArea due to recent API changes. -- Mohammad DAMT http://www.bisnisweb.net ASP.Net Linux web hosting --=-jbPKFyZEiDy8R2latO8M Content-Disposition: attachment; filename=GtkDemo.patch Content-Transfer-Encoding: base64 Content-Type: text/x-patch; name=GtkDemo.patch; charset= ZGlmZiAtdSBHdGtEZW1vL0RlbW9Db2xvclNlbGVjdGlvbi5jcyBHdGtEZW1vLi9EZW1vQ29sb3JT ZWxlY3Rpb24uY3MNCi0tLSBHdGtEZW1vL0RlbW9Db2xvclNlbGVjdGlvbi5jcwkyMDA0LTAyLTEx IDAzOjM1OjQwLjAwMDAwMDAwMCArMDcwMA0KKysrIEd0a0RlbW8uL0RlbW9Db2xvclNlbGVjdGlv bi5jcwkyMDA0LTAzLTA0IDIyOjQzOjIxLjAwMDAwMDAwMCArMDcwMA0KQEAgLTY5LDcgKzY5LDcg QEANCiAJCXByaXZhdGUgdm9pZCBFeHBvc2VFdmVudENhbGxiYWNrIChvYmplY3QgbywgRXhwb3Nl RXZlbnRBcmdzIGFyZ3MpDQogCQl7DQogCQkJRXZlbnRFeHBvc2UgZXZlbnRFeHBvc2UgPSBhcmdz LkV2ZW50Ow0KLQkJCUdkay5XaW5kb3cgd2luZG93ID0gZXZlbnRFeHBvc2Uud2luZG93Ow0KKwkJ CUdkay5XaW5kb3cgd2luZG93ID0gZXZlbnRFeHBvc2UuV2luZG93Ow0KICAJCQlSZWN0YW5nbGUg YXJlYSA9IGV2ZW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3Jlc3NpdmVVcGRhdGVkQ2FsbGJhY2spOw0KKwkJCX0NCiAJ CQlyZXR1cm4gdHJ1ZTsNCiAJCX0NCiANCi0Jc3RhdGljIHZvaWQgUHJvZ3Jlc3NpdmVQcmVwYXJl ZENhbGxiYWNrIChvYmplY3Qgb2JqLCBFdmVudEFyZ3MgYXJncykgDQorCQlzdGF0aWMgdm9pZCBQ cm9ncmVzc2l2ZVByZXBhcmVkQ2FsbGJhY2sgKG9iamVjdCBvYmosIEV2ZW50QXJncyBhcmdzKSAN CiAJCXsNCiAJCQlHZGsuUGl4YnVmIHBpeGJ1ZiA9IHBpeGJ1ZkxvYWRlci5QaXhidWY7DQogCQkJ cGl4YnVmLkZpbGwgKDB4YWFhYWFhZmYpOw0KIAkJCXByb2dyZXNzaXZlSW1hZ2UuRnJvbVBpeGJ1 ZiA9IHBpeGJ1ZjsNCiAJCX0NCiANCi0Jc3RhdGljIHZvaWQgUHJvZ3Jlc3NpdmVVcGRhdGVkQ2Fs bGJhY2sgKG9iamVjdCBvYmosIEFyZWFVcGRhdGVkQXJncyBhcmdzKSANCisJCXN0YXRpYyB2b2lk IFByb2dyZXNzaXZlVXBkYXRlZENhbGxiYWNrIChvYmplY3Qgb2JqLCBBcmVhVXBkYXRlZEFyZ3Mg YXJncykgDQogCQl7DQotDQorCQkJcHJvZ3Jlc3NpdmVJbWFnZS5RdWV1ZURyYXcgKCk7DQogCQl9 DQotDQogCX0NCiB9DQo= --=-jbPKFyZEiDy8R2latO8M-- From gonzalo@ximian.com Fri Mar 5 04:49:02 2004 From: gonzalo@ximian.com (Gonzalo Paniagua Javier) Date: Thu, 04 Mar 2004 23:49:02 -0500 Subject: [Gtk-sharp-list] ThreadNotify and windows Message-ID: <1078462141.1459.1.camel@lalo4.micasa> --=-yzAkkv2s6iIjNeKl0UQw Content-Type: text/plain Content-Transfer-Encoding: 7bit Hi there! I've just committed a patch that should make ThreadNotify work on windows (attached). It's tested to work on linux but I couldn't test it on windows. Anyone? -Gonzalo --=-yzAkkv2s6iIjNeKl0UQw Content-Disposition: attachment; filename=tnotify.patch Content-Type: text/x-patch; name=tnotify.patch; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit ? .swp Index: glue/Makefile.am =================================================================== RCS file: /cvs/public/gtk-sharp/glue/Makefile.am,v retrieving revision 1.35 diff -u -r1.35 Makefile.am --- glue/Makefile.am 29 Jan 2004 21:20:59 -0000 1.35 +++ glue/Makefile.am 5 Mar 2004 02:57:50 -0000 @@ -20,6 +20,7 @@ selectiondata.c \ slist.c \ style.c \ + thread-notify.c \ time_t.c \ type.c \ value.c \ Index: glue/makefile.win32 =================================================================== RCS file: /cvs/public/gtk-sharp/glue/makefile.win32,v retrieving revision 1.9 diff -u -r1.9 makefile.win32 --- glue/makefile.win32 29 Jan 2004 21:20:59 -0000 1.9 +++ glue/makefile.win32 5 Mar 2004 02:57:50 -0000 @@ -22,6 +22,7 @@ selectiondata.o \ slist.o \ style.o \ + thread-notify.o \ time_t.o \ type.o \ value.o \ Index: glue/thread-notify.c =================================================================== RCS file: glue/thread-notify.c diff -N glue/thread-notify.c --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ glue/thread-notify.c 5 Mar 2004 02:57:50 -0000 @@ -0,0 +1,66 @@ +/* + * Pipe for ThreadNotify + * + * (C) 2004 Gonzalo Paniagua Javier (gonzalo@ximian.com) + */ + +#include +#ifdef G_OS_WIN32 +#include +#else +#include +#include +#endif + +gint pipe_create (gint *fds); + +gint +pipe_create (gint *fds) +{ +#ifdef G_OS_WIN32 + return !CreatePipe ((PHANDLE) fds, (PHANDLE) &fds [1], NULL, 1024); +#else + return pipe (fds); +#endif +} + +gint pipe_read (gint fd, gchar *buffer, gint maxcount); + +gint +pipe_read (gint fd, gchar *buffer, gint maxcount) +{ +#ifdef G_OS_WIN32 + glong dummy; + return !ReadFile ((HANDLE) fd, buffer, maxcount, &dummy, NULL); +#else + return (read (fd, buffer, maxcount) < 0); +#endif +} + +gint pipe_write (gint fd, gchar *buffer, gint maxcount); + +gint +pipe_write (gint fd, gchar *buffer, gint maxcount) +{ +#ifdef G_OS_WIN32 + glong dummy; + return !WriteFile ((HANDLE) fd, buffer, maxcount, &dummy, NULL); +#else + return (write (fd, buffer, maxcount) < 0); +#endif +} + +void pipe_close (gint *fds); + +void +pipe_close (gint *fds) +{ +#ifdef G_OS_WIN32 + CloseHandle ((HANDLE) fds [0]); + CloseHandle ((HANDLE) fds [1]); +#else + close (fds [0]); + close (fds [1]); +#endif +} + Index: gtk/ThreadNotify.cs =================================================================== RCS file: /cvs/public/gtk-sharp/gtk/ThreadNotify.cs,v retrieving revision 1.7 diff -u -r1.7 ThreadNotify.cs --- gtk/ThreadNotify.cs 17 Oct 2003 19:17:19 -0000 1.7 +++ gtk/ThreadNotify.cs 5 Mar 2004 02:57:50 -0000 @@ -2,10 +2,12 @@ // ThreadNotify.cs: implements a notification for the thread running the Gtk main // loop from another thread // -// Author: +// Authors: // Miguel de Icaza (miguel@ximian.com). +// Gonzalo Paniagua Javier (gonzalo@ximian.com) // // (C) 2002 Ximian, Inc. +// (C) 2004 Novell, Inc. // namespace Gtk { @@ -29,24 +31,21 @@ // DllImport functions from Gtk // [DllImport ("libgtk-win32-2.0-0.dll")] - private static extern uint gdk_input_add (int s, int cond, GdkInputFunction f, IntPtr data); + static extern uint gdk_input_add (int s, int cond, GdkInputFunction f, IntPtr data); public delegate void GdkInputFunction (IntPtr data, int source, int cond); - // - // Libc stuff - // - [DllImport ("libc.so.6")] - private static extern int pipe (int [] fd); + [DllImport ("gtksharpglue")] + static extern int pipe_create (int [] fd); - [DllImport ("libc.so.6")] - private static extern unsafe int read (int fd, byte *b, int count); + [DllImport ("gtksharpglue")] + static extern unsafe int pipe_read (int fd, byte *b, int count); - [DllImport ("libc.so.6")] - private static extern unsafe int write (int fd, byte *b, int count); + [DllImport ("gtksharpglue")] + static extern unsafe int pipe_write (int fd, byte *b, int count); + + [DllImport ("gtksharpglue")] + static extern int pipe_close (int [] fd); - [DllImport ("libc.so.6")] - private static extern int close (int fd); - GdkInputFunction notify_pipe; int [] pipes; bool disposed; @@ -62,7 +61,7 @@ { notify_pipe = new GdkInputFunction (NotifyPipe); pipes = new int [2]; - pipe (pipes); + pipe_create (pipes); tag = gdk_input_add (pipes [0], 1, notify_pipe, (IntPtr) 0); this.re = re; } @@ -73,7 +72,7 @@ unsafe { lock (this) { - read (pipes [0], &s, 1); + pipe_read (pipes [0], &s, 1); notified = false; } } @@ -95,7 +94,8 @@ lock (this){ if (notified) return; - write (pipes [1], &s, 1); + + pipe_write (pipes [1], &s, 1); notified = true; } } @@ -122,8 +122,7 @@ if (!disposed) { disposed = true; GLib.Source.Remove (tag); - close (pipes [1]); - close (pipes [0]); + pipe_close (pipes); } pipes = null; @@ -131,3 +130,4 @@ } } } + --=-yzAkkv2s6iIjNeKl0UQw-- From borsanza@terra.es Fri Mar 5 15:01:39 2004 From: borsanza@terra.es (Borja =?ISO-8859-1?Q?S=E1nchez?= Zamorano) Date: Fri, 05 Mar 2004 16:01:39 +0100 Subject: [Gtk-sharp-list] how to use System.Drawing with gtk-sharp In-Reply-To: <1078411064.3644.7.camel@debian> References: <1078411064.3644.7.camel@debian> Message-ID: <1078498899.3956.14.camel@localhost> --=-AVZyPJwbracBVSfZaC2J Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: quoted-printable Hello Yao Heling, I do it for you: using Gtk; public class BasicForm : DrawingArea { Window win; Gdk.GC gc; =09 public static void Main() { Application.Init (); new BasicForm(); Application.Run (); } public BasicForm() { win =3D new Window("Form"); win.Add(this); win.ShowAll(); ExposeEvent +=3D new ExposeEventHandler(OnExposeEvent); win.DeleteEvent +=3D new DeleteEventHandler (OnDeleteEvent); } =09 void OnDeleteEvent (object o, DeleteEventArgs args) { Application.Quit (); } void OnExposeEvent(object obj, ExposeEventArgs args)=20 { Gdk.Drawable drawable =3D GdkWindow; =09 using (gc =3D new Gdk.GC (drawable)) { Gdk.Color black_color =3D new Gdk.Color(0, 0, 0); Gdk.Colormap colormap =3D Gdk.Colormap.System; colormap.AllocColor (ref black_color, true, true); gc.Foreground =3D black_color; =09 Pango.Layout layout =3D new Pango.Layout(PangoContext); layout.FontDescription =3D Pango.FontDescription.FromString("Arial 12"); layout.SetText("This is my string!"); drawable.DrawLayout(gc, 25, 25, layout); } } } Compile: mcs -r:gdk-sharp -r:gtk-sharp -r:pango-sharp gtk-draw.cs Jejeje, =A1=A1Gtk-sharp has double buffering!! BorSanZa El jue, 04-03-2004 a las 15:37, Yao Heling escribi=F3: > Hello all, >=20 > I wonder whether it's possible to using System.Drawing with gtk-sharp > and how as I'm interested to see a cross platform canvas. so here's the > code with winform, could someone pls convert it to gtk-sharp?=20 >=20 > using System; > using System.Drawing; > using System.Windows.Forms; >=20 > public class BasicForm: Form > { > public static void Main() > { > BasicForm f =3D new BasicForm(); > Application.Run(f); > } > protected override void OnPaint(PaintEventArgs e) > { > Graphics g =3D e.Graphics; > g.DrawString("This is my string!", new Font("Arial",12), > Brushes.Black, 25, 25); > base.OnPaint(e); > } > } >=20 > Basically, I'd like to access the Graphics so that I can use > System.Drawing stuff.=20 >=20 > I really appreciate any help/suggestions. >=20 >=20 > Joseph H. Yao >=20 > p.s: I'm not on the list, pls cc me when you reply. Thanks! >=20 > _______________________________________________ > Gtk-sharp-list maillist - Gtk-sharp-list@lists.ximian.com > http://lists.ximian.com/mailman/listinfo/gtk-sharp-list --=20 Borja S=E1nchez Zamorano --=-AVZyPJwbracBVSfZaC2J Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 7bit Hello Yao Heling, I do it for you:


using Gtk;

public class BasicForm : DrawingArea {
  Window win;
  Gdk.GC gc;

  public static void Main()
  {
    Application.Init ();
    new BasicForm();
    Application.Run ();
  }

  public BasicForm()
  {
    win = new Window("Form");
    win.Add(this);
    win.ShowAll();
    ExposeEvent += new ExposeEventHandler(OnExposeEvent);
    win.DeleteEvent += new DeleteEventHandler (OnDeleteEvent);
  }

  void OnDeleteEvent (object o, DeleteEventArgs args)
  {
    Application.Quit ();
  }

  void OnExposeEvent(object obj, ExposeEventArgs args)
  {
    Gdk.Drawable drawable = GdkWindow;

    using (gc = new Gdk.GC (drawable)) {
      Gdk.Color black_color = new Gdk.Color(0, 0, 0);
      Gdk.Colormap colormap = Gdk.Colormap.System;
      colormap.AllocColor (ref black_color, true, true);
      gc.Foreground = black_color;

      Pango.Layout layout = new Pango.Layout(PangoContext);
      layout.FontDescription = Pango.FontDescription.FromString("Arial 12");
      layout.SetText("This is my string!");
      drawable.DrawLayout(gc, 25, 25, layout);
    }
  }
}


Compile:
  mcs -r:gdk-sharp -r:gtk-sharp -r:pango-sharp gtk-draw.cs


Jejeje, ¡¡Gtk-sharp has double buffering!!

  BorSanZa



El jue, 04-03-2004 a las 15:37, Yao Heling escribió:
Hello all,

I wonder whether it's possible to using System.Drawing with gtk-sharp
and how as I'm interested to see a cross platform canvas. so here's the
code with winform, could someone pls convert it to gtk-sharp? 

using System;
using System.Drawing;
using System.Windows.Forms;

public class BasicForm: Form
{
  public static void Main()
  {
    BasicForm f = new BasicForm();
    Application.Run(f);
  }
  protected override void OnPaint(PaintEventArgs e)
  {
    Graphics g = e.Graphics;
    g.DrawString("This is my string!", new Font("Arial",12),
			Brushes.Black, 25, 25);
    base.OnPaint(e);
  }
}

Basically, I'd like to access the Graphics so that I can use
System.Drawing stuff. 

I really appreciate any help/suggestions.


Joseph H. Yao

p.s: I'm not on the list, pls cc me when you reply. Thanks!

_______________________________________________
Gtk-sharp-list maillist  -  Gtk-sharp-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/gtk-sharp-list
--
Borja Sánchez Zamorano <borsanza@terra.es>
--=-AVZyPJwbracBVSfZaC2J-- From borsanza@terra.es Fri Mar 5 15:11:37 2004 From: borsanza@terra.es (Borja Sanchez Zamorano) Date: Fri, 05 Mar 2004 16:11:37 +0100 Subject: [Gtk-sharp-list] how to use System.Drawing with gtk-sharp In-Reply-To: <1078411064.3644.7.camel@debian> References: <1078411064.3644.7.camel@debian> Message-ID: <1078499497.3956.19.camel@localhost> Sorry, in text/plain... it's my first mail to the list. Hello Yao Heling, I do it for you: using Gtk; public class BasicForm : DrawingArea { Window win; Gdk.GC gc; public static void Main() { Application.Init (); new BasicForm(); Application.Run (); } public BasicForm() { win =3D new Window("Form"); win.Add(this); win.ShowAll(); ExposeEvent +=3D new ExposeEventHandler(OnExposeEvent); win.DeleteEvent +=3D new DeleteEventHandler (OnDeleteEvent); } void OnDeleteEvent (object o, DeleteEventArgs args) { Application.Quit (); } void OnExposeEvent(object obj, ExposeEventArgs args)=20 { Gdk.Drawable drawable =3D GdkWindow; using (gc =3D new Gdk.GC (drawable)) { Gdk.Color black_color =3D new Gdk.Color(0, 0, 0); Gdk.Colormap colormap =3D Gdk.Colormap.System; colormap.AllocColor (ref black_color, true, true); gc.Foreground =3D black_color; Pango.Layout layout =3D new Pango.Layout(PangoContext); layout.FontDescription =3D Pango.FontDescription.FromString("Arial 12= "); layout.SetText("This is my string!"); drawable.DrawLayout(gc, 25, 25, layout); } } } Compile: mcs -r:gdk-sharp -r:gtk-sharp -r:pango-sharp gtk-draw.cs Jejeje, =A1=A1Gtk-sharp has double buffering!! BorSanZa El jue, 04-03-2004 a las 15:37, Yao Heling escribi=F3:=20 > Hello all, >=20 > I wonder whether it's possible to using System.Drawing with gtk-sharp > and how as I'm interested to see a cross platform canvas. so here's the > code with winform, could someone pls convert it to gtk-sharp?=20 >=20 > using System; > using System.Drawing; > using System.Windows.Forms; >=20 > public class BasicForm: Form > { > public static void Main() > { > BasicForm f =3D new BasicForm(); > Application.Run(f); > } > protected override void OnPaint(PaintEventArgs e) > { > Graphics g =3D e.Graphics; > g.DrawString("This is my string!", new Font("Arial",12), > Brushes.Black, 25, 25); > base.OnPaint(e); > } > } >=20 > Basically, I'd like to access the Graphics so that I can use > System.Drawing stuff.=20 >=20 > I really appreciate any help/suggestions. >=20 >=20 > Joseph H. Yao >=20 > p.s: I'm not on the list, pls cc me when you reply. Thanks! >=20 > _______________________________________________ > Gtk-sharp-list maillist - Gtk-sharp-list@lists.ximian.com > http://lists.ximian.com/mailman/listinfo/gtk-sharp-list --=20 Borja Sanchez Zamorano From will@xpi.net Fri Mar 5 16:27:26 2004 From: will@xpi.net (will@xpi.net) Date: Fri, 5 Mar 2004 09:27:26 -0700 (Mountain Standard Time) Subject: [Gtk-sharp-list] Best linux distro for GTKSharp Development In-Reply-To: <1078427390.2547.9.camel@stella> References: <1078427390.2547.9.camel@stella> Message-ID: <1079.216.17.234.6.1078504046.squirrel@pop.xpi.net> I have always been a Windows guy and want to start porting all of my GTKSharp apps over to Linux. Thoughts from everyone on the best Linux distro for GTKSharp Development? --Will Collins Xperience Software From joe@ximian.com Fri Mar 5 18:50:14 2004 From: joe@ximian.com (Joe Shaw) Date: Fri, 05 Mar 2004 13:50:14 -0500 Subject: [Gtk-sharp-list] ThreadNotify and windows In-Reply-To: <1078462141.1459.1.camel@lalo4.micasa> References: <1078462141.1459.1.camel@lalo4.micasa> Message-ID: <1078512614.31568.9.camel@posthaste.boston.ximian.com> Hi, On Thu, 2004-03-04 at 23:49 -0500, Gonzalo Paniagua Javier wrote: > I've just committed a patch that should make ThreadNotify work on > windows (attached). It's tested to work on linux but I couldn't test it > on windows. Anyone? This is slightly off-topic, but what is the point of ThreadNotify? What does it give you that doing a GTK idle function doesn't? Both are deferred until the main loop, and ThreadNotify uses a deprecated API (gdk_input_add; you're supposed to use GIOChannels now). Joe From stutzmanj@argontech.net Sat Mar 6 01:22:42 2004 From: stutzmanj@argontech.net (Jae Stutzman) Date: Fri, 05 Mar 2004 19:22:42 -0600 Subject: [Gtk-sharp-list] TextView or GtkSourceView-Sharp ToggleOverwrite Message-ID: <1078536161.4591.14.camel@duallie> I'm attempting to toggle the INS OVR functionality in code and this is proving difficult. There doesn't seem to be any public property or set function to do such a thing in gtk#...am I missing something? How about a simulated keypress? Thanks, Jae From tberman@sevenl.net Sat Mar 6 04:12:28 2004 From: tberman@sevenl.net (Todd Berman) Date: Fri, 05 Mar 2004 23:12:28 -0500 Subject: [Gtk-sharp-list] ThreadNotify and windows In-Reply-To: <1078512614.31568.9.camel@posthaste.boston.ximian.com> References: <1078462141.1459.1.camel@lalo4.micasa> <1078512614.31568.9.camel@posthaste.boston.ximian.com> Message-ID: <1078546347.2132.3.camel@164-99-120-56.boston.ximian.com> Hah, we just talked about this a couple days ago, and since then, and some talking to miguel and to gonzalo, I believe we are going to gut thread notify and replace its internal functionality with a GLib.Idle, but leave the class ThreadNotify in for semantic reasons. ThreadNotify is a more obvious name for functionality to wakeup the main thread than GLib.Idle is. --Todd On Fri, 2004-05-03 at 13:50 -0500, Joe Shaw wrote: > Hi, > > On Thu, 2004-03-04 at 23:49 -0500, Gonzalo Paniagua Javier wrote: > > > I've just committed a patch that should make ThreadNotify work on > > windows (attached). It's tested to work on linux but I couldn't test it > > on windows. Anyone? > > This is slightly off-topic, but what is the point of ThreadNotify? What > does it give you that doing a GTK idle function doesn't? Both are > deferred until the main loop, and ThreadNotify uses a deprecated API > (gdk_input_add; you're supposed to use GIOChannels now). > > Joe > > _______________________________________________ > Gtk-sharp-list maillist - Gtk-sharp-list@lists.ximian.com > http://lists.ximian.com/mailman/listinfo/gtk-sharp-list From gonzalo@ximian.com Sat Mar 6 19:32:05 2004 From: gonzalo@ximian.com (Gonzalo Paniagua Javier) Date: Sat, 06 Mar 2004 14:32:05 -0500 Subject: [Gtk-sharp-list] ThreadNotify and windows In-Reply-To: <1078546347.2132.3.camel@164-99-120-56.boston.ximian.com> References: <1078462141.1459.1.camel@lalo4.micasa> <1078512614.31568.9.camel@posthaste.boston.ximian.com> <1078546347.2132.3.camel@164-99-120-56.boston.ximian.com> Message-ID: <1078601524.1617.0.camel@lalo4.micasa> El vie, 05-03-2004 a las 23:12, Todd Berman escribi: > Hah, we just talked about this a couple days ago, and since then, and > some talking to miguel and to gonzalo, I believe we are going to gut > thread notify and replace its internal functionality with a GLib.Idle, > but leave the class ThreadNotify in for semantic reasons. ThreadNotify > is a more obvious name for functionality to wakeup the main thread than > GLib.Idle is. Done. -Gonzalo From george@gmsys.com Sun Mar 7 05:17:55 2004 From: george@gmsys.com (George Farris) Date: Sat, 06 Mar 2004 21:17:55 -0800 Subject: [Gtk-sharp-list] Gnome DateEdit not working. Message-ID: <1078636675.2626.1.camel@ve7frg.gmsys.com> I have a Gnome.DateEdit widget which from the docs I should be able to access the Time property and get a System.DateTime structure back. I can't seem to get anything to work for Gnome.DateEdit. Anyone have any examples? -- George Farris From verteiler@mbalz.de Sun Mar 7 16:18:44 2004 From: verteiler@mbalz.de (Moritz Balz) Date: Sun, 07 Mar 2004 17:18:44 +0100 Subject: [Gtk-sharp-list] Gtk ImageMenuItem class customizations Message-ID: <404B4B64.4080505@mbalz.de> This is a multi-part message in MIME format. --------------060306090509020904020407 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hello, I propose to add two constructor overloads to Gtk.ImageMenuItem (see .custom file attached). They allow to specify an image when the ImageMenuItem is created. M. --------------060306090509020904020407 Content-Type: text/plain; name="ImageMenuItem.custom" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="ImageMenuItem.custom" // Gtk.ImageMenuItem.custom - Gtk ImageMenuItem class customizations // // Author: Moritz Balz // // (c) 2004 Moritz Balz // // This code is inserted after the automatically generated code. [DllImport("libgtk-win32-2.0-0.dll")] static extern IntPtr gtk_image_new_from_stock (string stock_id, int size); public ImageMenuItem (string stockId, string label) : base (label) { gtk_image_menu_item_set_image (Handle, gtk_image_new_from_stock (stockId, (int)Gtk.IconSize.Menu)); } public ImageMenuItem (Gtk.Image image, string label) : base (label) { gtk_image_menu_item_set_image (Handle, image.Handle); } --------------060306090509020904020407-- From tiago.lima@vianw.pt Sun Mar 7 16:32:18 2004 From: tiago.lima@vianw.pt (Tiago Lima) Date: Sun, 7 Mar 2004 16:32:18 +0000 Subject: [Gtk-sharp-list] Pango.Layout (again :) Message-ID: <200403071632.18578.tiago.lima@vianw.pt> Hi, Where can I find this function, in pango-sharp, existing in the pango-layout.c file ? void pango_layout_index_to_line_x (PangoLayout *layout, int index, gboolean trailing, int *line, int *x_pos) Thanks, Tiago Lima From borsanza@terra.es Sun Mar 7 17:00:16 2004 From: borsanza@terra.es (Borja Sanchez Zamorano) Date: Sun, 07 Mar 2004 18:00:16 +0100 Subject: [Gtk-sharp-list] Pango.Layout (again :) In-Reply-To: <200403071632.18578.tiago.lima@vianw.pt> References: <200403071632.18578.tiago.lima@vianw.pt> Message-ID: <1078678816.8826.3.camel@localhost> try with this method: public int IndexToX (int index_, bool trailing) the source in gtk-sharp is: public int IndexToX(int index_, bool trailing) { int x_pos; pango_layout_line_index_to_x(ref this, index_, trailing, out x_pos); return x_pos; } BorSanZa El dom, 07-03-2004 a las 17:32, Tiago Lima escribi=F3: > Hi, >=20 > Where can I find this function, in pango-sharp, existing in the pango-lay= out.c=20 > file ? >=20 > void > pango_layout_index_to_line_x (PangoLayout *layout, > int index, > gboolean trailing, > int *line, > int *x_pos) >=20 > Thanks, > Tiago Lima > _______________________________________________ > Gtk-sharp-list maillist - Gtk-sharp-list@lists.ximian.com > http://lists.ximian.com/mailman/listinfo/gtk-sharp-list --=20 Borja Sanchez Zamorano From tiago.lima@vianw.pt Sun Mar 7 17:46:39 2004 From: tiago.lima@vianw.pt (Tiago Lima) Date: Sun, 7 Mar 2004 17:46:39 +0000 Subject: [Gtk-sharp-list] Pango.Layout (again :) In-Reply-To: <1078678816.8826.3.camel@localhost> References: <200403071632.18578.tiago.lima@vianw.pt> <1078678816.8826.3.camel@localhost> Message-ID: <200403071746.39080.tiago.lima@vianw.pt> Ok, but what if I want to know the line number ? Thanks, Tiago Lima On Sunday 07 March 2004 17:00, Borja Sanchez Zamorano wrote: > try with this method: > > public int IndexToX (int index_, bool trailing) > > > the source in gtk-sharp is: > > public int IndexToX(int index_, bool trailing) { > int x_pos; > pango_layout_line_index_to_x(ref this, index_, trailing, out x_pos); > return x_pos; > } > > > BorSanZa > > El dom, 07-03-2004 a las 17:32, Tiago Lima escribi=F3: > > Hi, > > > > Where can I find this function, in pango-sharp, existing in the > > pango-layout.c file ? > > > > void > > pango_layout_index_to_line_x (PangoLayout *layout, > > int index, > > gboolean trailing, > > int *line, > > int *x_pos) > > > > Thanks, > > Tiago Lima > > _______________________________________________ > > Gtk-sharp-list maillist - Gtk-sharp-list@lists.ximian.com > > http://lists.ximian.com/mailman/listinfo/gtk-sharp-list From mecat@leto.homedns.org Sun Mar 7 19:01:45 2004 From: mecat@leto.homedns.org (Mikolaj Habdank) Date: Sun, 07 Mar 2004 19:01:45 +0000 Subject: [Gtk-sharp-list] Hi! Message-ID: <1078686105.14893.18.camel@localhost> Hi! I would like to introduce myself. I am Java developer, but I would like to see what can mono platform do for me :-) So I would like to ask few questions (I aksed google before:-) 1. how stable is mono with gtk#? 2. is it simple as in java to port applications which use gtk# from linux to windows (copy and?)? 3. is GTK# faster than SWING? 4. is it possible to draw (line, rectangle, fill etc.) like in java2D, or gnome Canvas? best regards MecaT From ahmedre@cc.gatech.edu Mon Mar 8 00:40:35 2004 From: ahmedre@cc.gatech.edu (ahmed el-helw) Date: Sun, 07 Mar 2004 19:40:35 -0500 Subject: [Gtk-sharp-list] treeview help Message-ID: <1078706435.1391.7.camel@meribia.leetmuppet.net> hi, i've been playing around with treeview, and i got basic things setup and working. but i was trying to setup a treeview that displays text and an icon next to it on the left. if i set the Pixbuf attribute of a CellRendererPixbuf and the Text attribute of a CellRendererText and just do store.AppendValues(""); -- it works but gives errors on the command line while running. so i am trying to figure out how to correctly do this. after trying for a while, i can't figure it out, so could anyone help me and tell me how i could display a picture with the text by it? my setup code is as follows: public void SetupUI(){ TreeStore store = new TreeStore(typeof(string), typeof(Pixbuf)); treeview = new TreeView(store); CellRendererText ct = new CellRendererText(); CellRendererPixbuf cb = new CellRendererPixbuf(); treeview.HeadersVisible = false; TreeViewColumn column = new TreeViewColumn(); column.PackStart(cb, false); column.PackStart(ct, true); column.AddAttribute(cb, "pixbuf", 0); column.AddAttribute(ct, "text", 1); treeview.AppendColumn(column); } any help would be greatly appreciated. thanks, -ahmed -- ahmed el-helw From borsanza@terra.es Mon Mar 8 01:42:33 2004 From: borsanza@terra.es (Borja Sanchez Zamorano) Date: Mon, 08 Mar 2004 02:42:33 +0100 Subject: [Gtk-sharp-list] treeview help In-Reply-To: <1078706435.1391.7.camel@meribia.leetmuppet.net> References: <1078706435.1391.7.camel@meribia.leetmuppet.net> Message-ID: <1078710152.9233.6.camel@localhost> --=-30aVmGyDPnsabnDeEfKy Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: quoted-printable hi, See this example... It works correctly. The order are defined in the packstart. If pixbuf is first has warnings, but if it is second doesn't warning. BorSanZa El lun, 08-03-2004 a las 01:40, ahmed el-helw escribi=F3: > hi, > i've been playing around with treeview, and i got basic things setup and > working. but i was trying to setup a treeview that displays text and an > icon next to it on the left. if i set the Pixbuf attribute of a > CellRendererPixbuf and the Text attribute of a CellRendererText and just > do store.AppendValues(""); -- it works but gives errors on the command > line while running. so i am trying to figure out how to correctly do > this. after trying for a while, i can't figure it out, so could anyone > help me and tell me how i could display a picture with the text by it? >=20 > my setup code is as follows: > public void SetupUI(){ > TreeStore store =3D new TreeStore(typeof(string), typeof(Pixbuf)); > treeview =3D new TreeView(store); > CellRendererText ct =3D new CellRendererText(); > CellRendererPixbuf cb =3D new CellRendererPixbuf(); > treeview.HeadersVisible =3D false; > TreeViewColumn column =3D new TreeViewColumn(); > column.PackStart(cb, false); > column.PackStart(ct, true); > column.AddAttribute(cb, "pixbuf", 0); > column.AddAttribute(ct, "text", 1); > treeview.AppendColumn(column); > } >=20 > any help would be greatly appreciated. > thanks, > -ahmed --=-30aVmGyDPnsabnDeEfKy Content-Disposition: attachment; filename=treeview.cs Content-Type: text/plain; name=treeview.cs; charset=iso-8859-15 Content-Transfer-Encoding: 7bit using Gdk; using Gtk; namespace TryIt { class tree { TreeView treeview; Gtk.Window win; static void Main () { Application.Init (); new tree (); Application.Run (); } public tree () { win = new Gtk.Window ("TreeView Pixmap"); treeview = new TreeView (); win.Add (treeview); win.ShowAll (); win.DeleteEvent += new DeleteEventHandler (OnDeleteEvent); SetupUI (); } void OnDeleteEvent (object o, DeleteEventArgs args) { Application.Quit (); } public void SetupUI () { TreeStore store = new TreeStore (typeof (string), typeof (Pixbuf)); treeview.Model = store; treeview.HeadersVisible = true; CellRendererText ct = new CellRendererText (); CellRendererPixbuf cb = new CellRendererPixbuf (); TreeViewColumn column = new TreeViewColumn (); column.PackStart (ct, true); column.PackStart (cb, false); column.AddAttribute (cb, "pixbuf", 1); column.AddAttribute (ct, "text", 0); treeview.AppendColumn (column); Gdk.Pixbuf a = new Gdk.Pixbuf (new Gdk.Colorspace (), false, 8, 48, 48); a.Fill (0xff000000); store.AppendValues ("Hello", a); a = new Gdk.Pixbuf (new Gdk.Colorspace (), false, 8, 64, 32); a.Fill (0x00ff0000); store.AppendValues ("World", a); } } } --=-30aVmGyDPnsabnDeEfKy-- From ahmedre@cc.gatech.edu Mon Mar 8 02:06:17 2004 From: ahmedre@cc.gatech.edu (ahmed el-helw) Date: Sun, 07 Mar 2004 21:06:17 -0500 Subject: [Gtk-sharp-list] treeview help In-Reply-To: <1078710152.9233.6.camel@localhost> References: <1078706435.1391.7.camel@meribia.leetmuppet.net> <1078710152.9233.6.camel@localhost> Message-ID: <1078711576.3596.0.camel@meribia.leetmuppet.net> On Sun, 2004-03-07 at 20:42, Borja Sanchez Zamorano wrote: > hi, > See this example... It works correctly. The order are defined in the > packstart. If pixbuf is first has warnings, but if it is second doesn't > warning. awesome, it works now, thanks! -ahmed -- ahmed el-helw From amartinez@atc.ugr.es Mon Mar 8 11:57:18 2004 From: amartinez@atc.ugr.es (=?ISO-8859-1?Q?Antonio_Mart=EDnez_=C1lvarez?=) Date: Mon, 08 Mar 2004 12:57:18 +0100 Subject: [Gtk-sharp-list] Simple threading application that doesn't work with Windows (in Linux it is ok) Message-ID: <404C5F9E.1010605@atc.ugr.es> This is a multi-part message in MIME format. --------------050607000808080903030503 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Hello. I'm having lots of problems to make a Gtk# application run ok in Windows. Sorry, but I've attached the .cs file because it is difficult for me to see where the failure is. I have reduced the application to be as small as possible and added all the necessary classes inside of the file to make the compilation more easy. I compile it with: mcs server.cs -r:gtk-sharp -r:gdk-sharp This is what the application does: 1.- Shows a Gtk.Window with a button inside. 2.- When the button is clicked a thread is started. This thread opens a TcpListener and listens to Tcp port 8001 in localhost. When a string (rece) arrives this is what I do (see 3.) myEvents.Add(rece); 3.- There is an instance of the class ListWithChangedEvent derived from ArrayList which I used to capture the "Changed" event and do something (myDebug1). 4.- This is what I do (myDebug1): if rece[0] == '1' then a new instance of CHello (a simple Gtk.Window with a button) is shown. if rece[0] == 'z' close the thread. Ok. I have added a comment like this: //SEE IT: in 3 places where a code appears not to work properly in Windows, these are calls to Threads.Init(), Thread.Enter() and Threads.Leave(); I use this event not to do the threads to make something with Gtk# (I have heard that it doesn't work). I promise I have been more than a week studying why it doesn't work. Can you please help me? NOTE: cliente.cs is a simple client which is connected to Tcp port 8001 and sends a simple string. To compile this: mcs server.cs Thanks in advance. -- Antonio Martnez --------------050607000808080903030503 Content-Type: text/plain; name="server.cs" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="server.cs" namespace hsm_server { using System; using System.Net.Sockets; using System.Threading; using Gdk; using Gtk; using GtkSharp; using MyEvents; public class Server { private TcpListener myListener; private int port = 8001; public static Gtk.Window app; public static CHello win = null; public static Button b; public static Thread th; public static ListWithChangedEvent myEvents = null; public static bool listening = true; public Server () { try { myListener = new TcpListener (port); myListener.Start (); Console.WriteLine ("Server Ready - Listining for new Connections ..."); th = new Thread (new ThreadStart (StartListen)); th.Start (); } catch (Exception e) { Console.WriteLine ("Exception Occured :" + e.ToString ()); } } /////////////////// MAIN /////////////// public static void Main (String[]argv) { Application.Init (); myEvents = new ListWithChangedEvent(); myEvents.Changed += new ChangedEventHandler(myDebug1); app = new Gtk.Window ("Learning"); app.DeleteEvent += new DeleteEventHandler (Quit); b = new Button ("Press me"); b.Clicked += new EventHandler (onClick); app.Add (b); app.ShowAll (); Application.Run (); Console.WriteLine ("App finished."); } static void onClick (object o, EventArgs a) { Server dts = new Server (); } static void Quit (object o, DeleteEventArgs a) { Application.Quit (); } public static void myDebug1(object o, EventArgs a) { Console.WriteLine("myDebug1"); string cad = (string) myEvents[myEvents.Count -1]; Console.WriteLine("String received = (" + cad + ")"); if (cad[0] == '1') { Console.WriteLine("Command 1"); win = new CHello("Hello"); } else if(cad[0] == 'z') { listening = false; } else { Console.WriteLine("Unknown command"); } } public void StartListen () { //Threads.Init(); // SEE IT: It doesn't work in Windows while (listening == true) { Net.Sockets.Socket mySocket = myListener.AcceptSocket (); if (mySocket.Connected) { Console.WriteLine ("Client Connected!!"); Byte[]receive = new Byte[4]; int i; while (listening) { i = mySocket.Receive (receive, receive.Length, 0); char[] unwanted = { '\n' }; string rece = System.Text.Encoding.ASCII.GetString (receive); //Threads.Enter(); //SEE IT: It doesn't work in Windows myEvents.Add(rece); //Threads.Leave(); //SEE IT: It doesn't work in windows } Console.WriteLine ("Closing socket..."); mySocket.Close (); } } } } /////// A SIMPLE WINDOW WITH A BUTTON ///// public class CHello:Gtk.Window { public Button b1; public CHello (string cad):base (cad) { b1 = new Button ("Hello"); this.Add (b1); this.ShowAll (); } } } namespace MyEvents { using System; using System.Collections; public delegate void ChangedEventHandler(object sender, EventArgs e); public class ListWithChangedEvent: ArrayList { public event ChangedEventHandler Changed; protected virtual void OnChanged(EventArgs e) { if (Changed != null) Changed(this, e); } public override int Add(object value) { int i = base.Add(value); OnChanged(EventArgs.Empty); return i; } public override object this[int index] { set { base[index] = value; OnChanged(EventArgs.Empty); } } } } --------------050607000808080903030503 Content-Type: text/plain; name="cliente.cs" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="cliente.cs" using System; using System.IO; using System.Net; using System.Text; using System.Net.Sockets; public class clnt { public static void Main () { TcpClient tcpclnt = new TcpClient (); Console.WriteLine ("Connecting....."); tcpclnt.Connect ("127.0.0.1", 8001); Console.WriteLine ("Connected"); Stream stm = tcpclnt.GetStream (); while (true){ //AMA try { Console.Write ("Enter the string to be transmitted : "); String str = Console.ReadLine (); ASCIIEncoding asen = new ASCIIEncoding (); byte[] ba = asen.GetBytes (str); Console.WriteLine ("Transmitting....."); stm.Write (ba, 0, ba.Length); } catch (Exception e) { Console.WriteLine ("Error..... " + e.StackTrace); } } } } --------------050607000808080903030503-- From borsanza@terra.es Mon Mar 8 13:47:09 2004 From: borsanza@terra.es (Borja Sanchez Zamorano) Date: Mon, 08 Mar 2004 14:47:09 +0100 Subject: [Gtk-sharp-list] Hi! In-Reply-To: <1078686105.14893.18.camel@localhost> References: <1078686105.14893.18.camel@localhost> Message-ID: <1078753629.3961.5.camel@localhost> Hi, Question 2: Yes, for using a .exe generated in mono, only copy and paste. Install in Windows the Microsoft Framework of .Net and Gtk-sharp for windows. gtk-sharp -> http://gtk-sharp.sourceforge.net/ Question 4: Yes, you can draw lines, rectangles, fill, pixmaps, texts....... My example (it use lines, rectangles, fill, pixmaps, texts..): http://www.msn4lin.com/images/msn4lin.png BorSanZa El dom, 07-03-2004 a las 20:01, Mikolaj Habdank escribi=F3: > Hi! >=20 > I would like to introduce myself. I am Java developer, but I would like > to see what can mono platform do for me :-) So I would like to ask few > questions (I aksed google before:-) >=20 > 1. how stable is mono with gtk#? > 2. is it simple as in java to port applications which use gtk# from > linux to windows (copy and?)? > 3. is GTK# faster than SWING? > 4. is it possible to draw (line, rectangle, fill etc.) like in java2D, > or gnome Canvas? >=20 > best regards >=20 > MecaT >=20 >=20 >=20 > _______________________________________________ > Gtk-sharp-list maillist - Gtk-sharp-list@lists.ximian.com > http://lists.ximian.com/mailman/listinfo/gtk-sharp-list --=20 Borja Sanchez Zamorano From jeremiah@facility9.com Mon Mar 8 14:59:03 2004 From: jeremiah@facility9.com (Jeremiah McElroy) Date: Mon, 08 Mar 2004 09:59:03 -0500 Subject: [Gtk-sharp-list] Using RadioButtons Message-ID: <404C8A37.6090002@facility9.com> I have an app with a Gtk.Dialog that contains a group of RadioButtons. I would like to use the radio buttons to set a user preference in the application. I can't seem to find any examples (in either MS or Mono docs) about how to do this. If anyone has an example or advice, I would greatly appreciate it. TIA, Jeremiah From amartinez@atc.ugr.es Mon Mar 8 15:36:27 2004 From: amartinez@atc.ugr.es (=?ISO-8859-1?Q?Antonio_Mart=EDnez_=C1lvarez?=) Date: Mon, 08 Mar 2004 16:36:27 +0100 Subject: [Gtk-sharp-list] Using RadioButtons In-Reply-To: <404C8A37.6090002@facility9.com> References: <404C8A37.6090002@facility9.com> Message-ID: <404C92FB.80909@atc.ugr.es> Jeremiah McElroy wrote: > I have an app with a Gtk.Dialog that contains a group of RadioButtons. > I would like to use the radio buttons to set a user preference in the > application. I can't seem to find any examples (in either MS or Mono > docs) about how to do this. If anyone has an example or advice, I would > greatly appreciate it. This example works for me. I don't know if this is very correct, but it works: using System; using Gtk; using GtkSharp; class Capp { Gtk.Window win; RadioButton rb1,rb2,rb3; Table t; Capp() { win = new Gtk.Window("Trest"); win.DeleteEvent += new DeleteEventHandler(Quit); t = new Table(3,1, true); rb1 = new RadioButton(null, "RB 1"); rb2 = new RadioButton(null, "RB 2"); rb3 = new RadioButton(null, "RB 3"); rb2.Group = rb1.Group; rb3.Group = rb1.Group; t.Attach(rb1,0,1,0,1); t.Attach(rb2,0,1,1,2); t.Attach(rb3,0,1,2,3); win.Add(t); win.ShowAll(); } static void Main() { Application.Init(); Capp win = new Capp(); Application.Run(); } void Quit(object o, DeleteEventArgs a) { Application.Quit(); } } From jeremiah@facility9.com Mon Mar 8 15:55:06 2004 From: jeremiah@facility9.com (Jeremiah McElroy) Date: Mon, 08 Mar 2004 10:55:06 -0500 Subject: [Gtk-sharp-list] Using RadioButtons In-Reply-To: <404C92FB.80909@atc.ugr.es> References: <404C8A37.6090002@facility9.com> <404C92FB.80909@atc.ugr.es> Message-ID: <404C975A.6000205@facility9.com> Thanks, I was also looking for an example of how to check with RadioButton in a group is checked. In SWF you just examine the checked property of the RadioButton, but I can't seem to find that in the monodocs and I was wondering if there was a different property that I should be checking. Again, thanks, Jeremiah Antonio Martnez lvarez wrote: > Jeremiah McElroy wrote: > >> I have an app with a Gtk.Dialog that contains a group of >> RadioButtons. I would like to use the radio buttons to set a user >> preference in the application. I can't seem to find any examples (in >> either MS or Mono docs) about how to do this. If anyone has an >> example or advice, I would greatly appreciate it. > > > This example works for me. I don't know if this is very correct, but > it works: > > using System; > using Gtk; > using GtkSharp; > class Capp { > Gtk.Window win; > RadioButton rb1,rb2,rb3; > Table t; > Capp() { > win = new Gtk.Window("Trest"); > win.DeleteEvent += new DeleteEventHandler(Quit); > t = new Table(3,1, true); > rb1 = new RadioButton(null, "RB 1"); > rb2 = new RadioButton(null, "RB 2"); > rb3 = new RadioButton(null, "RB 3"); > rb2.Group = rb1.Group; > rb3.Group = rb1.Group; > t.Attach(rb1,0,1,0,1); > t.Attach(rb2,0,1,1,2); > t.Attach(rb3,0,1,2,3); > win.Add(t); > win.ShowAll(); > } > static void Main() { > Application.Init(); > Capp win = new Capp(); > Application.Run(); > } > void Quit(object o, DeleteEventArgs a) { > Application.Quit(); > } > } From jeremiah@facility9.com Mon Mar 8 16:14:20 2004 From: jeremiah@facility9.com (Jeremiah McElroy) Date: Mon, 08 Mar 2004 11:14:20 -0500 Subject: [Gtk-sharp-list] Using RadioButtons In-Reply-To: <404C975A.6000205@facility9.com> References: <404C8A37.6090002@facility9.com> <404C92FB.80909@atc.ugr.es> <404C975A.6000205@facility9.com> Message-ID: <404C9BDC.8090608@facility9.com> Please excuse my ignorance, I just saw ToggleButton.Mode in the documentation, and I assume this is what I need. Jeremiah McElroy wrote: > Thanks, > > I was also looking for an example of how to check with RadioButton in > a group is checked. In SWF you just examine the checked property of > the RadioButton, but I can't seem to find that in the monodocs and I > was wondering if there was a different property that I should be > checking. > > Again, thanks, > > Jeremiah > > Antonio Martnez lvarez wrote: > >> Jeremiah McElroy wrote: >> >>> I have an app with a Gtk.Dialog that contains a group of >>> RadioButtons. I would like to use the radio buttons to set a user >>> preference in the application. I can't seem to find any examples >>> (in either MS or Mono docs) about how to do this. If anyone has an >>> example or advice, I would greatly appreciate it. >> >> >> >> This example works for me. I don't know if this is very correct, but >> it works: >> >> using System; >> using Gtk; >> using GtkSharp; >> class Capp { >> Gtk.Window win; >> RadioButton rb1,rb2,rb3; >> Table t; >> Capp() { >> win = new Gtk.Window("Trest"); >> win.DeleteEvent += new DeleteEventHandler(Quit); >> t = new Table(3,1, true); >> rb1 = new RadioButton(null, "RB 1"); >> rb2 = new RadioButton(null, "RB 2"); rb3 = new >> RadioButton(null, "RB 3"); >> rb2.Group = rb1.Group; >> rb3.Group = rb1.Group; >> t.Attach(rb1,0,1,0,1); >> t.Attach(rb2,0,1,1,2); >> t.Attach(rb3,0,1,2,3); >> win.Add(t); >> win.ShowAll(); >> } >> static void Main() { >> Application.Init(); >> Capp win = new Capp(); >> Application.Run(); >> } >> void Quit(object o, DeleteEventArgs a) { >> Application.Quit(); >> } >> } > > > _______________________________________________ > Gtk-sharp-list maillist - Gtk-sharp-list@lists.ximian.com > http://lists.ximian.com/mailman/listinfo/gtk-sharp-list From amartinez@atc.ugr.es Mon Mar 8 17:20:18 2004 From: amartinez@atc.ugr.es (=?ISO-8859-1?Q?Antonio_Mart=EDnez_=C1lvarez?=) Date: Mon, 08 Mar 2004 18:20:18 +0100 Subject: [Gtk-sharp-list] Using RadioButtons In-Reply-To: <404C9BDC.8090608@facility9.com> References: <404C8A37.6090002@facility9.com> <404C92FB.80909@atc.ugr.es> <404C975A.6000205@facility9.com> <404C9BDC.8090608@facility9.com> Message-ID: <404CAB52.4050102@atc.ugr.es> Jeremiah McElroy wrote: > Please excuse my ignorance, I just saw ToggleButton.Mode in the > documentation, and I assume this is what I need. > Uhm, I have used Active Property from inherited from ToggledButton. This works for me: // Capturing the "checked" property: using System; using Gtk; using GtkSharp; class Capp { Gtk.Window win; RadioButton rb1,rb2,rb3; Button b; Table t; Capp() { win = new Gtk.Window("Trest"); win.DeleteEvent += new DeleteEventHandler(Quit); t = new Table(4,1, true); rb1 = new RadioButton(null, "RB 1"); rb2 = new RadioButton(null, "RB 2"); rb3 = new RadioButton(null, "RB 3"); rb2.Group = rb1.Group; rb3.Group = rb1.Group; b = new Button("Which is selected?"); b.Clicked += new EventHandler(Which); t.Attach(rb1,0,1,0,1); t.Attach(rb2,0,1,1,2); t.Attach(rb3,0,1,2,3); t.Attach(b,0,1,3,4); win.Add(t); win.ShowAll(); } static void Main() { Application.Init(); Capp win = new Capp(); Application.Run(); } void Quit(object o, DeleteEventArgs a) { Application.Quit(); } void Which(object o, EventArgs a) { if (rb1.Active) { Console.WriteLine("RB 1 is actived"); } else if (rb2.Active) { Console.WriteLine("RB 2 is actived"); } else if (rb3.Active) { Console.WriteLine("RB 3 is actived"); } } } From borsanza@terra.es Mon Mar 8 18:47:38 2004 From: borsanza@terra.es (Borja Sanchez Zamorano) Date: Mon, 08 Mar 2004 19:47:38 +0100 Subject: [Gtk-sharp-list] I propose a main application for GtkDemo (similar than gtk-demo of gtk+) Message-ID: <1078771625.3967.17.camel@localhost> --=-qrNjmsWMhkudgqtnY+d3 Content-Type: text/plain Content-Transfer-Encoding: 7bit hi, I write a gtk-demo in gtk#. It get a sources and show it in a TreeView only if it begin with "/*". The first line is the tittle and the rest is the comment. If doubleclick in the list, execute the file.exe. It's similar than gtk-demo of gtk+. BorSanZa -- Borja Sanchez Zamorano --=-qrNjmsWMhkudgqtnY+d3 Content-Disposition: attachment; filename=samples.tar.bz2 Content-Type: application/x-bzip; name=samples.tar.bz2 Content-Transfer-Encoding: base64 QlpoOTFBWSZTWZijv7UAGBN/xfywBAB4///fv///7v////8AAgABACAACGARTfeMM2b2mvO+3rxV bN6+rp9Pc+n2ygT7193Xs7nQSEu93dSffe587HvZfN3b7PluEiQkxJ6HqEaaGJNJ6NNTU/Cnko09 NQ/VNt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VYNEXS2PFJ2zgjiNxmnNkvxhHv0M1eUL8 CbC8dghwGtaNpx7wVVhVIXWJzs8NhFKoU7bk7uo6ApO3BqwO9dAGCV3nG7M8aDIMaLZzoiZQRCvv a7ZLtw5AsIWGJhiKSSVTbm6+f1nIvQNwIjzO84m8c24CwMzfcsRCj/tZeiQCGQrLv9ar6apgU2nD MPwMuskNGwhpYaA/EXPszjGHwF9IXJHAcZq0LaUP3oSybBFWNgMHpKpNhkonmggclqNklA0kwM0U BiqiLETA0VUEYwpBq56mybqlsZ72hYsFo5+7EQXEsXqZMMe97o51JEyqUAMVGW/yoUDOhglnER7F pmG7r3hEdSlmBcawx6QyBsDwxxGJTcBHpiciUxrWr67SrEY2MIUpxfV3VRP/i7kinChITFHf2oA= --=-qrNjmsWMhkudgqtnY+d3-- From misleb@onshore.com Tue Mar 9 04:11:41 2004 From: misleb@onshore.com (misleb@onshore.com) Date: Mon, 8 Mar 2004 22:11:41 -0600 (CST) Subject: [Gtk-sharp-list] Hi! In-Reply-To: <1078753629.3961.5.camel@localhost> Message-ID: <20040309040730.CB9BB5F85D@mailgw.onshore.com> > El dom, 07-03-2004 a las 20:01, Mikolaj Habdank escribi=F3: >> Hi! >>=20 >> I would like to introduce myself. I am Java developer, but I would like >> to see what can mono platform do for me :-) So I would like to ask few >> questions (I aksed google before:-) >>=20 >> 1. how stable is mono with gtk#? Stable enough to begin developing applications. Although both GTK# and mono are still in heavy development (a good thing). Some interfaces and such seem to change, but for the most part it is functional.=20 >> 2. is it simple as in java to port applications which use gtk# from >> linux to windows (copy and?)? I've been able to compile under Linux/Mono and run the same binary under Windows/.NET. >> 3. is GTK# faster than SWING? No contest. GTK# is way faster. For the most part, GTK# apps under linux look and feel like native Gnome/GTK+ apps. Install monodoc and see. The one thing I always hated about java/swing applications is that they look and feel like Java applications. I think GTK# has the advantage of calling the native gtk+ libraries. Where SWING is pure Java, I believe.=20 -matthew From hgomez_36@flashmail.com Tue Mar 9 07:00:23 2004 From: hgomez_36@flashmail.com (Hector E. Gomez Morales) Date: Tue, 09 Mar 2004 01:00:23 -0600 Subject: [Gtk-sharp-list] Documentation: Status and Call fo Help. Message-ID: <1078815622.10634.35.camel@spivaka.uninet.mx> Today I committed a patch to the Gtk# docs that update it to match the CVS API. I think this is a good time for anyone that wants to join the documentation effort to come forward and lend a hand, mainly because: 1)All the API is updated (and I am looking to make it stays that way), so no risk of lose of effort. 2)Even when the Gtk and Gdk namespaces have a good percent of work done there is huge work to do. 3)Apart from coding like mad there is no better way to learn and understand an API than making Docs or code examples for the Docs. My eternal gratitude to anyone stepping foward, tomorrow i will commit a mini HOWTO for making docs. Well my next target is to update all the Class Library Docs but before I make this update I will like to know any suggestions or remark so I can take them in to account. I plan to refine and make more doc tools (like update.exe) to handle all this job a heavy usage of XML and possibly of XPATH will be in order. So if you have a good tutorial (in special for XPATH) or some app that could help this effort please send me an email. Hector From iain@mccoy.id.au Tue Mar 9 10:44:44 2004 From: iain@mccoy.id.au (Iain McCoy) Date: Tue, 09 Mar 2004 21:44:44 +1100 Subject: [Gtk-sharp-list] Using RadioButtons In-Reply-To: <404C92FB.80909@atc.ugr.es> References: <404C8A37.6090002@facility9.com> <404C92FB.80909@atc.ugr.es> Message-ID: <1078829084.1228.1.camel@shakespeare> On Tue, 2004-03-09 at 02:36, Antonio Martnez lvarez wrote: > rb1 = new RadioButton(null, "RB 1"); > rb2 = new RadioButton(null, "RB 2"); > rb3 = new RadioButton(null, "RB 3"); > rb2.Group = rb1.Group; > rb3.Group = rb1.Group; I believe RadioButton has a constructor that makes this simpler, so you say: rb1 = new RadioButton(null, "RB 1"); rb2 = new RadioButton(rb1, "RB 2"); rb3 = new RadioButton(rb1, "RB 3"); to put rb2 and rb3 into rb1's group, rather than doing it manually. -- Iain McCoy From ecmel@ercansoy.com Tue Mar 9 12:23:30 2004 From: ecmel@ercansoy.com (Ecmel Ercan) Date: Tue, 09 Mar 2004 14:23:30 +0200 Subject: [Gtk-sharp-list] Inheriting a Gtk.Widget Message-ID: Hi, I want to inherit TreeView widget but with the TreeView (NodeStore) constructor. I would normally do: class MyTreeView : TreeView { .. .. public MyTreeView (NodeStore store) : base (store) { } } But, now I can not pass the GType to the base class and the inherited class is not a real Gtk.Widget (e.g. virtual methods can not be overriden) What is the correct way to do this? Regards, Ecmel Ercan From juan@aga-system.com Tue Mar 9 18:16:04 2004 From: juan@aga-system.com (Juan =?iso-8859-1?q?Gonz=E1lez?=) Date: Tue, 9 Mar 2004 19:16:04 +0100 Subject: [Gtk-sharp-list] A problem with a new installation Message-ID: <200403091916.04378.juan@aga-system.com> Hi list, i'm new to gtk-sharp and mono in general, and i have downloaded mono-0.30.2 and gtk-sharp 0.17. I have successfully installed mono on my system (Slackware 9,1, with the released versions of gnome 2.4 and gtk 2.0, and 2.4.25 refined), and after that I uncompressed gtk-sharp and ./configure'd it with the following output: (This is only the end) Configuration summary * Installation prefix = /usr/local Optional assemblies included in the build: * gnome-sharp.dll: no * glade-sharp.dll: yes * gda-sharp.dll: no * gnomedb-sharp.dll: no * rsvg-sharp.dll: no * gtkhtml-sharp.dll: no * vte-sharp.dll: no After that I did a make and it went fine, but when I came to run make install, it aborts the installation with this error message: mcs PropertyEditor.cs PropertyEditorBool.cs PropertyEditorColorPicker.cs PropertyEditorEnum.cs PropertyEditorEntry.cs PropertyEditorFileEntry.cs PropertyEditorOptionMenu.cs PropertyEditorRadioButton.cs PropertyEditorSpinButton.cs PropertyEditorToggleButton.cs EditorShell.cs -L ../../glib -L ../../pango -L ../../atk -L ../../gdk -L ../../gtk -L ../../art -L ../../gnome -L ../GConf -L ../../glade /r:glib-sharp.dll /r:pango-sharp.dll /r:atk-sharp.dll /r:gdk-sharp.dll /r:gtk-sharp.dll /r:art-sharp.dll /r:gnome-sharp.dll /r:glade-sharp.dll /r:gconf-sharp.dll /r:System.Drawing /target:library /out:gconf-sharp-peditors.dll error CS0006: Cannot find assembly `gnome-sharp.dll' Log: Compilation failed: 1 error(s), 0 warnings make[2]: *** [gconf-sharp-peditors.dll] Error 1 make[2]: Leaving directory `/home/opsi/Downloads/Mono/gtk-sharp-0.17/gconf/GConf .PropertyEditors' make[1]: *** [install] Error 1 make[1]: Leaving directory `/home/opsi/Downloads/Mono/gtk-sharp-0.17/gconf' make: *** [install-binding] Error 1 Thanks in advance. From rdn@alu.ua.es Fri Mar 12 15:03:48 2004 From: rdn@alu.ua.es (Roberto =?ISO-8859-1?Q?D=EDaz?=) Date: Fri, 12 Mar 2004 16:03:48 +0100 Subject: [Gtk-sharp-list] combo widget Message-ID: <1079103828.1408.80.camel@dev> Hello, I'm using Mono 0.30 and gtk-sharp 0.17 and I'm trying to compile this code: using System; using System.Runtime.InteropServices; using Gtk; using GLib; class ComboSample{ Combo combo; OptionMenu opt; static void Main () { new ComboSample (); } ComboSample () { Application.Init (); Window win = new Window ("ComboSample"); win.DeleteEvent += new DeleteEventHandler (OnWinDelete); GLib.List l = new GLib.List (IntPtr.Zero, typeof(string)); l.Append("hello"); combo = new Combo (); combo.PopdownStrings = l; combo.DisableActivate (); combo.Entry.Activated += new EventHandler (OnEntryActivated); win.Add (combo); win.ShowAll (); Application.Run (); } } I get on the line "combo.PopdownStrings = l" this error : error CS0029: Cannot convert implicitly from `GLib.List' to `string[]' I've seen on monodoc that combo.PopdownStrings accepts string input and GLib.List input, right? How can I put GLib.List inside Gtk.Combo? any idea? Best regards. Roberto. From scs0bsw@leeds.ac.uk Fri Mar 12 15:52:51 2004 From: scs0bsw@leeds.ac.uk (Benjamin Wootton) Date: Fri, 12 Mar 2004 15:52:51 +0000 Subject: [Gtk-sharp-list] Glade and GTK Sharp Combo Boxes Message-ID: <1079106771.4051dcd3d70ed@webmail4.leeds.ac.uk> When I add a combo box in my Glade project, call it combo1, and add... [Glade.Widget] Combo combo1; .... To my C# Class, the combo1 variable isn't being hooked up - it's null when I attempt to use it. Is this a bug, or am I doing something wrong? TIA Ben From borsanza@terra.es Fri Mar 12 17:09:32 2004 From: borsanza@terra.es (Borja Sanchez Zamorano) Date: Fri, 12 Mar 2004 18:09:32 +0100 Subject: [Gtk-sharp-list] combo widget In-Reply-To: <1079103828.1408.80.camel@dev> References: <1079103828.1408.80.camel@dev> Message-ID: <1079111371.3997.16.camel@localhost> In the implementation of gtk-sharp only exist PopdownStrings for string[], but in the monodoc exist two. I don't understand it. Sorry. In gtk-sharp-0.16 exist only Combo.PopdownStrings for GLib.List In gtk-sharp-0.17 exist only Combo.PopdownStrings for string[] BorSanZa El vie, 12-03-2004 a las 16:03, Roberto D=EDaz escribi=F3: > Hello, >=20 > I'm using Mono 0.30 and gtk-sharp 0.17 and I'm trying to compile this > code: >=20 > using System; > using System.Runtime.InteropServices; > using Gtk; > using GLib; >=20 > class ComboSample{ > Combo combo; > OptionMenu opt; > static void Main () > { > new ComboSample (); > } > ComboSample () > { > Application.Init (); > Window win =3D new Window ("ComboSample"); > win.DeleteEvent +=3D new DeleteEventHandler (OnWinDelete)= ; >=20 > GLib.List l =3D new GLib.List (IntPtr.Zero, > typeof(string)); > l.Append("hello"); >=20 > combo =3D new Combo (); > combo.PopdownStrings =3D l; > combo.DisableActivate (); > combo.Entry.Activated +=3D new EventHandler > (OnEntryActivated); > = =20 > win.Add (combo); > win.ShowAll (); > Application.Run (); > } > } >=20 > I get on the line "combo.PopdownStrings =3D l" this error : >=20 > error CS0029: Cannot convert implicitly from `GLib.List' to `string[]' >=20 > I've seen on monodoc that combo.PopdownStrings accepts string input and > GLib.List input, right? >=20 > How can I put GLib.List inside Gtk.Combo? >=20 > any idea? >=20 > Best regards. >=20 > Roberto. >=20 >=20 >=20 > _______________________________________________ > Gtk-sharp-list maillist - Gtk-sharp-list@lists.ximian.com > http://lists.ximian.com/mailman/listinfo/gtk-sharp-list --=20 Borja Sanchez Zamorano From borsanza@terra.es Fri Mar 12 17:12:53 2004 From: borsanza@terra.es (Borja Sanchez Zamorano) Date: Fri, 12 Mar 2004 18:12:53 +0100 Subject: [Gtk-sharp-list] Glade and GTK Sharp Combo Boxes In-Reply-To: <1079106771.4051dcd3d70ed@webmail4.leeds.ac.uk> References: <1079106771.4051dcd3d70ed@webmail4.leeds.ac.uk> Message-ID: <1079111573.4001.19.camel@localhost> Are you load a .glade? example: Glade.XML ui =3D new Glade.XML (null, "example.glade", "window1", null); BorSanZa El vie, 12-03-2004 a las 16:52, Benjamin Wootton escribi=F3: > When I add a combo box in my Glade project, call it combo1, and add... >=20 > [Glade.Widget] Combo combo1; >=20 > .... To my C# Class, the combo1 variable isn't being hooked up - it's nul= l when > I attempt to use it. Is this a bug, or am I doing something wrong? >=20 > TIA > Ben > _______________________________________________ > Gtk-sharp-list maillist - Gtk-sharp-list@lists.ximian.com > http://lists.ximian.com/mailman/listinfo/gtk-sharp-list --=20 Borja Sanchez Zamorano From jluke@users.sourceforge.net Fri Mar 12 17:27:30 2004 From: jluke@users.sourceforge.net (John Luke) Date: Fri, 12 Mar 2004 12:27:30 -0500 Subject: [Gtk-sharp-list] Glade and GTK Sharp Combo Boxes In-Reply-To: <1079106771.4051dcd3d70ed@webmail4.leeds.ac.uk> References: <1079106771.4051dcd3d70ed@webmail4.leeds.ac.uk> Message-ID: <1079112449.23420.1.camel@localhost.localdomain> On Fri, 2004-03-12 at 15:52 +0000, Benjamin Wootton wrote: do you call: xml.Autoconnect (this); > When I add a combo box in my Glade project, call it combo1, and add... > > [Glade.Widget] Combo combo1; > > .... To my C# Class, the combo1 variable isn't being hooked up - it's null when > I attempt to use it. Is this a bug, or am I doing something wrong? > > TIA > Ben > _______________________________________________ > Gtk-sharp-list maillist - Gtk-sharp-list@lists.ximian.com > http://lists.ximian.com/mailman/listinfo/gtk-sharp-list From jluke@users.sourceforge.net Fri Mar 12 17:30:36 2004 From: jluke@users.sourceforge.net (John Luke) Date: Fri, 12 Mar 2004 12:30:36 -0500 Subject: [Gtk-sharp-list] combo widget In-Reply-To: <1079111371.3997.16.camel@localhost> References: <1079103828.1408.80.camel@dev> <1079111371.3997.16.camel@localhost> Message-ID: <1079112636.23420.5.camel@localhost.localdomain> On Fri, 2004-03-12 at 18:09 +0100, Borja Sanchez Zamorano wrote: string[] is correct now, the docs in cvs will reflect this but the old moethods were not quite removed in time for the release. This is one of the wonderful API improvements that we got in 0.17 (i.e. the removal of GLib.GList and GSList from the public API) > In the implementation of gtk-sharp only exist PopdownStrings for > string[], but in the monodoc exist two. I don't understand it. Sorry. > > In gtk-sharp-0.16 exist only Combo.PopdownStrings for GLib.List > In gtk-sharp-0.17 exist only Combo.PopdownStrings for string[] > > BorSanZa > > El vie, 12-03-2004 a las 16:03, Roberto Díaz escribió: > > Hello, > > > > I'm using Mono 0.30 and gtk-sharp 0.17 and I'm trying to compile this > > code: > > > > using System; > > using System.Runtime.InteropServices; > > using Gtk; > > using GLib; > > > > class ComboSample{ > > Combo combo; > > OptionMenu opt; > > static void Main () > > { > > new ComboSample (); > > } > > ComboSample () > > { > > Application.Init (); > > Window win = new Window ("ComboSample"); > > win.DeleteEvent += new DeleteEventHandler (OnWinDelete); > > > > GLib.List l = new GLib.List (IntPtr.Zero, > > typeof(string)); > > l.Append("hello"); > > > > combo = new Combo (); > > combo.PopdownStrings = l; > > combo.DisableActivate (); > > combo.Entry.Activated += new EventHandler > > (OnEntryActivated); > > > > win.Add (combo); > > win.ShowAll (); > > Application.Run (); > > } > > } > > > > I get on the line "combo.PopdownStrings = l" this error : > > > > error CS0029: Cannot convert implicitly from `GLib.List' to `string[]' > > > > I've seen on monodoc that combo.PopdownStrings accepts string input and > > GLib.List input, right? > > > > How can I put GLib.List inside Gtk.Combo? > > > > any idea? > > > > Best regards. > > > > Roberto. > > > > > > > > _______________________________________________ > > Gtk-sharp-list maillist - Gtk-sharp-list@lists.ximian.com > > http://lists.ximian.com/mailman/listinfo/gtk-sharp-list > -- > Borja Sanchez Zamorano > > _______________________________________________ > Gtk-sharp-list maillist - Gtk-sharp-list@lists.ximian.com > http://lists.ximian.com/mailman/listinfo/gtk-sharp-list From tberman@sevenl.net Sat Mar 13 09:35:41 2004 From: tberman@sevenl.net (Todd Berman) Date: Sat, 13 Mar 2004 04:35:41 -0500 Subject: [Gtk-sharp-list] RequestSize seems to be broken Message-ID: <1079170540.2400.1.camel@164-99-120-56.boston.ximian.com> After updating to the latest gtk# cvs, the Widget.RequestSize seems to have changed into GetRequestSize and SetRequestSize methods, or the RequestSize property is gone. not sure :) --Todd From scs0bsw@leeds.ac.uk Fri Mar 12 18:15:05 2004 From: scs0bsw@leeds.ac.uk (Benjamin Wootton) Date: Fri, 12 Mar 2004 18:15:05 +0000 Subject: [Gtk-sharp-list] Glade and GTK Sharp Combo Boxes In-Reply-To: <1079112449.23420.1.camel@localhost.localdomain> References: <1079106771.4051dcd3d70ed@webmail4.leeds.ac.uk> <1079112449.23420.1.camel@localhost.localdomain> Message-ID: <1079115305.4051fe296e46e@webmail4.leeds.ac.uk> I wasn't. Thanks guys. BTW we love the GTK#/Glade Combo here...! Ben Quoting John Luke : > On Fri, 2004-03-12 at 15:52 +0000, Benjamin Wootton wrote: > > do you call: > xml.Autoconnect (this); > > > When I add a combo box in my Glade project, call it combo1, and add... > > > > [Glade.Widget] Combo combo1; > > > > .... To my C# Class, the combo1 variable isn't being hooked up - it's null > when > > I attempt to use it. Is this a bug, or am I doing something wrong? > > > > TIA > > Ben > > _______________________________________________ > > Gtk-sharp-list maillist - Gtk-sharp-list@lists.ximian.com > > http://lists.ximian.com/mailman/listinfo/gtk-sharp-list From mkestner@ximian.com Sat Mar 13 17:14:03 2004 From: mkestner@ximian.com (Mike Kestner) Date: Sat, 13 Mar 2004 11:14:03 -0600 Subject: [Gtk-sharp-list] RequestSize seems to be broken In-Reply-To: <1079170540.2400.1.camel@164-99-120-56.boston.ximian.com> References: <1079170540.2400.1.camel@164-99-120-56.boston.ximian.com> Message-ID: <1079198043.4247.28.camel@localhost.localdomain> On Sat, 2004-03-13 at 03:35, Todd Berman wrote: > After updating to the latest gtk# cvs, the Widget.RequestSize seems to > have changed into GetRequestSize and SetRequestSize methods, or the > RequestSize property is gone. not sure :) My latest commit removed all the API that used System.Drawing. We do not want a System.Drawing dependency on Gtk# as it will be part of the non-encumbered stack for mono 1.0. The RequestSize property was a customization that "overloaded" the (width, height) methods with a System.Drawing.Size property. -- Mike Kestner From tberman@sevenl.net Sat Mar 13 22:45:46 2004 From: tberman@sevenl.net (Todd Berman) Date: Sat, 13 Mar 2004 17:45:46 -0500 Subject: [Gtk-sharp-list] RequestSize seems to be broken In-Reply-To: <1079198043.4247.28.camel@localhost.localdomain> References: <1079170540.2400.1.camel@164-99-120-56.boston.ximian.com> <1079198043.4247.28.camel@localhost.localdomain> Message-ID: <1079217946.11822.2.camel@164-99-120-56.boston.ximian.com> Alright. Currently the RequestSize api is pretty nasty, is there a Gdk.Size struct? if not, can we write one and give it some of the same functionality as the System.Drawing.Size. As well, would it make sense to copy over pieces of the S.D.Rect api that might provide additional functionality? --Todd On Sat, 2004-13-03 at 11:14 -0600, Mike Kestner wrote: > On Sat, 2004-03-13 at 03:35, Todd Berman wrote: > > After updating to the latest gtk# cvs, the Widget.RequestSize seems to > > have changed into GetRequestSize and SetRequestSize methods, or the > > RequestSize property is gone. not sure :) > > My latest commit removed all the API that used System.Drawing. We do not > want a System.Drawing dependency on Gtk# as it will be part of the > non-encumbered stack for mono 1.0. > > The RequestSize property was a customization that "overloaded" the > (width, height) methods with a System.Drawing.Size property. > > -- > Mike Kestner > > _______________________________________________ > Gtk-sharp-list maillist - Gtk-sharp-list@lists.ximian.com > http://lists.ximian.com/mailman/listinfo/gtk-sharp-list From iain@mccoy.id.au Sun Mar 14 10:10:01 2004 From: iain@mccoy.id.au (Iain McCoy) Date: Sun, 14 Mar 2004 21:10:01 +1100 Subject: [Gtk-sharp-list] GLib.Idle.Add and parameters Message-ID: <1079259001.26336.7.camel@shakespeare> Hey folks, I was just chatting with a fellow on IRC going by the name of neofeed, and he asked if idle handlers could have parameters passed to them. I know this is possible in C: guint g_idle_add (GSourceFunc function, gpointer data); ------^----- But in gtk#, public static uint Add (IdleHandler hndlr) - nowhere for a parameter to go. IdleHandler doesn't take any arguments. I'm wondering why this is. gtk-sharp/glib/Idle.cs just passes IntPtr.Zero to the underlying function. Is there some technical reason that I am missing as to why this can't be done? Of course, this will all be moot once we have anonymous delegates - but I'm curious as to why this is how it is. Cheers, -- Iain McCoy From miguel@ximian.com Sun Mar 14 16:49:21 2004 From: miguel@ximian.com (Miguel de Icaza) Date: Sun, 14 Mar 2004 11:49:21 -0500 Subject: [Gtk-sharp-list] RequestSize seems to be broken In-Reply-To: <1079198043.4247.28.camel@localhost.localdomain> References: <1079170540.2400.1.camel@164-99-120-56.boston.ximian.com> <1079198043.4247.28.camel@localhost.localdomain> Message-ID: <1079282961.4369.115.camel@erandi.boston.ximian.com> Hello, > > After updating to the latest gtk# cvs, the Widget.RequestSize seems to > > have changed into GetRequestSize and SetRequestSize methods, or the > > RequestSize property is gone. not sure :) > > My latest commit removed all the API that used System.Drawing. We do not > want a System.Drawing dependency on Gtk# as it will be part of the > non-encumbered stack for mono 1.0. > > The RequestSize property was a customization that "overloaded" the > (width, height) methods with a System.Drawing.Size property. I think we should add a Gdk.Size structure that we can use as a convenience routine, as well as putting various overloads in Gdk.Rectangle and Gdk.Point to match the features found in System.Drawing. Miguel From oachler@ucsd.edu Sun Mar 14 18:05:23 2004 From: oachler@ucsd.edu (Ofer Achler) Date: Sun, 14 Mar 2004 10:05:23 -0800 Subject: [Gtk-sharp-list] event for window movement Message-ID: <200403141805.i2EI5WRb010488@smtp.ucsd.edu> Hello, I'm trying to attach to an event that happens when a window is moved (preferably when a widget is moved) Configure_event doesn't do it, it seems to get called when a resize event occurs or other things of that nature, but not when a window is moved. My question is does such an event exist? Thanks =) From jluke@users.sourceforge.net Sun Mar 14 18:31:53 2004 From: jluke@users.sourceforge.net (John Luke) Date: Sun, 14 Mar 2004 13:31:53 -0500 Subject: [Gtk-sharp-list] event for window movement In-Reply-To: <200403141805.i2EI5WRb010488@smtp.ucsd.edu> References: <200403141805.i2EI5WRb010488@smtp.ucsd.edu> Message-ID: <1079289113.21427.1.camel@localhost.localdomain> --=-Ou/u9tJRHPY7fX7As9td Content-Type: text/plain Content-Transfer-Encoding: 7bit On Sun, 2004-03-14 at 10:05 -0800, Ofer Achler wrote: > Hello, > > I'm trying to attach to an event that happens when a window is moved > (preferably when a widget is moved) > > Configure_event doesn't do it, it seems to get called when a resize event > occurs or other things of that nature, but not when a window is moved. > > My question is does such an event exist? > > Thanks =) I think configure_event is right for this: http://mail.gnome.org/archives/gtk-list/2003-April/msg00121.html but it doesn't seem to ever be fired in Gtk#, so I think it is a bug. Attached is a small test. --=-Ou/u9tJRHPY7fX7As9td Content-Disposition: attachment; filename=T.cs Content-Type: text/x-csharp; name=T.cs; charset=utf-8 Content-Transfer-Encoding: 7bit using System; using Gtk; class T { static void Main () { Application.Init (); Window win = new Window ("test"); win.DeleteEvent += new DeleteEventHandler (OnDelete); win.ConfigureEvent += new ConfigureEventHandler (OnConfigure); win.ShowAll (); Application.Run (); } static void OnConfigure (object o, ConfigureEventArgs args) { Console.WriteLine ("moved?"); } static void OnDelete (object o, DeleteEventArgs args) { Application.Quit (); } } --=-Ou/u9tJRHPY7fX7As9td-- From jluke@users.sourceforge.net Sun Mar 14 18:55:23 2004 From: jluke@users.sourceforge.net (John Luke) Date: Sun, 14 Mar 2004 13:55:23 -0500 Subject: [Gtk-sharp-list] event for window movement In-Reply-To: <1079289113.21427.1.camel@localhost.localdomain> References: <200403141805.i2EI5WRb010488@smtp.ucsd.edu> <1079289113.21427.1.camel@localhost.localdomain> Message-ID: <1079290523.21427.6.camel@localhost.localdomain> --=-T3K3iMLIZnNiVIEkhphC Content-Type: text/plain Content-Transfer-Encoding: 7bit On Sun, 2004-03-14 at 13:31 -0500, John Luke wrote: > On Sun, 2004-03-14 at 10:05 -0800, Ofer Achler wrote: > > > Hello, > > > > I'm trying to attach to an event that happens when a window is moved > > (preferably when a widget is moved) > > > > Configure_event doesn't do it, it seems to get called when a resize event > > occurs or other things of that nature, but not when a window is moved. > > > > My question is does such an event exist? > > > > Thanks =) > > I think configure_event is right for this: > http://mail.gnome.org/archives/gtk-list/2003-April/msg00121.html > > but it doesn't seem to ever be fired in Gtk#, so I think it is a bug. > Attached is a small test. mmarker let me know that this is apparently one of the situations where Gdk is trapping the events and you need to use Gdk.EventMask. However, I added that and it still doesn't work. Perhaps there is another EventMask that I need or it is window manager dependent. I'll leave it up to others to decide. new test attached --=-T3K3iMLIZnNiVIEkhphC Content-Disposition: attachment; filename=T.cs Content-Type: text/x-csharp; name=T.cs; charset=utf-8 Content-Transfer-Encoding: 7bit using System; using Gtk; class T { static void Main () { Application.Init (); Window win = new Window ("test"); win.DeleteEvent += new DeleteEventHandler (OnDelete); win.ConfigureEvent += new ConfigureEventHandler (OnConfigure); win.AddEvents ((int) Gdk.EventMask.ExposureMask | (int) Gdk.EventMask.VisibilityNotifyMask | (int) Gdk.EventMask.AllEventsMask); win.ShowAll (); Application.Run (); } static void OnConfigure (object o, ConfigureEventArgs args) { Console.WriteLine ("moved?"); } static void OnDelete (object o, DeleteEventArgs args) { Application.Quit (); } } --=-T3K3iMLIZnNiVIEkhphC-- From jeremiah@facility9.com Sun Mar 14 21:28:12 2004 From: jeremiah@facility9.com (Jeremiah McElroy) Date: Sun, 14 Mar 2004 16:28:12 -0500 Subject: [Gtk-sharp-list] GTK.HTML on Windows Message-ID: <4054CE6C.5010303@facility9.com> I have been doing some research, but I cannot find any information covering how to get the gtkhtml classes to run on windows. Is there a pre-compiled gtkhtml.dll available? Or will I have to build most of GNOME using cygwin? Thanks in advance, Jeremiah McElroy From jluke@users.sourceforge.net Sun Mar 14 21:50:38 2004 From: jluke@users.sourceforge.net (John Luke) Date: Sun, 14 Mar 2004 16:50:38 -0500 Subject: [Gtk-sharp-list] GTK.HTML on Windows In-Reply-To: <4054CE6C.5010303@facility9.com> References: <4054CE6C.5010303@facility9.com> Message-ID: <1079301038.21427.11.camel@localhost.localdomain> On Sun, 2004-03-14 at 16:28 -0500, Jeremiah McElroy wrote: > I have been doing some research, but I cannot find any information > covering how to get the gtkhtml classes to run on windows. Is there a > pre-compiled gtkhtml.dll available? Or will I have to build most of > GNOME using cygwin? > I don't think anyone has compiled gtkhtml for windows yet. If not, it may require some gnome libraries that you would have to compile via cygwin, or #ifdef them out of the build (which may not work). http://cvs.gnome.org/bonsai/cvsblame.cgi?file=gtkhtml/configure.in&rev=&root=/cvs/gnome seems to say it may require gail, the gnome-libs, bonobo, etc. From alendaro1@virgilio.it Mon Mar 15 11:34:32 2004 From: alendaro1@virgilio.it (Alessandro Lendaro) Date: Mon, 15 Mar 2004 12:34:32 +0100 Subject: [Gtk-sharp-list] [NewBie] Gtk.Main Thread Notification Message-ID: <405594C8.3050708@virgilio.it> Hi, I have a Thread running the Gtk.Main (Application.Run()) and when a button is pressed another thread is started which does some work on a database with events firing when some output messages have to be shown in a TextView widget. The thing works magnifically, but at the end of the DB Worker thread I want a MessageDialog to be shown if there have been errors in the operation. The things is, events run in the DB Worker thread, and when the MessageDialog.Run() method is executed, I get an error because the Gtk.Main() loop is running in another thread. So I think I must notify to the other thread that it must execute the Message.Run() ... after a little search I found that the ThreadNotify class can be used in this case, but a System.DLLNotFound Exception is thrown when I istantiate the ThreadNotify Class ... referred to libc.so.6... Gtk# 0.17 on Windows 2000 / .NET Framework 1.0 Thanx to anyone who will help... From amartinez@atc.ugr.es Mon Mar 15 11:52:39 2004 From: amartinez@atc.ugr.es (=?ISO-8859-1?Q?Antonio_Mart=EDnez_=C1lvarez?=) Date: Mon, 15 Mar 2004 12:52:39 +0100 Subject: [Gtk-sharp-list] [NewBie] Gtk.Main Thread Notification In-Reply-To: <405594C8.3050708@virgilio.it> References: <405594C8.3050708@virgilio.it> Message-ID: <40559907.5060003@atc.ugr.es> Alessandro Lendaro wrote: > Hi, I have a Thread running the Gtk.Main (Application.Run()) and when a > button is pressed another thread is > started which does some work on a database with events firing when some > output messages have to be shown in a > TextView widget. > The thing works magnifically, but at the end of the DB Worker thread I > want a MessageDialog to be shown > if there have been errors in the operation. > The things is, events run in the DB Worker thread, and when the > MessageDialog.Run() method is executed, > I get an error because the Gtk.Main() loop is running in another thread. > > So I think I must notify to the other thread that it must execute the > Message.Run() ... > > after a little search I found that the ThreadNotify class can be used in > this case, but a System.DLLNotFound Exception is thrown when I > istantiate the ThreadNotify Class ... referred to libc.so.6... > > Gtk# 0.17 on Windows 2000 / .NET Framework 1.0 I have had these problems too. I have just used GLib.Idle class to make the main thread do the Gtk# stuff. It works for me in both Linux (mono and Gtk# annon_cvs) and Windows (mono 0.30 Gtk# 0.15). -- Antonio Martnez. From alendaro1@virgilio.it Mon Mar 15 14:03:57 2004 From: alendaro1@virgilio.it (Alessandro Lendaro) Date: Mon, 15 Mar 2004 15:03:57 +0100 Subject: [Gtk-sharp-list] [NewBie] Gtk.Main Thread Notification In-Reply-To: <40559907.5060003@atc.ugr.es> References: <405594C8.3050708@virgilio.it> <40559907.5060003@atc.ugr.es> Message-ID: <4055B7CD.9000403@virgilio.it> ... can you please post an example on how to use the Idle class? I read about it too but documentation and code samples are always hard to find... From ecmel@ercansoy.com Mon Mar 15 14:44:33 2004 From: ecmel@ercansoy.com (Ecmel Ercan) Date: Mon, 15 Mar 2004 16:44:33 +0200 Subject: [Gtk-sharp-list] Re: [NewBie] Gtk.Main Thread Notification References: <405594C8.3050708@virgilio.it> Message-ID: I am using Gdk.Threads.Enter () and Gdk.Threads.Leave (). An example can be found here: http://forge.novell.com/modules/xfmod/cvs/cvsbrowse.php/kurush/kurush/SaverThread.cs?rev=1.1.1.1&content-type=text/vnd.viewcvs-markup PS: You should use Gdk.Threads.Init (); before Application.Init (); Also, I don't know whether this is the right way. From tberman@sevenl.net Mon Mar 15 16:16:53 2004 From: tberman@sevenl.net (Todd Berman) Date: Mon, 15 Mar 2004 11:16:53 -0500 Subject: [Gtk-sharp-list] [NewBie] Gtk.Main Thread Notification In-Reply-To: <405594C8.3050708@virgilio.it> References: <405594C8.3050708@virgilio.it> Message-ID: <1079367412.2155.0.camel@164-99-120-56.boston.ximian.com> When the next version of gtk# comes out, ThreadNotify will work on windows. It has been converted to use GLib.Idle internally. --Todd On Mon, 2004-15-03 at 12:34 +0100, Alessandro Lendaro wrote: > Hi, I have a Thread running the Gtk.Main (Application.Run()) and when a > button is pressed another thread is > started which does some work on a database with events firing when some > output messages have to be shown in a > TextView widget. > The thing works magnifically, but at the end of the DB Worker thread I > want a MessageDialog to be shown > if there have been errors in the operation. > The things is, events run in the DB Worker thread, and when the > MessageDialog.Run() method is executed, > I get an error because the Gtk.Main() loop is running in another thread. > > So I think I must notify to the other thread that it must execute the > Message.Run() ... > > after a little search I found that the ThreadNotify class can be used in > this case, but a System.DLLNotFound Exception is thrown when I > istantiate the ThreadNotify Class ... referred to libc.so.6... > > Gtk# 0.17 on Windows 2000 / .NET Framework 1.0 > > Thanx to anyone who will help... > > > _______________________________________________ > Gtk-sharp-list maillist - Gtk-sharp-list@lists.ximian.com > http://lists.ximian.com/mailman/listinfo/gtk-sharp-list From alendaro1@virgilio.it Mon Mar 15 17:01:04 2004 From: alendaro1@virgilio.it (Alessandro Lendaro) Date: Mon, 15 Mar 2004 18:01:04 +0100 Subject: [Gtk-sharp-list] [NewBie] Gtk.Main Thread Notification In-Reply-To: <1079367412.2155.0.camel@164-99-120-56.boston.ximian.com> References: <405594C8.3050708@virgilio.it> <1079367412.2155.0.camel@164-99-120-56.boston.ximian.com> Message-ID: <4055E150.2090903@virgilio.it> Thanx to everybody for your advice, but please, is someone aple to post a little exemple on how to use the Idle Class and how it works? From amartinez@atc.ugr.es Mon Mar 15 20:58:13 2004 From: amartinez@atc.ugr.es (Antonio =?ISO-8859-1?Q?Mart=EDnez_=C1lvarez?=) Date: Mon, 15 Mar 2004 21:58:13 +0100 Subject: [Gtk-sharp-list] [NewBie] Gtk.Main Thread Notification In-Reply-To: <4055E150.2090903@virgilio.it> References: <405594C8.3050708@virgilio.it> <1079367412.2155.0.camel@164-99-120-56.boston.ximian.com> <4055E150.2090903@virgilio.it> Message-ID: <1079384293.586.6.camel@localhost> El lun, 15-03-2004 a las 18:01, Alessandro Lendaro escribi=C3=B3: > Thanx to everybody for your advice, but please, is someone aple to post=20 > a little exemple on how to use > the Idle Class and how it works? This code is inside a method which is executed by a thread: GLib.Idle.Add(new IdleHandler(this.myIdleHandler)); and here you are the template for the method myIdleHandler: bool myIdleHandler() { // Write here your Gtk# stuff return false; } This works for me in Linux and Windows withow problems. I don't use Gdk.Threads.Init(), Gdk.Threads.Enter() and Gdk.Threads.Leave(). I'm not an expert, I don't know if this is the best way to solve it. -- Antonio Mart=C3=ADnez =C3=81lvarez amartinez at atc.ugr.es From ben@benjaminwootton.co.uk Tue Mar 16 11:13:30 2004 From: ben@benjaminwootton.co.uk (ben@benjaminwootton.co.uk) Date: Tue, 16 Mar 2004 11:13:30 +0000 Subject: [Gtk-sharp-list] GtkHTML on Windows Message-ID: <1079435610.4056e15af026c@webmail.benjaminwootton.co.uk> I've built a gtk# app that uses gtkhtml. I'm trying to run this on Windows. I've installed Mono and GTK# but see the following error. Presumably the gtk\ package comes with all of the gtk dependencies? If not does anyone know where I can get the gtkhtml dll? I started trying to build it from source, but there are so many chained gnome dependencies that I don't think im doing the right thing. Unhandled Exception: System.DllNotFoundException: gtkhtml-3.0 in <0x0004a> (wrapper managed-to-native) Gtk.HTML:gtk_html_new () in <0x00033> Gtk.HTML:.ctor () in <0x00095> Mono.Tools.Browser:.ctor () in <0x0001d> Mono.Tools.CaspolGui:Main () Any help appreciated. Ben From moritz.angermann@gmx.net Tue Mar 16 16:14:43 2004 From: moritz.angermann@gmx.net (Moritz Angermann) Date: Tue, 16 Mar 2004 17:14:43 +0100 Subject: [Gtk-sharp-list] Dealing with threads... Message-ID: <1079453683.11902.127.camel@localhost> Hi ML, I've been going though the issue of finding a good way to deal with long running processes. As far as I have come it seems to be the best to just start a thread. And let it call ThreadNotify( new ReadyEvent( new argumentedEvent( args ).update ) ); but within this, the args have to have a pointer ( reference ) to the widget to be updated. Now if i want to update more than just one widget, this would get really messy. An example of how to use Threads and ThreadNotify can be found here: http://mdot.mine.nu/~piccell/TreeViewTest.tar.gz But this one is only passing the TreeStore along. So for every widget I'd like to pass to the thread I'd need to add a ref. It would be cooler If I'd just have to ref for example the MainWindow. And than from there get all the client widgets. But there seems not to be any way of doing something like : window.GetClientByName( "name" ); Well, I'd much appreciate any Ideas on how to solve this in a clean way. kindest regards, -mo -- ---------------- contact info ---------------- Moritz Angermann moritz.angermann@gmx.net Liquid:Mint www.liquidmint.org Mobile +49 (0) 160 9197 5880 Home +49 (0) 4322 75 12 66 From mkestner@ximian.com Tue Mar 16 16:33:35 2004 From: mkestner@ximian.com (Mike Kestner) Date: Tue, 16 Mar 2004 10:33:35 -0600 Subject: [Gtk-sharp-list] GtkHTML on Windows In-Reply-To: <1079435610.4056e15af026c@webmail.benjaminwootton.co.uk> References: <1079435610.4056e15af026c@webmail.benjaminwootton.co.uk> Message-ID: <1079454814.4247.70.camel@localhost.localdomain> On Tue, 2004-03-16 at 05:13, ben@benjaminwootton.co.uk wrote: > I've built a gtk# app that uses gtkhtml. I'm trying to run this on Windows. > I've installed Mono and GTK# but see the following error. Presumably the gtk\ > package comes with all of the gtk dependencies? If not does anyone know where > I can get the gtkhtml dll? I started trying to build it from source, but there > are so many chained gnome dependencies that I don't think im doing the right > thing. No, you are on the right track. The problem is that GtkHtml is a gnome widget, depending on numerous gnome technologies. In order to use it on win32, you are going to have to provide much of the native gnome library stack. If you want linux/win32 portability right now, the easiest choice is to stick with the widgets from gtk-sharp.dll. -- Mike Kestner From mkestner@ximian.com Tue Mar 16 16:45:38 2004 From: mkestner@ximian.com (Mike Kestner) Date: Tue, 16 Mar 2004 10:45:38 -0600 Subject: [Gtk-sharp-list] event for window movement In-Reply-To: <1079290523.21427.6.camel@localhost.localdomain> References: <200403141805.i2EI5WRb010488@smtp.ucsd.edu> <1079289113.21427.1.camel@localhost.localdomain> <1079290523.21427.6.camel@localhost.localdomain> Message-ID: <1079455538.4247.73.camel@localhost.localdomain> On Sun, 2004-03-14 at 12:55, John Luke wrote: > mmarker let me know that this is apparently one of the situations where > Gdk is trapping the events and you need to use Gdk.EventMask. However, > I added that and it still doesn't work. Perhaps there is another > EventMask that I need or it is window manager dependent. I'll leave it > up to others to decide. > > new test attached bug report -- Mike Kestner From mkestner@ximian.com Tue Mar 16 16:49:20 2004 From: mkestner@ximian.com (Mike Kestner) Date: Tue, 16 Mar 2004 10:49:20 -0600 Subject: [Gtk-sharp-list] GLib.Idle.Add and parameters In-Reply-To: <1079259001.26336.7.camel@shakespeare> References: <1079259001.26336.7.camel@shakespeare> Message-ID: <1079455760.4247.78.camel@localhost.localdomain> On Sun, 2004-03-14 at 04:10, Iain McCoy wrote: > But in gtk#, public static uint Add (IdleHandler hndlr) - nowhere for a > parameter to go. IdleHandler doesn't take any arguments. That's because all you need to do is attach a delegate wrapping an instance method and you have access to all the instance data of your object. -- Mike Kestner From mkestner@ximian.com Tue Mar 16 16:50:46 2004 From: mkestner@ximian.com (Mike Kestner) Date: Tue, 16 Mar 2004 10:50:46 -0600 Subject: [Gtk-sharp-list] RequestSize seems to be broken In-Reply-To: <1079282961.4369.115.camel@erandi.boston.ximian.com> References: <1079170540.2400.1.camel@164-99-120-56.boston.ximian.com> <1079198043.4247.28.camel@localhost.localdomain> <1079282961.4369.115.camel@erandi.boston.ximian.com> Message-ID: <1079455846.4247.80.camel@localhost.localdomain> On Sun, 2004-03-14 at 10:49, Miguel de Icaza wrote: > I think we should add a Gdk.Size structure that we can use as a > convenience routine, as well as putting various overloads in > Gdk.Rectangle and Gdk.Point to match the features found in System.Drawing. I'm all for this, BTW, if anyone has the inclination to hack on it. -- Mike Kestner From mkestner@ximian.com Tue Mar 16 17:09:57 2004 From: mkestner@ximian.com (Mike Kestner) Date: Tue, 16 Mar 2004 11:09:57 -0600 Subject: [Gtk-sharp-list] Inheriting a Gtk.Widget In-Reply-To: References: Message-ID: <1079456997.4247.82.camel@localhost.localdomain> On Tue, 2004-03-09 at 06:23, Ecmel Ercan wrote: > But, now I can not pass the GType to the base class and the inherited > class is not a real Gtk.Widget (e.g. virtual methods can not be overriden) > > What is the correct way to do this? That's a bug. Please file a report. -- Mike Kestner From oachler@ucsd.edu Tue Mar 16 18:14:30 2004 From: oachler@ucsd.edu (Ofer Achler) Date: Tue, 16 Mar 2004 10:14:30 -0800 Subject: [Gtk-sharp-list] event for window movement In-Reply-To: <1079455538.4247.73.camel@localhost.localdomain> Message-ID: <200403161814.i2GIEcRb020052@smtp.ucsd.edu> I submitted one: http://bugzilla.ximian.com/show_bug.cgi?id=55669 I also pasted John Luke's code, I hope you don't mind! =) -----Original Message----- From: gtk-sharp-list-admin@lists.ximian.com [mailto:gtk-sharp-list-admin@lists.ximian.com] On Behalf Of Mike Kestner Sent: Tuesday, March 16, 2004 8:46 AM To: John Luke Cc: Ofer Achler; gtk-sharp-list@lists.ximian.com Subject: Re: [Gtk-sharp-list] event for window movement On Sun, 2004-03-14 at 12:55, John Luke wrote: > mmarker let me know that this is apparently one of the situations where > Gdk is trapping the events and you need to use Gdk.EventMask. However, > I added that and it still doesn't work. Perhaps there is another > EventMask that I need or it is window manager dependent. I'll leave it > up to others to decide. > > new test attached bug report -- Mike Kestner _______________________________________________ Gtk-sharp-list maillist - Gtk-sharp-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/gtk-sharp-list From met@uberstats.com Tue Mar 16 18:54:03 2004 From: met@uberstats.com (Met) Date: Tue, 16 Mar 2004 13:54:03 -0500 Subject: [Gtk-sharp-list] GtkHTML on Windows In-Reply-To: <1079454814.4247.70.camel@localhost.localdomain> References: <1079435610.4056e15af026c@webmail.benjaminwootton.co.uk> <1079454814.4247.70.camel@localhost.localdomain> Message-ID: <1079463243.3367.14.camel@rasmus> Hello, On Tue, 2004-03-16 at 11:33, Mike Kestner wrote: > On Tue, 2004-03-16 at 05:13, ben@benjaminwootton.co.uk wrote: > > I've built a gtk# app that uses gtkhtml. I'm trying to run this on Windows. > > I've installed Mono and GTK# but see the following error. Presumably the gtk\ > > package comes with all of the gtk dependencies? If not does anyone know where > > I can get the gtkhtml dll? I started trying to build it from source, but there > > are so many chained gnome dependencies that I don't think im doing the right > > thing. > > No, you are on the right track. The problem is that GtkHtml is a gnome > widget, depending on numerous gnome technologies. In order to use it on > win32, you are going to have to provide much of the native gnome library > stack. > > If you want linux/win32 portability right now, the easiest choice is to > stick with the widgets from gtk-sharp.dll. You could try using gtkmozembed-sharp from Mono's CVS instead of GtkHtml. ~ Matthew From crichton@gimp.org Tue Mar 16 19:04:45 2004 From: crichton@gimp.org (Mark Crichton) Date: Tue, 16 Mar 2004 14:04:45 -0500 Subject: [Gtk-sharp-list] GtkHTML on Windows In-Reply-To: <1079463243.3367.14.camel@rasmus> References: <1079435610.4056e15af026c@webmail.benjaminwootton.co.uk> <1079454814.4247.70.camel@localhost.localdomain> <1079463243.3367.14.camel@rasmus> Message-ID: <40574FCD.3040000@gimp.org> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Met wrote: | |You could try using gtkmozembed-sharp from Mono's CVS instead of |GtkHtml. | Nope. GtkEmbedMoz doesn't work on Win32. Mark -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (MingW32) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFAV0/NOfj2Ja/u/oARAq7TAJ9RKpZO7u+y4dErV0sn4Q8MkEx84wCgkkr9 qGfdMnNasnGe1zFVYErAlaM= =MTtw -----END PGP SIGNATURE----- From met@uberstats.com Tue Mar 16 19:16:32 2004 From: met@uberstats.com (Met) Date: Tue, 16 Mar 2004 14:16:32 -0500 Subject: [Gtk-sharp-list] GtkHTML on Windows In-Reply-To: <40574FCD.3040000@gimp.org> References: <1079435610.4056e15af026c@webmail.benjaminwootton.co.uk> <1079454814.4247.70.camel@localhost.localdomain> <1079463243.3367.14.camel@rasmus> <40574FCD.3040000@gimp.org> Message-ID: <1079464592.3367.17.camel@rasmus> Hello On Tue, 2004-03-16 at 14:04, Mark Crichton wrote: > Met wrote: > > | > |You could try using gtkmozembed-sharp from Mono's CVS instead of > |GtkHtml. > | > Nope. GtkEmbedMoz doesn't work on Win32. > > Mark Then is there a way to have an HTML viewer work on both *nix and Windows without separating the code base? From ben@benjaminwootton.co.uk Wed Mar 17 01:54:21 2004 From: ben@benjaminwootton.co.uk (ben@benjaminwootton.co.uk) Date: Wed, 17 Mar 2004 01:54:21 +0000 Subject: [Gtk-sharp-list] GtkHTML on Windows In-Reply-To: <1079464592.3367.17.camel@rasmus> References: <1079435610.4056e15af026c@webmail.benjaminwootton.co.uk> <1079454814.4247.70.camel@localhost.localdomain> <1079463243.3367.14.camel@rasmus> <40574FCD.3040000@gimp.org> <1079464592.3367.17.camel@rasmus> Message-ID: <1079488461.4057afcdeef03@webmail.benjaminwootton.co.uk> Thanks for suggestions guys. i decided to move back to Linux, but am now facing a new problem that I cant figure out. Is glibsharpglue a new dependency - I cant find any word of it on google. Unhandled Exception: System.DllNotFoundException: glibsharpglue in <0x00053> (wrapper managed-to-native) GtkSharp.ObjectManager:gtksharp_get_type_name (intptr) in <0x00063> GtkSharp.ObjectManager:CreateObject (intptr) in <0x000fc> GLib.Object:GetObject (intptr,bool) in <0x00010> GLib.Object:GetObject (intptr) in <0x00071> Glade.XML:GetWidget (string) in <0x001ad> Glade.XML:BindFields (object,System.Type) in <0x0001a> Glade.XML:BindFields (object) in <0x0001c> Glade.XML:Autoconnect (object) Ben Quoting Met : > Hello > > On Tue, 2004-03-16 at 14:04, Mark Crichton wrote: > > Met wrote: > > > > | > > |You could try using gtkmozembed-sharp from Mono's CVS instead of > > |GtkHtml. > > | > > Nope. GtkEmbedMoz doesn't work on Win32. > > > > Mark > > Then is there a way to have an HTML viewer work on both *nix and Windows > without separating the code base? > > _______________________________________________ > Gtk-sharp-list maillist - Gtk-sharp-list@lists.ximian.com > http://lists.ximian.com/mailman/listinfo/gtk-sharp-list > From yummyfiddlehead@yahoo.com Wed Mar 17 07:31:06 2004 From: yummyfiddlehead@yahoo.com (Alex Combas) Date: Tue, 16 Mar 2004 23:31:06 -0800 (PST) Subject: [Gtk-sharp-list] Accel*cs question Message-ID: <20040317073106.27663.qmail@web20722.mail.yahoo.com> I sent a patch in a couple days ago for the Accel.xml file, basically just migrated the Gtk+ api doc over, no fancy-pants examples or anything really astounding. But I noticed that Some of the Accel*cs stuff seems a little mixed up and I was wondering if someone here could explain why. First I noticed that not all of the Accel*cs files are in the Gtk.Accel class, some of them are just directly in "Gtk" namespace. Also some of the Accel*cs files only contain a single method, that seems a bit strange too. And it appears that the xml files for those pages don't get rendered properly. What should we do about this. Im happy to finish moving the Gtk+ api docs over for the Accel stuff and then writting an example and then moving on to other areas that need the api docs moved over but I would like to know what the deal is with the Accel stuff first if thats possible. Thanks, Alex Combas "sabmoc"@irc.gnome.org#mono __________________________________ Do you Yahoo!? Yahoo! Mail - More reliable, more storage, less spam http://mail.yahoo.com From yindong.yu@louisville.edu Wed Mar 17 08:25:52 2004 From: yindong.yu@louisville.edu (Yindong Yu) Date: Wed, 17 Mar 2004 03:25:52 -0500 Subject: [Gtk-sharp-list] Gnome.CanvasRichText renders some strings in weird order? Message-ID: Hi, I was unable to find a gnome-sharp list so I decided to post here. I found some weird problems when using Gnome.CanvasRichText in one of my applications. If I set the "Text" property of the CanvasRichText object to any string consisting totally of non-leter symbol, it will be rendered in a strange reverse order. To demonstrate the phenomena, here are what I get on the canvas from a couple of different strings I tried: "asdf" -> "asdf" (letter-string rendered correctly) "(((" -> ")))" (flipped?) "(((abc" -> "(((abc" (adding letters fixes it) "(1+2(" -> ")1+2)" (only flips the parenthesis?) "(1+2x(" -> "(1+2x(" (adding letters fixes that, too) "123!@#$%^&" -> "&^%$#@!123)" (symbols are outputted reversed) "!@#123" -> "#123@!" (??! why does the # go to the beginning?) The left side is just a few strings that I assigned at runtime to the Text property of a CanvasRichText object. The strings to the right side of "->" above were the resulting output shown on the canvas. I never did any string manipulation myself in the program. Is this a bug in CanvasRichText widget? Yindong Yu From leoric@online.no Tue Mar 16 23:30:58 2004 From: leoric@online.no (leoric) Date: Wed, 17 Mar 2004 00:30:58 +0100 Subject: [Gtk-sharp-list] button in a TreeView Message-ID: <405CF263@epostleser.online.no> Hi Is it possible to add widgets (buttons) to a TreeView Cell? I have this crazy IU Idea that I want to try out, but I cant find out if its really possible in gtk#. mvh Sverre Johansen From yummyfiddlehead@yahoo.com Wed Mar 17 18:17:55 2004 From: yummyfiddlehead@yahoo.com (Alex Combas) Date: Wed, 17 Mar 2004 10:17:55 -0800 (PST) Subject: [Gtk-sharp-list] Java, Mono, or C++.. by HP Message-ID: <20040317181755.62575.qmail@web20724.mail.yahoo.com> Hello, As no doubt some of us have already read: Havoc just released an article[1] describing the important decision that Opensource is facing of what Managed World(tm) we will all adopt. In doing so he gave Mono a real black eye and I think we need to stand up and defend ourselves or risk loosing a lot. It is sad for me to see that the discussion got off to such a bad start, but Im sure that Havoc was only trying to be realistic. But still, it is sad to see that he says he is attempting to open the lines of discussion and then promptly bashes everything except gcj and classpath. We need to start advocating our platform, we need to start voicing ourselves. A lot is at stake here. We _must_ act. Personally, I think Havoc was taking a very black/white approach to things. But why does the GNOME core really need to be mutually exclusive when viewing gcj or Mono? Isnt there room for both? doesn't opensource thrive due to it's genetic diversity. I understand the argument he makes, and I realize that integrating both gcj and Mono would be more than twice as much work as implementing either one alone. However by finding a way to integrate both Worlds(tm) we would not only be safer (by not putting all our eggs in one basket) but also more advanced. Ok, so now it sounds like I have no idea what Im talking about (and probably dont :P) because implementing both systems is impossible, right? Yes, as things stand currently I admint it would be hard to impossible. < uninformed_and_idealistic_rant > We would need to get _everyone_ onboard and re-engineer the entire desktop into a truely component based system (this should be done regardless of which Managed World(tm) ends up being integrated). If the entire platform were truely and completely component based then I think there would be room for both Managed Worlds(tm) and developers could choose to target which ever they feel more comfortable with. Win, win. Further more, Havoc sites the problem of a possible fork if Mono is chosen and sites the legal limbo quagmire that we are currently wallowing in as the reason for it. How is that legal review coming? Do we have a time line? And finally, I think that if a fork were to take place (by Novel choosing to go it alone and integrate Mono into the core of its Ximian Desktop) that we would survive the storm and eventually we would prevail. I think Mono has the critical mass needed in order to weather a fork-storm, although I really hope we dont need to fork. Please, please, please, please do not sit idly by and watch as a Mono based desktop is yanked out of our reach. We need action. Lots of it. Alex Combas "sabmoc"@irc.gnome.org#mono [1]http://ometer.com/desktop-language.html __________________________________ Do you Yahoo!? Yahoo! Mail - More reliable, more storage, less spam http://mail.yahoo.com From mkestner@ximian.com Wed Mar 17 22:35:33 2004 From: mkestner@ximian.com (Mike Kestner) Date: Wed, 17 Mar 2004 16:35:33 -0600 Subject: [Gtk-sharp-list] GtkHTML on Windows In-Reply-To: <1079488461.4057afcdeef03@webmail.benjaminwootton.co.uk> References: <1079435610.4056e15af026c@webmail.benjaminwootton.co.uk> <1079454814.4247.70.camel@localhost.localdomain> <1079463243.3367.14.camel@rasmus> <40574FCD.3040000@gimp.org> <1079464592.3367.17.camel@rasmus> <1079488461.4057afcdeef03@webmail.benjaminwootton.co.uk> Message-ID: <1079562933.4247.86.camel@localhost.localdomain> On Tue, 2004-03-16 at 19:54, ben@benjaminwootton.co.uk wrote: > Thanks for suggestions guys. i decided to move back to Linux, but am now > facing a new problem that I cant figure out. Is glibsharpglue a new > dependency - I cant find any word of it on google. There are glue libraries now built at the assembly level instead of having one all-encompassing glue library. So you will have to "install" the new glue libraries from the glib/glue, gdk/glue, gtk/glue, and glade/glue directories in order to resolve this error. -- Mike Kestner From mkestner@ximian.com Wed Mar 17 22:44:30 2004 From: mkestner@ximian.com (Mike Kestner) Date: Wed, 17 Mar 2004 16:44:30 -0600 Subject: [Gtk-sharp-list] Accel*cs question In-Reply-To: <20040317073106.27663.qmail@web20722.mail.yahoo.com> References: <20040317073106.27663.qmail@web20722.mail.yahoo.com> Message-ID: <1079563469.4247.95.camel@localhost.localdomain> On Wed, 2004-03-17 at 01:31, Alex Combas wrote: > I sent a patch in a couple days ago for the Accel.xml > file, basically just migrated the Gtk+ api doc over, > no fancy-pants examples or anything really astounding. > > But I noticed that Some of the Accel*cs stuff seems a > little mixed up and I was wondering if someone here > could explain why. If you want to review this and make a proposal as to how it should look, that would be great. I'm not sure I understand what your issue is from the information you've provided so far. If we need to move some methods around, we can do that with metadata. The important thing is to determine what it should look like, and then file a bug documenting your research. -- Mike Kestner From mkestner@ximian.com Wed Mar 17 22:51:16 2004 From: mkestner@ximian.com (Mike Kestner) Date: Wed, 17 Mar 2004 16:51:16 -0600 Subject: [Gtk-sharp-list] Gnome.CanvasRichText renders some strings in weird order? In-Reply-To: References: Message-ID: <1079563876.4247.102.camel@localhost.localdomain> On Wed, 2004-03-17 at 02:25, Yindong Yu wrote: > Hi, I was unable to find a gnome-sharp list so I decided to post here. This is the right place. > The left side is just a few strings that I assigned at runtime to the > Text property of a CanvasRichText object. The strings to the right side > of "->" above were the resulting output shown on the canvas. I never > did any string manipulation myself in the program. Is this a bug in > CanvasRichText widget? Most likely. I doubt that it's caused by the binding. GnomeCanvasRichText is an unproven technology AFAICT. It was put into gnome-canvas for 2.0, but I don't believe anybody has ever used it. I played around with it myself a bit but gave up on it when I found scaling to be broken. -- Mike Kestner From dmitriyk@comcast.net Thu Mar 18 13:26:29 2004 From: dmitriyk@comcast.net (Dmitriy Kostyuchenko) Date: Thu, 18 Mar 2004 06:26:29 -0700 Subject: [Gtk-sharp-list] Compiling Gtk# 0.17 for PPC Message-ID: I've been using mono/Gtk# as my development environment on my Windows machine, but my primary programming computer is a PowerBook G4. I would love to get Gtk# working on it, and I know it's possible, but so far I'm not having much luck. I think I satisfied all of the required dependencies for Gtk# and some of the optional ones as well. configure tells me: Optional assemblies included in the build: * gnome-sharp.dll: no * glade-sharp.dll: yes * gda-sharp.dll: yes * gnomedb-sharp.dll: no * rsvg-sharp.dll: no * gtkhtml-sharp.dll: no * vte-sharp.dll: no But running 'sudo make' crashes with this error message: mcs --unsafe --target library \ -r ../glib/glib-sharp.dll -r ../pango/pango-sharp.dll \ -o atk-sharp.dll --recurse '*.cs' Compilation succeeded mono ../parser/gapi-fixup.exe --api=gdk-api.xml --metadata=Gdk.metadata && \ mono ../generator/gapi_codegen.exe --generate gdk-api.xml gdk-symbols.xml \ --include ../atk/atk-api.xml ../pango/pango-api.xml --outdir=generated --customdir=. \ --assembly-name=gdk-sharp && touch generated-stamp ** ERROR **: file mini-ppc.c: line 2273 (ppc_patch): should not be reached aborting... make[1]: *** [generated-stamp] Error 134 make: *** [binding] Error 1 Doesn't seem to be a standard dependency/DYLD_LIBRARY_PATH issue most people are having. Does anyone know what could be causing this error? Does anyone, who has compiled Gtk# on MacOS X, have any suggestions for me? Thanks. -D From hemants22@yahoo.com Thu Mar 18 17:08:38 2004 From: hemants22@yahoo.com (Hemant Singh) Date: Thu, 18 Mar 2004 09:08:38 -0800 (PST) Subject: [Gtk-sharp-list] GTK+ Mouse/Key binding docs of widgets Message-ID: <20040318170838.44573.qmail@web40511.mail.yahoo.com> --0-1878866173-1079629718=:43557 Content-Type: text/plain; charset=us-ascii Folks, >From long time I have been hunting for GTK's standard document for Mouse and key bindings for each GTK widget. Anyone can pass this luck here? --Hemant Do you Yahoo!? Yahoo! Mail - More reliable, more storage, less spam --0-1878866173-1079629718=:43557 Content-Type: text/html; charset=us-ascii
Folks,
From long time I have been hunting for GTK's standard document for Mouse and key bindings for each GTK widget.
Anyone can pass this luck here?
 
--Hemant 

Do you Yahoo!?
Yahoo! Mail - More reliable, more storage, less spam --0-1878866173-1079629718=:43557-- From mkestner@ximian.com Thu Mar 18 17:37:33 2004 From: mkestner@ximian.com (Mike Kestner) Date: Thu, 18 Mar 2004 11:37:33 -0600 Subject: [Gtk-sharp-list] Compiling Gtk# 0.17 for PPC In-Reply-To: References: Message-ID: <1079631453.4247.108.camel@localhost.localdomain> On Thu, 2004-03-18 at 07:26, Dmitriy Kostyuchenko wrote: > I've been using mono/Gtk# as my development environment on my Windows > machine, but my primary programming computer is a PowerBook G4. I > would love to get Gtk# working on it, and I know it's possible, but so > far I'm not having much luck. To my knowledge, it is not possible to use the ppc jit with Gtk# yet. The abort you are seeing is coming out of the jit, and is not a Gtk# bug. You may want to report your error to bugzilla under the mono/runtime module. Supposedly, people have gotten Gtk# to build on ppc using mint, and there is a patch in cvs that allows this. I'm not sure how useful that would be though, as most likely Gtk# running under mint is going to be painfully slow. -- Mike Kestner From ximian.com@danandcheryl.com Thu Mar 18 17:35:17 2004 From: ximian.com@danandcheryl.com (Dan Reese) Date: Thu, 18 Mar 2004 10:35:17 -0700 Subject: [Gtk-sharp-list] Java, Mono, or C++.. by HP Message-ID: <1079631317.2036.182917250@webmail.messagingengine.com> Hi, My first post to the list. Having read the article, his concerns with Mono seem to be unrelated to any technical issues. 1) "Many interesting class libraries are clearly encumbered by Microsoft IP and nobody concerned about legal liability will want to ship them. The core may also be encumbered, though that remains uncertain." 2) "Aside from IP issues, Microsoft controls the .NET platform." and "...no momentum or standards body exists to drive it to completion in an open manner." I assume that Novell is working through all the legal issues. The other issue is a valid one. Perhaps Mono should make their own submission to ECMA -- alternate APIs to the non-ECMA APIs Microsoft kept to themselves. It would be funny if Mono's alternate APIs were accepted as part of the standard, and Microsoft found themselves out-of-compliance with their own platform. :-) It could be problematic if it turns out that ECMA isn't will to work with anyone except Microsoft. --Dan > http://ometer.com/desktop-language.html From Rdiniz@brasilcap.com.br Thu Mar 18 18:19:44 2004 From: Rdiniz@brasilcap.com.br (Rodrigo do Valle Chagas Diniz) Date: Thu, 18 Mar 2004 15:19:44 -0300 Subject: [Gtk-sharp-list] GTK Message-ID: <27B6A7BA0371064BA7BD0D0513B35799107071@capmail01.brasilcap.com.br> This is a multi-part message in MIME format. ------_=_NextPart_001_01C40D15.96A7B795 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi Everyone... How do I make a Entry only diplay "*" when the user types , like a = Password input??? I designed the interface using Glade. Is there a property or Method to = do that?? =20 Thanks in advance =20 ------_=_NextPart_001_01C40D15.96A7B795 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable

Hi=20 Everyone...
How do = I make a=20 Entry only diplay "*" when the user types , like a Password=20 input???
I = designed the=20 interface using Glade. Is there a property or Method to do=20 that??
 
Thanks = in=20 advance
 
------_=_NextPart_001_01C40D15.96A7B795-- From jeremy@olicomp.com Thu Mar 18 18:41:17 2004 From: jeremy@olicomp.com (Jeremy Wells) Date: Thu, 18 Mar 2004 18:41:17 +0000 Subject: [Gtk-sharp-list] TreeView select multple rows Message-ID: <1079635277.1449.44.camel@localhost> How can i set a treeview so that you can select multiple items? From richard.torkar@htu.se Thu Mar 18 18:52:22 2004 From: richard.torkar@htu.se (Richard Torkar) Date: Thu, 18 Mar 2004 19:52:22 +0100 Subject: [Gtk-sharp-list] GTK In-Reply-To: <27B6A7BA0371064BA7BD0D0513B35799107071@capmail01.brasilcap.com.br> References: <27B6A7BA0371064BA7BD0D0513B35799107071@capmail01.brasilcap.com.br> Message-ID: <1079635942.6482.4.camel@localhost> On Thu, 2004-03-18 at 15:19 -0300, Rodrigo do Valle Chagas Diniz wrote: > Hi Everyone... > How do I make a Entry only diplay "*" when the user types , like a > Password input??? > I designed the interface using Glade. Is there a property or Method to > do that?? Look at the property: Gtk.Entry.Visibility /Richard From richard.torkar@htu.se Thu Mar 18 18:55:51 2004 From: richard.torkar@htu.se (Richard Torkar) Date: Thu, 18 Mar 2004 19:55:51 +0100 Subject: [Gtk-sharp-list] GTK In-Reply-To: <1079635942.6482.4.camel@localhost> References: <27B6A7BA0371064BA7BD0D0513B35799107071@capmail01.brasilcap.com.br> <1079635942.6482.4.camel@localhost> Message-ID: <1079636151.6470.6.camel@localhost> On Thu, 2004-03-18 at 19:52 +0100, Richard Torkar wrote: > On Thu, 2004-03-18 at 15:19 -0300, Rodrigo do Valle Chagas Diniz wrote: > > > Hi Everyone... > > How do I make a Entry only diplay "*" when the user types , like a > > Password input??? > > I designed the interface using Glade. Is there a property or Method to > > do that?? > > Look at the property: > Gtk.Entry.Visibility BTW Mike, can't we give it a more sane name e.g. Gtk.Entry.PasswdField or something similar? /Richard From moritz.angermann@gmx.net Thu Mar 18 23:54:08 2004 From: moritz.angermann@gmx.net (Moritz Angermann) Date: Fri, 19 Mar 2004 00:54:08 +0100 Subject: [Gtk-sharp-list] GTK In-Reply-To: <1079636151.6470.6.camel@localhost> References: <27B6A7BA0371064BA7BD0D0513B35799107071@capmail01.brasilcap.com.br> <1079635942.6482.4.camel@localhost> <1079636151.6470.6.camel@localhost> Message-ID: <1079654048.18187.16.camel@localhost> Why doing that at all? these are properties from glade. IMHO I think we should try to focus primary on glade. And not write a huge amount of GUI code by hand. That just cuts flexibility in a great way. Use glade and set the properties correctly. Done. k.reg. -mo On Thu, 2004-03-18 at 19:55, Richard Torkar wrote: > On Thu, 2004-03-18 at 19:52 +0100, Richard Torkar wrote: > > > On Thu, 2004-03-18 at 15:19 -0300, Rodrigo do Valle Chagas Diniz wrote: > > > > > Hi Everyone... > > > How do I make a Entry only diplay "*" when the user types , like a > > > Password input??? > > > I designed the interface using Glade. Is there a property or Method to > > > do that?? > > > > Look at the property: > > Gtk.Entry.Visibility > > BTW Mike, can't we give it a more sane name e.g. Gtk.Entry.PasswdField > or something similar? > > /Richard > > _______________________________________________ > Gtk-sharp-list maillist - Gtk-sharp-list@lists.ximian.com > http://lists.ximian.com/mailman/listinfo/gtk-sharp-list -- ---------------- contact info ---------------- Moritz Angermann moritz.angermann@gmx.net Liquid:Mint www.liquidmint.org Mobile +49 (0) 160 9197 5880 Home +49 (0) 4322 75 12 66 From richard.torkar@htu.se Thu Mar 18 19:36:19 2004 From: richard.torkar@htu.se (Richard Torkar) Date: Thu, 18 Mar 2004 20:36:19 +0100 Subject: [Gtk-sharp-list] GTK In-Reply-To: <1079654048.18187.16.camel@localhost> References: <27B6A7BA0371064BA7BD0D0513B35799107071@capmail01.brasilcap.com.br> <1079635942.6482.4.camel@localhost> <1079636151.6470.6.camel@localhost> <1079654048.18187.16.camel@localhost> Message-ID: <1079638579.6470.19.camel@localhost> On Fri, 2004-03-19 at 00:54 +0100, Moritz Angermann wrote: > Why doing that at all? > these are properties from glade. > IMHO I think we should try to focus primary on glade. And not write a > huge amount of GUI code by hand. That just cuts flexibility in a great > way. You say "That just cuts flexibility[...]", what if people _want_ flexibility to code it by hand? You're assuming that all people do every GUI-related thing in glade? That's not flexibility, that's forcing people to do it in a certain way. Don't missunderstand me now. I use glade for almost everything I do, but I also like to go "into" the code and "fix" minor things sometimes. Having a _sane_ name on the property makes the code more readable. /Richard From oachler@ucsd.edu Thu Mar 18 19:42:08 2004 From: oachler@ucsd.edu (Ofer Achler) Date: Thu, 18 Mar 2004 11:42:08 -0800 Subject: [Gtk-sharp-list] GTK In-Reply-To: <1079638579.6470.19.camel@localhost> Message-ID: <200403181942.i2IJgFRb011706@smtp.ucsd.edu> I second that, I'm just learning to use gtk# and I already don't particularly like using glade within gtk#, I'm hand coding all gui at the moment. To each their own, which is why sane names for everything is important. -----Original Message----- From: gtk-sharp-list-admin@lists.ximian.com [mailto:gtk-sharp-list-admin@lists.ximian.com] On Behalf Of Richard Torkar Sent: Thursday, March 18, 2004 11:36 AM To: gtk-sharp-list@lists.ximian.com Subject: Re: [Gtk-sharp-list] GTK On Fri, 2004-03-19 at 00:54 +0100, Moritz Angermann wrote: > Why doing that at all? > these are properties from glade. > IMHO I think we should try to focus primary on glade. And not write a > huge amount of GUI code by hand. That just cuts flexibility in a great > way. You say "That just cuts flexibility[...]", what if people _want_ flexibility to code it by hand? You're assuming that all people do every GUI-related thing in glade? That's not flexibility, that's forcing people to do it in a certain way. Don't missunderstand me now. I use glade for almost everything I do, but I also like to go "into" the code and "fix" minor things sometimes. Having a _sane_ name on the property makes the code more readable. /Richard _______________________________________________ Gtk-sharp-list maillist - Gtk-sharp-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/gtk-sharp-list From moritz.angermann@gmx.net Fri Mar 19 00:15:21 2004 From: moritz.angermann@gmx.net (Moritz Angermann) Date: Fri, 19 Mar 2004 01:15:21 +0100 Subject: [Gtk-sharp-list] GTK In-Reply-To: <1079638579.6470.19.camel@localhost> References: <27B6A7BA0371064BA7BD0D0513B35799107071@capmail01.brasilcap.com.br> <1079635942.6482.4.camel@localhost> <1079636151.6470.6.camel@localhost> <1079654048.18187.16.camel@localhost> <1079638579.6470.19.camel@localhost> Message-ID: <1079655321.18189.25.camel@localhost> I did not mean to do _everything_ in glade. But stuff like setting the Visibility and Invisible Char in Glade is one thing. Generating e.g. columns for a TreeView or such is better done in the code. I also did not mean to force people to use glade. It was more intended to people who are undecided yet. I'm sorry if that sounded a little harsh. I do think that Glade+mono makes a damn good RAD environment. The flexibility was meant to address the *redesign the gui while keeping the signals constant. This can be done very easily with glade, wich was what was meant by flexibility. sorry, k.reg. -mo On Thu, 2004-03-18 at 20:36, Richard Torkar wrote: > On Fri, 2004-03-19 at 00:54 +0100, Moritz Angermann wrote: > > > Why doing that at all? > > these are properties from glade. > > IMHO I think we should try to focus primary on glade. And not write a > > huge amount of GUI code by hand. That just cuts flexibility in a great > > way. > > You say "That just cuts flexibility[...]", what if people _want_ > flexibility to code it by hand? You're assuming that all people do every > GUI-related thing in glade? That's not flexibility, that's forcing > people to do it in a certain way. > > Don't missunderstand me now. I use glade for almost everything I do, but > I also like to go "into" the code and "fix" minor things sometimes. > Having a _sane_ name on the property makes the code more readable. > > /Richard > > _______________________________________________ > Gtk-sharp-list maillist - Gtk-sharp-list@lists.ximian.com > http://lists.ximian.com/mailman/listinfo/gtk-sharp-list -- ---------------- contact info ---------------- Moritz Angermann moritz.angermann@gmx.net Liquid:Mint www.liquidmint.org Mobile +49 (0) 160 9197 5880 Home +49 (0) 4322 75 12 66 From james@ximian.com Fri Mar 19 01:42:36 2004 From: james@ximian.com (James Willcox) Date: Thu, 18 Mar 2004 20:42:36 -0500 Subject: [Gtk-sharp-list] patch for gtkhtml-3.1 Message-ID: <1079660555.24651.1.camel@sackbut> --=-FwK+ujaZrkcjeEzIdWSu Content-Type: text/plain Content-Transfer-Encoding: 7bit Hey, Here's a patch for configure.in to make it find gtkhtml-3.1 if you have that installed instead of gtkhtml-3.0. Ok to commit? Thanks, James --=-FwK+ujaZrkcjeEzIdWSu Content-Disposition: attachment; filename=gtksharp_jwillcox_gtkhtml31_v1.diff Content-Type: text/x-patch; name=gtksharp_jwillcox_gtkhtml31_v1.diff; charset=UTF-8 Content-Transfer-Encoding: 7bit Index: configure.in =================================================================== RCS file: /cvs/public/gtk-sharp/configure.in,v retrieving revision 1.49 diff -u -r1.49 configure.in --- configure.in 18 Mar 2004 20:56:32 -0000 1.49 +++ configure.in 19 Mar 2004 01:09:14 -0000 @@ -129,6 +129,11 @@ GTKHTML_REQUIRED_VERSION=3.0 PKG_CHECK_MODULES(GTKHTML_DEPENDENCIES, libgtkhtml-3.0 >= $GTKHTML_REQUIRED_VERSION, enable_gtkhtml=yes, enable_gtkhtml=no) + +if test "x$enable_gtkhtml" = "xno"; then + PKG_CHECK_MODULES(GTKHTML_DEPENDENCIES, libgtkhtml-3.1 >= $GTKHTML_REQUIRED_VERSION, enable_gtkhtml=yes, enable_gtkhtml=no) +fi + if test "x$enable_gtkhtml" = "xyes"; then BASE_DEPENDENCIES_CFLAGS="$BASE_DEPENDENCIES_CFLAGS $GTKHTML_DEPENDENCIES_CFLAGS" BASE_DEPENDENCIES_LIBS="$BASE_DEPENDENCIES_LIBS $GTKHTML_DEPENDENCIES_LIBS" --=-FwK+ujaZrkcjeEzIdWSu-- From james@ximian.com Fri Mar 19 02:07:47 2004 From: james@ximian.com (James Willcox) Date: Thu, 18 Mar 2004 21:07:47 -0500 Subject: [Gtk-sharp-list] patch for gtkhtml-3.1 In-Reply-To: <1079660555.24651.1.camel@sackbut> References: <1079660555.24651.1.camel@sackbut> Message-ID: <1079662066.24651.3.camel@sackbut> Ugh. Actually, ignore this....it doesn't seem to work any more. It fails at runtime trying to DllImport gtkhtml-3.0 (how did I ever have it working before?) James On Thu, 2004-03-18 at 20:42 -0500, James Willcox wrote: > Hey, > > Here's a patch for configure.in to make it find gtkhtml-3.1 if you have > that installed instead of gtkhtml-3.0. Ok to commit? > > Thanks, > James From mkestner@ximian.com Fri Mar 19 05:28:58 2004 From: mkestner@ximian.com (Mike Kestner) Date: Thu, 18 Mar 2004 23:28:58 -0600 Subject: [Gtk-sharp-list] patch for gtkhtml-3.1 In-Reply-To: <1079662066.24651.3.camel@sackbut> References: <1079660555.24651.1.camel@sackbut> <1079662066.24651.3.camel@sackbut> Message-ID: <1079674138.4247.128.camel@localhost.localdomain> On Thu, 2004-03-18 at 20:07, James Willcox wrote: > Ugh. Actually, ignore this....it doesn't seem to work any more. It > fails at runtime trying to DllImport gtkhtml-3.0 (how did I ever have it > working before?) Probably still had a gtkhtml-3.0 installed, since they are supposedly parallel installable. -- Mike Kestner From edasque@ximian.com Fri Mar 19 19:50:01 2004 From: edasque@ximian.com (Erik Dasque) Date: Fri, 19 Mar 2004 14:50:01 -0500 Subject: [Gtk-sharp-list] Trouble compiling GTK# on MacOS X In-Reply-To: <4CA81DDD-79C2-11D8-9C2F-000A95A87A28@comcast.net> References: <3C811F43-4ACC-11D8-97EA-000A95A848EE@ximian.com> <4CA81DDD-79C2-11D8-9C2F-000A95A87A28@comcast.net> Message-ID: <9BF6222C-79DE-11D8-A5C8-000A95A848EE@ximian.com> Oh, wow, that's old. Hmmm tough to remember. I think I had set a MONO_PATH which was making everything craping out. I got rid of that. I have EXPORTed: DYLIB_LIBRARY_PATH="/sw/lib:/usr/lib:/usr/local/lib" LD_LIBRARY_PATH="/sw/lib:/usr/lib:/usr/local/lib" PKG_CONFIG_PATH="/sw/lib/pkgconfig:/usr/local/lib/pkgconfig" and built mono with --with-gc=boehm Do you have the latest CVS of Mono, mcs and gtk-sharp ? Erik On Mar 19, 2004, at 11:27 AM, Dmitriy Kostyuchenko wrote: > Hey, I'm getting the same error message trying to compile Gtk# from > CVS on OS X. Judging by your recent screenshot posted on Monologue, > you got it working. Could you tell me what you did to get past it? > > Thanks. > > On Jan 19, 2004, at 3:10 PM, Erik Dasque wrote: > >> Hi all, >> >> has anyone recently been able to compile GTK# on MacOS X ? >> >> I reach the following when running autogen and can't seem to get past >> no matter what I try : >> >> checking for pkg-config... /usr/local/bin/pkg-config >> ./configure: line 18994: syntax error near unexpected token >> `MONO_DEPENDENCY,' >> ./configure: line 18994: `PKG_CHECK_MODULES(MONO_DEPENDENCY, mono)' >> >> Thanks in advance, >> >> Erik. >> >> >> > From edasque@ximian.com Fri Mar 19 20:00:02 2004 From: edasque@ximian.com (Erik Dasque) Date: Fri, 19 Mar 2004 15:00:02 -0500 Subject: [Gtk-sharp-list] Trouble compiling GTK# on MacOS X In-Reply-To: <9BF6222C-79DE-11D8-A5C8-000A95A848EE@ximian.com> References: <3C811F43-4ACC-11D8-97EA-000A95A848EE@ximian.com> <4CA81DDD-79C2-11D8-9C2F-000A95A87A28@comcast.net> <9BF6222C-79DE-11D8-A5C8-000A95A848EE@ximian.com> Message-ID: <0281475A-79E0-11D8-A5C8-000A95A848EE@ximian.com> Ah, sorry, I remember now. Use fink to get the autoconf, autobuild, pkg-config, libtool, ... Don't rely on things you've compiled yourself and installed in /usr/local For example, for me : ed$ which pkg-config /sw/bin/pkg-config same for the autotools, ... Erik On Mar 19, 2004, at 2:50 PM, Erik Dasque wrote: > Oh, wow, that's old. Hmmm tough to remember. > > I think I had set a MONO_PATH which was making everything craping out. > I got rid of that. > > I have EXPORTed: > > DYLIB_LIBRARY_PATH="/sw/lib:/usr/lib:/usr/local/lib" > LD_LIBRARY_PATH="/sw/lib:/usr/lib:/usr/local/lib" > PKG_CONFIG_PATH="/sw/lib/pkgconfig:/usr/local/lib/pkgconfig" > > and built mono with --with-gc=boehm > > Do you have the latest CVS of Mono, mcs and gtk-sharp ? > > Erik > > On Mar 19, 2004, at 11:27 AM, Dmitriy Kostyuchenko wrote: > >> Hey, I'm getting the same error message trying to compile Gtk# from >> CVS on OS X. Judging by your recent screenshot posted on Monologue, >> you got it working. Could you tell me what you did to get past it? >> >> Thanks. >> >> On Jan 19, 2004, at 3:10 PM, Erik Dasque wrote: >> >>> Hi all, >>> >>> has anyone recently been able to compile GTK# on MacOS X ? >>> >>> I reach the following when running autogen and can't seem to get >>> past no matter what I try : >>> >>> checking for pkg-config... /usr/local/bin/pkg-config >>> ./configure: line 18994: syntax error near unexpected token >>> `MONO_DEPENDENCY,' >>> ./configure: line 18994: `PKG_CHECK_MODULES(MONO_DEPENDENCY, mono)' >>> >>> Thanks in advance, >>> >>> Erik. >>> >>> >>> >> > > _______________________________________________ > Gtk-sharp-list maillist - Gtk-sharp-list@lists.ximian.com > http://lists.ximian.com/mailman/listinfo/gtk-sharp-list From mailing@harobed.org Sat Mar 20 10:55:50 2004 From: mailing@harobed.org (Harobed) Date: Sat, 20 Mar 2004 11:55:50 +0100 Subject: [Gtk-sharp-list] Trouble compiling : Command not found Message-ID: <1079780150.3638.12.camel@hiboux.harobed.org> Hi, I would like compile gtk-sharp cvs head. I've this error : cd . && autoheader make all-recursive make[1]: Entering directory `/home/mono/gtk-sharp' Making all in sources make[2]: Entering directory `/home/mono/gtk-sharp/sources' make[2]: Nothing to be done for `all'. make[2]: Leaving directory `/home/mono/gtk-sharp/sources' Making all in generator make[2]: Entering directory `/home/mono/gtk-sharp/generator' /usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games /out:gapi_codegen.exe ./AliasGen.cs ./BoxedGen.cs ./CallbackGen.cs ./ClassBase.cs ./ClassGen.cs ./CodeGenerator.cs ./ConstStringGen.cs ./Ctor.cs ./CustomMarshalerGen.cs ./EnumGen.cs ./Field.cs ./GenBase.cs ./GenerationInfo.cs ./IGeneratable.cs ./ImportSignature.cs ./InterfaceGen.cs ./ManagedCallString.cs ./ManualGen.cs ./MethodBody.cs ./Method.cs ./ObjectGen.cs ./OpaqueGen.cs ./Parameters.cs ./Parser.cs ./Property.cs ./Signal.cs ./SignalHandler.cs ./Signature.cs ./SimpleGen.cs ./Statistics.cs ./StringGen.cs ./StructBase.cs ./StructGen.cs ./SymbolTable.cs ./VMSignature.cs make[2]: /usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games: Command not found make[2]: *** [gapi_codegen.exe] Error 127 make[2]: Leaving directory `/home/mono/gtk-sharp/generator' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/mono/gtk-sharp' make: *** [all-recursive-am] Error 2 I don't understand why it call "/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games" with no executable file ? Thanks for you help. -- Stphane KLEIN Home page : http://www.harobed.org Jabber : harobed@myjabber.net From mailing@harobed.org Sat Mar 20 11:54:13 2004 From: mailing@harobed.org (Harobed) Date: Sat, 20 Mar 2004 12:54:13 +0100 Subject: [Gtk-sharp-list] Trouble compiling : Command not found In-Reply-To: <1079780150.3638.12.camel@hiboux.harobed.org> References: <1079780150.3638.12.camel@hiboux.harobed.org> Message-ID: <1079783653.3638.17.camel@hiboux.harobed.org> Le sam 20/03/2004 11:55, Harobed a crit : > Hi, > > I would like compile gtk-sharp cvs head. I've this error : > > cd . && autoheader > make all-recursive > make[1]: Entering directory `/home/mono/gtk-sharp' > Making all in sources > make[2]: Entering directory `/home/mono/gtk-sharp/sources' > make[2]: Nothing to be done for `all'. > make[2]: Leaving directory `/home/mono/gtk-sharp/sources' > Making all in generator > make[2]: Entering directory `/home/mono/gtk-sharp/generator' > /usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games /out:gapi_codegen.exe ./AliasGen.cs ./BoxedGen.cs ./CallbackGen.cs ./ClassBase.cs ./ClassGen.cs ./CodeGenerator.cs ./ConstStringGen.cs ./Ctor.cs ./CustomMarshalerGen.cs ./EnumGen.cs ./Field.cs ./GenBase.cs ./GenerationInfo.cs ./IGeneratable.cs ./ImportSignature.cs ./InterfaceGen.cs ./ManagedCallString.cs ./ManualGen.cs ./MethodBody.cs ./Method.cs ./ObjectGen.cs ./OpaqueGen.cs ./Parameters.cs ./Parser.cs ./Property.cs ./Signal.cs ./SignalHandler.cs ./Signature.cs ./SimpleGen.cs ./Statistics.cs ./StringGen.cs ./StructBase.cs ./StructGen.cs ./SymbolTable.cs ./VMSignature.cs > make[2]: /usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games: Command not found > make[2]: *** [gapi_codegen.exe] Error 127 > make[2]: Leaving directory `/home/mono/gtk-sharp/generator' > make[1]: *** [all-recursive] Error 1 > make[1]: Leaving directory `/home/mono/gtk-sharp' > make: *** [all-recursive-am] Error 2 > > I don't understand why it call > "/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games" with no > executable file ? > > Thanks for you help. In my Makefile I see that : CSC = /usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games It's not normal. I don't understand why I've this declaration ! -- Stphane KLEIN Home page : http://www.harobed.org Jabber : harobed@myjabber.net From jeremy@olicomp.com Sat Mar 20 14:54:08 2004 From: jeremy@olicomp.com (Jeremy Wells) Date: Sat, 20 Mar 2004 14:54:08 +0000 Subject: [Gtk-sharp-list] TreeView select multple rows In-Reply-To: <1079635277.1449.44.camel@localhost> References: <1079635277.1449.44.camel@localhost> Message-ID: <1079794448.3419.5.camel@localhost> On Thu, 2004-03-18 at 18:41, Jeremy Wells wrote: > How can i set a treeview so that you can select multiple items? > > _______________________________________________ > Gtk-sharp-list maillist - Gtk-sharp-list@lists.ximian.com > http://lists.ximian.com/mailman/listinfo/gtk-sharp-list ok so i found out how to do that, but my next question is how can I head off a mouse click causing a selection. When i select multiple items in my treeview and then right click for the context menu it deselects all the items except the one the mouse is over. I'd like it instead to keep the selection as it is when the right mouse button is clicked. Jeremy From gonzalo@ximian.com Sat Mar 20 18:26:55 2004 From: gonzalo@ximian.com (Gonzalo Paniagua Javier) Date: Sat, 20 Mar 2004 13:26:55 -0500 Subject: [Gtk-sharp-list] Trouble compiling : Command not found In-Reply-To: <1079783653.3638.17.camel@hiboux.harobed.org> References: <1079780150.3638.12.camel@hiboux.harobed.org> <1079783653.3638.17.camel@hiboux.harobed.org> Message-ID: <1079807215.1703.10.camel@lalo4.micasa> El sb, 20-03-2004 a las 06:54, Harobed escribi: > In my Makefile I see that : > > CSC = /usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games > > It's not normal. I don't understand why I've this declaration ! Probably mcs is not in your PATH when configure tries to find it. -Gonzalo From gonzalo@ximian.com Sat Mar 20 19:48:27 2004 From: gonzalo@ximian.com (Gonzalo Paniagua Javier) Date: Sat, 20 Mar 2004 14:48:27 -0500 Subject: [Gtk-sharp-list] Trouble compiling : Command not found In-Reply-To: <1079783653.3638.17.camel@hiboux.harobed.org> References: <1079780150.3638.12.camel@hiboux.harobed.org> <1079783653.3638.17.camel@hiboux.harobed.org> Message-ID: <1079812107.1409.18.camel@lalo4.micasa> --=-0bcTXRDRVVg1v5mG5wIH Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit El sb, 20-03-2004 a las 06:54, Harobed escribi: > Le sam 20/03/2004 11:55, Harobed a crit : > > Hi, > > > > I would like compile gtk-sharp cvs head. I've this error : > > > > cd . && autoheader > > make all-recursive > > make[1]: Entering directory `/home/mono/gtk-sharp' > > Making all in sources > > make[2]: Entering directory `/home/mono/gtk-sharp/sources' > > make[2]: Nothing to be done for `all'. > > make[2]: Leaving directory `/home/mono/gtk-sharp/sources' > > Making all in generator > > make[2]: Entering directory `/home/mono/gtk-sharp/generator' > > /usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games /out:gapi_codegen.exe ./AliasGen.cs ./BoxedGen.cs ./CallbackGen.cs ./ClassBase.cs ./ClassGen.cs ./CodeGenerator.cs ./ConstStringGen.cs ./Ctor.cs ./CustomMarshalerGen.cs ./EnumGen.cs ./Field.cs ./GenBase.cs ./GenerationInfo.cs ./IGeneratable.cs ./ImportSignature.cs ./InterfaceGen.cs ./ManagedCallString.cs ./ManualGen.cs ./MethodBody.cs ./Method.cs ./ObjectGen.cs ./OpaqueGen.cs ./Parameters.cs ./Parser.cs ./Property.cs ./Signal.cs ./SignalHandler.cs ./Signature.cs ./SimpleGen.cs ./Statistics.cs ./StringGen.cs ./StructBase.cs ./StructGen.cs ./SymbolTable.cs ./VMSignature.cs > > make[2]: /usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games: Command not found > > make[2]: *** [gapi_codegen.exe] Error 127 > > make[2]: Leaving directory `/home/mono/gtk-sharp/generator' > > make[1]: *** [all-recursive] Error 1 > > make[1]: Leaving directory `/home/mono/gtk-sharp' > > make: *** [all-recursive-am] Error 2 > > > > I don't understand why it call > > "/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games" with no > > executable file ? > > > > Thanks for you help. > > In my Makefile I see that : > > CSC = /usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games > > It's not normal. I don't understand why I've this declaration ! Okay, i know what happens. Review the output by configure, you'll see something like: ----- checking for mono... Package mono was not found in the pkg-config search path. Perhaps you should add the directory containing `mono.pc' to the PKG_CONFIG_PATH environment variable No package 'mono' found ---- Now apply the attached patch to configure.in. It will make configure fail saying: configure: error: You need to install either mono or .Net If you set the PATH/PKG_CONFIG_PATH properly so that mono.pc is found by pkg-config everything will work, but before applying this patch, configure doesn't flag the error. Mike, okay to apply the patch? -Gonzalo --=-0bcTXRDRVVg1v5mG5wIH Content-Disposition: attachment; filename=gtk-sharp.diff Content-Type: text/x-patch; name=gtk-sharp.diff; charset=iso-8859-1 Content-Transfer-Encoding: 7bit Index: configure.in =================================================================== RCS file: /cvs/public/gtk-sharp/configure.in,v retrieving revision 1.49 diff -u -r1.49 configure.in --- configure.in 18 Mar 2004 20:56:32 -0000 1.49 +++ configure.in 20 Mar 2004 19:11:43 -0000 @@ -60,20 +60,26 @@ if test "x$has_mono" = "xtrue"; then if test `uname -s` = "Darwin"; then - RUNTIME=`which mint` - CSC=`which mcs` + AC_PATH_PROG(RUNTIME, mint, no) + AC_PATH_PROG(CSC, mcs, no) else - RUNTIME=`which mono` - CSC=`which mcs` + AC_PATH_PROG(RUNTIME, mono, no) + AC_PATH_PROG(CSC, mcs, no) fi else -AC_PATH_PROG(CSC, csc.exe, $PATH) -if test x$CSC = ""; then +AC_PATH_PROG(CSC, csc.exe, no) +if test x$CSC = "xno"; then AC_MSG_ERROR([You need to install either mono or .Net]) else RUNTIME= fi fi + +CS="C#" +if test "x$CSC" = "xno" ; then + AC_MSG_ERROR([No $CS compiler found]) +fi + AC_SUBST(RUNTIME) AC_SUBST(CSC) @@ -203,6 +209,7 @@ echo "Configuration summary" echo "" echo " * Installation prefix = $prefix" +echo " * $CS compiler: $CSC" echo "" echo " Optional assemblies included in the build:" echo "" --=-0bcTXRDRVVg1v5mG5wIH-- From moritz.angermann@gmx.net Sat Mar 20 20:27:05 2004 From: moritz.angermann@gmx.net (Moritz Angermann) Date: Sat, 20 Mar 2004 21:27:05 +0100 Subject: [Gtk-sharp-list] gtk# FAQ 3.3 No ButtonPressEvent -- Glade# Message-ID: <1079814424.18187.59.camel@localhost> Hmm ... so I'm using glade to design the UI... and want to use my TreeView.OnButtonPressedEvent I can't ... so why is the... Is this going to be change din glade# to use the [GLib.ConnectBefore] by default. As Glade let's one specify if one wants the *after* way? just curious... kindest regards, -mo -- ---------------- contact info ---------------- Moritz Angermann moritz.angermann@gmx.net Liquid:Mint www.liquidmint.org Mobile +49 (0) 160 9197 5880 Home +49 (0) 4322 75 12 66 From mailing@harobed.org Sat Mar 20 20:29:59 2004 From: mailing@harobed.org (Harobed) Date: Sat, 20 Mar 2004 21:29:59 +0100 Subject: [Gtk-sharp-list] Trouble compiling : Command not found In-Reply-To: <1079812107.1409.18.camel@lalo4.micasa> References: <1079780150.3638.12.camel@hiboux.harobed.org> <1079783653.3638.17.camel@hiboux.harobed.org> <1079812107.1409.18.camel@lalo4.micasa> Message-ID: <1079814598.30925.17.camel@hiboux.harobed.org> Le sam 20/03/2004 20:48, Gonzalo Paniagua Javier a crit : > El sb, 20-03-2004 a las 06:54, Harobed escribi: > > Le sam 20/03/2004 11:55, Harobed a crit : > > > Hi, > > > > > > I would like compile gtk-sharp cvs head. I've this error : > > > > > > cd . && autoheader > > > make all-recursive > > > make[1]: Entering directory `/home/mono/gtk-sharp' > > > Making all in sources > > > make[2]: Entering directory `/home/mono/gtk-sharp/sources' > > > make[2]: Nothing to be done for `all'. > > > make[2]: Leaving directory `/home/mono/gtk-sharp/sources' > > > Making all in generator > > > make[2]: Entering directory `/home/mono/gtk-sharp/generator' > > > /usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games /out:gapi_codegen.exe ./AliasGen.cs ./BoxedGen.cs ./CallbackGen.cs ./ClassBase.cs ./ClassGen.cs ./CodeGenerator.cs ./ConstStringGen.cs ./Ctor.cs ./CustomMarshalerGen.cs ./EnumGen.cs ./Field.cs ./GenBase.cs ./GenerationInfo.cs ./IGeneratable.cs ./ImportSignature.cs ./InterfaceGen.cs ./ManagedCallString.cs ./ManualGen.cs ./MethodBody.cs ./Method.cs ./ObjectGen.cs ./OpaqueGen.cs ./Parameters.cs ./Parser.cs ./Property.cs ./Signal.cs ./SignalHandler.cs ./Signature.cs ./SimpleGen.cs ./Statistics.cs ./StringGen.cs ./StructBase.cs ./StructGen.cs ./SymbolTable.cs ./VMSignature.cs > > > make[2]: /usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games: Command not found > > > make[2]: *** [gapi_codegen.exe] Error 127 > > > make[2]: Leaving directory `/home/mono/gtk-sharp/generator' > > > make[1]: *** [all-recursive] Error 1 > > > make[1]: Leaving directory `/home/mono/gtk-sharp' > > > make: *** [all-recursive-am] Error 2 > > > > > > I don't understand why it call > > > "/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games" with no > > > executable file ? > > > > > > Thanks for you help. > > > > In my Makefile I see that : > > > > CSC = /usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games > > > > It's not normal. I don't understand why I've this declaration ! > > Okay, i know what happens. Review the output by configure, you'll see > something like: > ----- > checking for mono... Package mono was not found in the pkg-config search > path. > Perhaps you should add the directory containing `mono.pc' > to the PKG_CONFIG_PATH environment variable > No package 'mono' found > ---- > > Now apply the attached patch to configure.in. It will make configure > fail saying: > configure: error: You need to install either mono or .Net > > If you set the PATH/PKG_CONFIG_PATH properly so that mono.pc is found by > pkg-config everything will work, but before applying this patch, > configure doesn't flag the error. > > Mike, okay to apply the patch? > > -Gonzalo Thanks, it's that! Now, compilation success :) -- Stphane KLEIN Home page : http://www.harobed.org Jabber : harobed@myjabber.net From mailing@harobed.org Sat Mar 20 20:55:47 2004 From: mailing@harobed.org (Harobed) Date: Sat, 20 Mar 2004 21:55:47 +0100 Subject: [Gtk-sharp-list] Error when compile gtksourceview-sharp Message-ID: <1079816147.30925.22.camel@hiboux.harobed.org> Hi, I don't know if this list is the good list to speak about gtksourceview. When I compile gtksourceview-shap I've got this error : /usr/bin/mcs --unsafe --target library -r atk-sharp.dll -r gdk-sharp.dll -r glib-sharp.dll -r gtk-sharp.dll -r gnome-sharp.dll -r pango-sharp.dll \ generated/*.cs ./GtkSourceView.cs -o gtksourceview-sharp.dll generated/SourceBuffer.cs(399) error CS0102: The container `Gtk.SourceBuffer' already contains a definition for `CanRedo' generated/SourceBuffer.cs(464) error CS0102: The container `Gtk.SourceBuffer' already contains a definition for `CanUndo' generated/SourceUndoManager.cs(189) error CS0102: The container `Gtk.SourceUndoManager' already contains a definition for `CanRedo' generated/SourceUndoManager.cs(222) error CS0102: The container `Gtk.SourceUndoManager' already contains a definition for `CanUndo' Compilation failed: 4 error(s), 0 warnings make[1]: *** [gtksourceview-sharp.dll] Erreur 1 The version of gtksourceview is cvs head. Error is in source code ? Or is it my compilation only ? -- Stphane KLEIN Home page : http://www.harobed.org Jabber : harobed@myjabber.net From ivan.guzvinec@telemach.net Sun Mar 21 14:07:09 2004 From: ivan.guzvinec@telemach.net (Ivan =?iso-8859-2?Q?Gu=BEvinec?=) Date: Sun, 21 Mar 2004 15:07:09 +0100 Subject: [Gtk-sharp-list] Trouble with DrawingArea.MotionNotifyEvent. Message-ID: <1079878029.3607.10.camel@AI.house-of-ix.org> --=-nhiFd8fvzo4ClY4PYEjX Content-Type: multipart/mixed; boundary="=-5CsB70Y0Sr06VxODBRn/" --=-5CsB70Y0Sr06VxODBRn/ Content-Type: multipart/alternative; boundary="=-NMeGLVdeEPkGGtYWW3xZ" --=-NMeGLVdeEPkGGtYWW3xZ Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Hi, I'm having trouble with MotionNotifyEvent in my derived Window class. I would like to create a DrawingArea widget, add it to self (this) and then catch its MotionNotifyEvent(s). So far I only get exactly one MotionNotifyEvent when (1) mouse Enters the window area or (2) when I press mouse buttons and then move the mouse inside the DrawingArea. But when I simply move the mouse inside the DrawingArea, no MotionNotifyEvents are fired. Perhaps I'm doing things the wrong way, so any hint/help would be greatly appreciated. I've made a simple test program to demonstrate this. Please find the attached "CreatedWindow.cs", compile with "mcs -r gtk-sharp.dll -r gdk-sharp.dll -r glib-sharp.dll CreatedWindow.cs" thanks, Ivan --=-NMeGLVdeEPkGGtYWW3xZ Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi,

I'm having trouble with MotionNotifyEvent in my derived Window class. I wou= ld like to create a DrawingArea widget, add it to self (this) and then catc= h its MotionNotifyEvent(s). So far I only get exactly one MotionNotifyEvent= when (1) mouse Enters the window area or (2) when I press mouse buttons an= d then move the mouse inside the DrawingArea. But when I simply move the mo= use inside the DrawingArea, no MotionNotifyEvents are fired.

Perhaps I'm doing things the wrong way, so any hint/help would be greatly a= ppreciated.

I've made a simple test program to demonstrate this. Please find the attach= ed "CreatedWindow.cs", compile with "mcs -r gtk-sharp.dll -r= gdk-sharp.dll -r glib-sharp.dll CreatedWindow.cs"

thanks,
Ivan --=-NMeGLVdeEPkGGtYWW3xZ-- --=-5CsB70Y0Sr06VxODBRn/ Content-Disposition: attachment; filename=CreatedWindow.cs Content-Transfer-Encoding: base64 Content-Type: text/x-csharp; name=CreatedWindow.cs; charset= Ly8gY3JlYXRlZCBvbiAwMy8yMS8yMDA0IGF0IDE0OjQwDQp1c2luZyBTeXN0ZW07DQp1c2luZyBH dGs7DQp1c2luZyBHdGtTaGFycDsNCg0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lNob3dBbGwoKTsNCgkJDQoJCUFwcGxpY2F0aW9uLlJ1bigpOw0KCX0NCn0= --=-5CsB70Y0Sr06VxODBRn/-- --=-nhiFd8fvzo4ClY4PYEjX Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (GNU/Linux) iQCVAwUAQF2hjcj+Az87AOMpAQLO2QP/fAyhBdcT+a/QiydoAgHhSiDH+bmHFSvY p+cnCG8zIqoHdRLnaPPMmxbThmMul4Uhc4m0CsYIgRwoNV9MWbDVfly/ACyfvDNM Y3U0/IAbPqen7JxfuoeAbKbVYH3CcUwsNWJ9azclVLMbQU24zCVV26X8hQUMZ/7h UcFBnJm8ouo= =sVo+ -----END PGP SIGNATURE----- --=-nhiFd8fvzo4ClY4PYEjX-- From smoerk@gmx.de Sun Mar 21 14:19:02 2004 From: smoerk@gmx.de (smoerk) Date: Sun, 21 Mar 2004 15:19:02 +0100 Subject: [Gtk-sharp-list] wacom tablet / xinput Message-ID: <405DA456.4050603@gmx.de> hello, i'm new to the list, mono and gtk#. i hope this is not a stupid question: does anyone have an example how to access a wacom tablet over xinput? i couldn't find anything in the net. there is a place holder in gotmono's gtk# tutorial (22.4 Scribble -> Adding XInput), but it seems that nobody has written that chapter yet. http://www.gotmono.com/docs/gnome/bindings/gtk-sharp/gtk-sharp.html From oachler@ucsd.edu Sun Mar 21 16:33:47 2004 From: oachler@ucsd.edu (Ofer Achler) Date: Sun, 21 Mar 2004 08:33:47 -0800 Subject: [Gtk-sharp-list] Trouble with DrawingArea.MotionNotifyEvent. In-Reply-To: <1079878029.3607.10.camel@AI.house-of-ix.org> Message-ID: <200403211633.i2LGXtRb011041@smtp.ucsd.edu> This is a multi-part message in MIME format. ------=_NextPart_000_0074_01C40F1F.3B0431F0 Content-Type: text/plain; charset="iso-8859-2" Content-Transfer-Encoding: quoted-printable You can get the same effect by attaching to the expose event of the = parent window. =20 Good luck! =20 _____ =20 From: gtk-sharp-list-admin@lists.ximian.com [mailto:gtk-sharp-list-admin@lists.ximian.com] On Behalf Of Ivan = Gu=BEvinec Sent: Sunday, March 21, 2004 6:07 AM To: gtk-sharp-list@lists.ximian.com Subject: [Gtk-sharp-list] Trouble with DrawingArea.MotionNotifyEvent. =20 Hi, I'm having trouble with MotionNotifyEvent in my derived Window class. I would like to create a DrawingArea widget, add it to self (this) and = then catch its MotionNotifyEvent(s). So far I only get exactly one MotionNotifyEvent when (1) mouse Enters the window area or (2) when I = press mouse buttons and then move the mouse inside the DrawingArea. But when I simply move the mouse inside the DrawingArea, no MotionNotifyEvents are fired. Perhaps I'm doing things the wrong way, so any hint/help would be = greatly appreciated. I've made a simple test program to demonstrate this. Please find the attached "CreatedWindow.cs", compile with "mcs -r gtk-sharp.dll -r gdk-sharp.dll -r glib-sharp.dll CreatedWindow.cs" thanks, Ivan=20 ------=_NextPart_000_0074_01C40F1F.3B0431F0 Content-Type: text/html; charset="iso-8859-2" Content-Transfer-Encoding: quoted-printable

You can get the same effect by = attaching to the expose event of the parent window.

 

Good luck!

 


From: gtk-sharp-list-admin@lists.ximian.com [mailto:gtk-sharp-list-admin@lists.ximian.com] On Behalf Of Ivan Gu=BEvinec
Sent: Sunday, March 21, = 2004 6:07 AM
To: gtk-sharp-list@lists.ximian.com
Subject: [Gtk-sharp-list] = Trouble with DrawingArea.MotionNotifyEvent.

 

Hi,

I'm having trouble with MotionNotifyEvent in my derived Window class. I = would like to create a DrawingArea widget, add it to self (this) and then = catch its MotionNotifyEvent(s). So far I only get exactly one MotionNotifyEvent = when (1) mouse Enters the window area or (2) when I press mouse buttons and then = move the mouse inside the DrawingArea. But when I simply move the mouse = inside the DrawingArea, no MotionNotifyEvents are fired.

Perhaps I'm doing things the wrong way, so any hint/help would be = greatly appreciated.

I've made a simple test program to demonstrate this. Please find the = attached "CreatedWindow.cs", compile with "mcs -r gtk-sharp.dll -r gdk-sharp.dll -r glib-sharp.dll CreatedWindow.cs"

thanks,
Ivan

------=_NextPart_000_0074_01C40F1F.3B0431F0-- From felipemaya@manizales.com Sun Mar 21 17:44:33 2004 From: felipemaya@manizales.com (felipe maya) Date: Sun, 21 Mar 2004 11:44:33 -0600 Subject: [Gtk-sharp-list] pixbuf Message-ID: <200403211744.i2LHiXO23511@server1.enredese.net> Hello gtk-sharp friends. I have a problem runing Mono-0.31 and gtk-sharp-0.17 on Windows:

SystemNullReferenceException: Object Reference not set to an instance on an Object in (unmanaged) (Wraper managed-to-native) Gdk.pixbuf: gdk_pixbuf_new_from_file(string, intptr &) in <0x00004> (Wraper managed-to-native) Gdk.pixbuf: gdk_pixbuf_new_from_file(string, intptr &) in <0x00027> Gdk.pixbuf:.ctor(string) in <0x009f> main:.ctor()

I don't know what's happening because when I run the program on my machine with win2000 and on my friend's machine with winXP, this error don't succeded, but when I run my program in the work machine that has Novell software, the error crash runing. I don't feel that Novell software could be a cause, but what could be a problem?
Consigue tu correo GRATIS en Manizales.com,
dale vida a tus mensajes con más de 300 motivos grficos.
Busca el portal de tu ciudad en http://66.216.122.105

From jluke@users.sourceforge.net Sun Mar 21 19:16:38 2004 From: jluke@users.sourceforge.net (John Luke) Date: Sun, 21 Mar 2004 14:16:38 -0500 Subject: [Gtk-sharp-list] gstreamer update Message-ID: <1079896598.15787.15.camel@localhost.localdomain> Hello, I just wanted to follow up with these two things, as I had previously said I would be doing. gstreamer-0.8 is now released but it no longer makes it through the parser cleanly whereas 0.7.6 did. Also, my previous patch that fixed it to parse no longer works. So it may be some time before I delve into finding what is causing this or use any of Mike's time to fix something that keeps changing so we can't parse it effectively. If anyone else wants this they should start with getting it to parse, and then maybe I will resume getting it to generate right, which I was pretty close with 0.7.6. From firefly@fssc.demon.co.uk Sun Mar 21 03:14:01 2004 From: firefly@fssc.demon.co.uk (Herbert M Sauro) Date: Sat, 20 Mar 2004 19:14:01 -0800 Subject: [Gtk-sharp-list] Windows gtk# Help Message-ID: Could someone describe to me their setup for gtk# under Windows. I've got Mono 0.31 and gtk# 0.17 installed. Also I've installed GTK 2.0. All I am trying to do is to get the following simple application to run: using Gtk; using GtkSharp; using System; class Hello { static void Main() { Application.Init (); Window window = new Window ("helloworld"); window.Show(); Application.Run (); } } It compiles ok but when I run it I get the following exception: Unhandled Exception: System.DllNotFoundException: libgtk-win32-2.0-0.dll in <0x0004a> (wrapper managed-to-native) Gtk.Application:gtk_init (int&,intptr&) in <0x00027> Gtk.Application:Init () in <0x0000e> Hello:Main () I presume I run the program by typing mono app.exe ?? I've even copied the offending dll (libgtk-win32-2.0-0.dll) to the same directory as Main.exe and it still can't find it. I've search google and these lists for clues but I'm stumped. Herbert Sauro From jas_lists@gmx.net Sun Mar 21 20:51:31 2004 From: jas_lists@gmx.net (Jasper van Putten) Date: Sun, 21 Mar 2004 21:51:31 +0100 Subject: [Gtk-sharp-list] Windows gtk# Help In-Reply-To: References: Message-ID: <405E0053.5090509@gmx.net> Herbert M Sauro wrote: >It compiles ok but when I run it I get the following exception: > >Unhandled Exception: System.DllNotFoundException: libgtk-win32-2.0-0.dll >in <0x0004a> (wrapper managed-to-native) Gtk.Application:gtk_init >(int&,intptr&) >in <0x00027> Gtk.Application:Init () >in <0x0000e> Hello:Main () > > It seems that they included the config file for linux which maps libgtk-win32-2.0-0.dll to libgtk-x11-2.0.so. Go to C:\Program Files\mono-0.31\etc\mono\ and delete the config file. It should work then. Jasper From jcone@sbcglobal.net Mon Mar 22 01:52:09 2004 From: jcone@sbcglobal.net (Jason Cone) Date: Sun, 21 Mar 2004 19:52:09 -0600 Subject: [Gtk-sharp-list] Compiling on Mac OS X Message-ID: <880C4D6B-7BA3-11D8-935E-000393BBEB10@sbcglobal.net> I've compiled and installed Mono 0.31 on my Mac (OS X 10.3.3) and now I'm trying to compile GTK#. I checked out the source code from CVS, used Fink to install some of dependencies (e.g. gtk+2 and gtk+2-dev), found out I needed to make sure my mono.pc file was in /sw/lib/pkgconfig, and successfully ran autogen.sh. However, when I run make I'm getting an error (here's the tail of the output): Making all in gtk Making all in . /usr/local/bin/mcs --unsafe /out:gtk-sharp.dll /target:library /r:../glib/glib-sharp.dll /r:../pango/pango-sharp.dll /r:../atk/atk-sharp.dll /r:../gdk/gdk-sharp.dll ./Application.cs ./ITreeNode.cs ./NodeStore.cs ./ThreadNotify.cs ./TreeNodeAttribute.cs ./TreeNode.cs ./TreeNodeValueAttribute.cs generated/*.cs Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object make[3]: *** [gtk-sharp.dll] Error 1 make[2]: *** [all-recursive] Error 1 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2 Unfortunately, that's not much information for me to go on, and I'm not sure what the problem is. Can anyone point me in the right direction? From rshade@dvsconsulting.com Mon Mar 22 02:26:13 2004 From: rshade@dvsconsulting.com (Robert Shade) Date: Sun, 21 Mar 2004 21:26:13 -0500 (EST) Subject: [Gtk-sharp-list] Compiling on Mac OS X In-Reply-To: <880C4D6B-7BA3-11D8-935E-000393BBEB10@sbcglobal.net> References: <880C4D6B-7BA3-11D8-935E-000393BBEB10@sbcglobal.net> Message-ID: <3508.68.18.39.222.1079922373.squirrel@www.dvsconsulting.com> I've seen this if the JIT is used to run the complier instead of the interpreter. (JIT doesn't yet have full support for exceptions) Look at /usr/local/bin/mcs and make sure it is using mint instead of mono. rob > I've compiled and installed Mono 0.31 on my Mac (OS X 10.3.3) and now > I'm trying to compile GTK#. I checked out the source code from CVS, > used Fink to install some of dependencies (e.g. gtk+2 and gtk+2-dev), > found out I needed to make sure my mono.pc file was in > /sw/lib/pkgconfig, and successfully ran autogen.sh. However, when I > run make I'm getting an error (here's the tail of the output): > > Making all in gtk > Making all in . > /usr/local/bin/mcs --unsafe /out:gtk-sharp.dll /target:library > /r:../glib/glib-sharp.dll /r:../pango/pango-sharp.dll > /r:../atk/atk-sharp.dll /r:../gdk/gdk-sharp.dll ./Application.cs > ./ITreeNode.cs ./NodeStore.cs ./ThreadNotify.cs ./TreeNodeAttribute.cs > ./TreeNode.cs ./TreeNodeValueAttribute.cs generated/*.cs > > Unhandled Exception: System.NullReferenceException: Object reference > not set to an instance of an object > make[3]: *** [gtk-sharp.dll] Error 1 > make[2]: *** [all-recursive] Error 1 > make[1]: *** [all-recursive] Error 1 > make: *** [all] Error 2 > > Unfortunately, that's not much information for me to go on, and I'm not > sure what the problem is. Can anyone point me in the right direction? > > _______________________________________________ > Gtk-sharp-list maillist - Gtk-sharp-list@lists.ximian.com > http://lists.ximian.com/mailman/listinfo/gtk-sharp-list > From mkestner@ximian.com Mon Mar 22 03:38:36 2004 From: mkestner@ximian.com (Mike Kestner) Date: Sun, 21 Mar 2004 21:38:36 -0600 Subject: [Gtk-sharp-list] Trouble compiling : Command not found In-Reply-To: <1079812107.1409.18.camel@lalo4.micasa> References: <1079780150.3638.12.camel@hiboux.harobed.org> <1079783653.3638.17.camel@hiboux.harobed.org> <1079812107.1409.18.camel@lalo4.micasa> Message-ID: <1079926715.4247.169.camel@localhost.localdomain> On Sat, 2004-03-20 at 13:48, Gonzalo Paniagua Javier wrote: > If you set the PATH/PKG_CONFIG_PATH properly so that mono.pc is found by > pkg-config everything will work, but before applying this patch, > configure doesn't flag the error. > > Mike, okay to apply the patch? Yes, please do. Thanks for the patch. -- Mike Kestner From hemants22@yahoo.com Mon Mar 22 11:32:55 2004 From: hemants22@yahoo.com (Hemant Singh) Date: Mon, 22 Mar 2004 03:32:55 -0800 (PST) Subject: Fwd: [Gtk-sharp-list] GTK+ Mouse/Key binding docs of widgets Message-ID: <20040322113255.57272.qmail@web40507.mail.yahoo.com> --0-1441511692-1079955175=:56267 Content-Type: multipart/alternative; boundary="0-1546942994-1079955175=:56267" --0-1546942994-1079955175=:56267 Content-Type: text/plain; charset=us-ascii Resending, as I havn't heard from anyone yet. Note: forwarded message attached. Do you Yahoo!? Yahoo! Finance Tax Center - File online. File on time. --0-1546942994-1079955175=:56267 Content-Type: text/html; charset=us-ascii
Resending, as I havn't heard from anyone yet.

Note: forwarded message attached.

Do you Yahoo!?
Yahoo! Finance Tax Center - File online. File on time. --0-1546942994-1079955175=:56267-- --0-1441511692-1079955175=:56267 Content-Type: message/rfc822 X-Apparently-To: hemants22@yahoo.com via 66.218.78.122; Thu, 18 Mar 2004 09:10:08 -0800 Return-Path: Received: from 130.57.169.17 (EHLO lists.ximian.com) (130.57.169.17) by mta149.mail.scd.yahoo.com with SMTP; Thu, 18 Mar 2004 09:10:06 -0800 Received: from headcheese.ximian.com (localhost [127.0.0.1]) by lists.ximian.com (Postfix) with ESMTP id 060AB1244CA; Thu, 18 Mar 2004 12:10:03 -0500 (EST) Received: by lists.ximian.com (Postfix, from userid 38) id A4433124456; Thu, 18 Mar 2004 12:09:11 -0500 (EST) Received: from skeptopotamus.ximian.com (skeptopotamus.ximian.com [130.57.169.16]) (using TLSv1 with cipher EDH-RSA-DES-CBC3-SHA (168/168 bits)) (Client CN "mail.cam.novell.com", Issuer "Equifax" (not verified)) by lists.ximian.com (Postfix) with ESMTP id 906F8124BDF for ; Thu, 18 Mar 2004 12:08:43 -0500 (EST) Received: by skeptopotamus.ximian.com (Postfix) id F25506338F; Thu, 18 Mar 2004 12:08:40 -0500 (EST) Delivered-To: gtk-sharp-list@ximian.com Received: from web40511.mail.yahoo.com (web40511.mail.yahoo.com [66.218.78.128]) by skeptopotamus.ximian.com (Postfix) with SMTP id 8C4CD6330E for ; Thu, 18 Mar 2004 12:08:39 -0500 (EST) Received: from [192.18.42.10] by web40511.mail.yahoo.com via HTTP; Thu, 18 Mar 2004 09:08:38 PST From: Hemant Singh To: gtk-sharp-list@ximian.com MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-1878866173-1079629718=:43557" X-Spam-Status: No, hits=1.9 required=5.0 tests=FROM_ENDS_IN_NUMS,HTML_20_30,HTML_MESSAGE version=2.53 X-Spam-Level: * X-Spam-Checker-Version: SpamAssassin 2.53 (1.174.2.15-2003-03-30-exp) Subject: [Gtk-sharp-list] GTK+ Mouse/Key binding docs of widgets Sender: gtk-sharp-list-admin@lists.ximian.com Errors-To: gtk-sharp-list-admin@lists.ximian.com X-BeenThere: gtk-sharp-list@lists.ximian.com X-Mailman-Version: 2.0.13 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Discussion of the C# bindings for Gtk+ List-Unsubscribe: , List-Archive: Date: Thu, 18 Mar 2004 09:08:38 -0800 (PST) Content-Length: 445 --0-1878866173-1079629718=:43557 Content-Type: text/plain; charset=us-ascii Folks, >From long time I have been hunting for GTK's standard document for Mouse and key bindings for each GTK widget. Anyone can pass this luck here? --Hemant Do you Yahoo!? Yahoo! Mail - More reliable, more storage, less spam --0-1878866173-1079629718=:43557 Content-Type: text/html; charset=us-ascii

Folks,
From long time I have been hunting for GTK's standard document for Mouse and key bindings for each GTK widget.
Anyone can pass this luck here?
 
--Hemant 

Do you Yahoo!?
Yahoo! Mail - More reliable, more storage, less spam --0-1878866173-1079629718=:43557-- _______________________________________________ Gtk-sharp-list maillist - Gtk-sharp-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/gtk-sharp-list --0-1441511692-1079955175=:56267-- From jcone@sbcglobal.net Mon Mar 22 13:46:07 2004 From: jcone@sbcglobal.net (Jason Cone) Date: Mon, 22 Mar 2004 07:46:07 -0600 Subject: [Gtk-sharp-list] Compiling on Mac OS X In-Reply-To: <3508.68.18.39.222.1079922373.squirrel@www.dvsconsulting.com> References: <880C4D6B-7BA3-11D8-935E-000393BBEB10@sbcglobal.net> <3508.68.18.39.222.1079922373.squirrel@www.dvsconsulting.com> Message-ID: <455163BF-7C07-11D8-935E-000393BBEB10@sbcglobal.net> That was, indeed, the problem; thank you, Robert. I managed to get GTK# compiled and installed, and with a bit of tweaking in the etc/mono/config file (changing target libraries from .so to .dylib) and setting the DYLD_LIBRARY_PATH environmental variable, got the gtk hello world running on my Mac. Very cool. Thanks, again. JWC On Mar 21, 2004, at 8:26 PM, Robert Shade wrote: > I've seen this if the JIT is used to run the complier instead of the > interpreter. (JIT doesn't yet have full support for exceptions) Look > at > /usr/local/bin/mcs and make sure it is using mint instead of mono. > > rob > >> I've compiled and installed Mono 0.31 on my Mac (OS X 10.3.3) and now >> I'm trying to compile GTK#. I checked out the source code from CVS, >> used Fink to install some of dependencies (e.g. gtk+2 and gtk+2-dev), >> found out I needed to make sure my mono.pc file was in >> /sw/lib/pkgconfig, and successfully ran autogen.sh. However, when I >> run make I'm getting an error (here's the tail of the output): >> >> Making all in gtk >> Making all in . >> /usr/local/bin/mcs --unsafe /out:gtk-sharp.dll /target:library >> /r:../glib/glib-sharp.dll /r:../pango/pango-sharp.dll >> /r:../atk/atk-sharp.dll /r:../gdk/gdk-sharp.dll ./Application.cs >> ./ITreeNode.cs ./NodeStore.cs ./ThreadNotify.cs ./TreeNodeAttribute.cs >> ./TreeNode.cs ./TreeNodeValueAttribute.cs generated/*.cs >> >> Unhandled Exception: System.NullReferenceException: Object reference >> not set to an instance of an object >> make[3]: *** [gtk-sharp.dll] Error 1 >> make[2]: *** [all-recursive] Error 1 >> make[1]: *** [all-recursive] Error 1 >> make: *** [all] Error 2 >> >> Unfortunately, that's not much information for me to go on, and I'm >> not >> sure what the problem is. Can anyone point me in the right direction? From jeremy@olicomp.com Mon Mar 22 14:49:04 2004 From: jeremy@olicomp.com (Jeremy Wells) Date: Mon, 22 Mar 2004 14:49:04 +0000 Subject: [Gtk-sharp-list] gnome vfs application In-Reply-To: <20040322113255.57272.qmail@web40507.mail.yahoo.com> References: <20040322113255.57272.qmail@web40507.mail.yahoo.com> Message-ID: <1079966944.1383.4.camel@localhost> Hi, I've been using Vfs.cs, posted on this list awhile ago, to get the mime types for files, but i'd also like to get the application associated with the file. unfortunatey writing this into the file is more complicated than i thought as it involves importing GnomeVFSMimeApplication, a struct, and i don't know how to go about doing that. Can anyone help me out with this? Jeremy From mkestner@ximian.com Mon Mar 22 16:21:53 2004 From: mkestner@ximian.com (Mike Kestner) Date: Mon, 22 Mar 2004 10:21:53 -0600 Subject: [Gtk-sharp-list] gnome vfs application In-Reply-To: <1079966944.1383.4.camel@localhost> References: <20040322113255.57272.qmail@web40507.mail.yahoo.com> <1079966944.1383.4.camel@localhost> Message-ID: <1079972513.4247.180.camel@localhost.localdomain> On Mon, 2004-03-22 at 08:49, Jeremy Wells wrote: > Hi, > I've been using Vfs.cs, posted on this list awhile ago, to get the mime > types for files, but i'd also like to get the application associated > with the file. unfortunatey writing this into the file is more > complicated than i thought as it involves importing > GnomeVFSMimeApplication, a struct, and i don't know how to go about > doing that. Can anyone help me out with this? You might want to grep around the generated source in Gtk# for ideas how to hand wrap it. There are tons of structs in the generated source. -- Mike Kestner From mkestner@ximian.com Mon Mar 22 16:25:29 2004 From: mkestner@ximian.com (Mike Kestner) Date: Mon, 22 Mar 2004 10:25:29 -0600 Subject: Fwd: [Gtk-sharp-list] GTK+ Mouse/Key binding docs of widgets In-Reply-To: <20040322113255.57272.qmail@web40507.mail.yahoo.com> References: <20040322113255.57272.qmail@web40507.mail.yahoo.com> Message-ID: <1079972729.4247.185.camel@localhost.localdomain> On Mon, 2004-03-22 at 05:32, Hemant Singh wrote: > Resending, as I havn't heard from anyone yet. > From long time I have been hunting for GTK's standard document for > Mouse and key bindings for each GTK widget. > Anyone can pass this luck here? The API docs for gtk+ can be found at: http://www.gtk.org/api -- Mike Kestner From mariano.cano@hispalinux.es Mon Mar 22 20:18:30 2004 From: mariano.cano@hispalinux.es (McP) Date: Mon, 22 Mar 2004 21:18:30 +0100 Subject: [Gtk-sharp-list] gnome vfs application In-Reply-To: <1079966944.1383.4.camel@localhost> References: <20040322113255.57272.qmail@web40507.mail.yahoo.com> <1079966944.1383.4.camel@localhost> Message-ID: <1079986710.828.7.camel@McP> --=-LkY6WI3UUeDb68ZiTFRi Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit El lun, 22-03-2004 a las 15:49, Jeremy Wells escribió: > Hi, > I've been using Vfs.cs, posted on this list awhile ago, to get the mime > types for files, but i'd also like to get the application associated > with the file. unfortunatey writing this into the file is more > complicated than i thought as it involves importing > GnomeVFSMimeApplication, a struct, and i don't know how to go about > doing that. Can anyone help me out with this? I writed and used the attached file to get the mime type, default action (GnomeVFSMimeApplication) and gnome icon of a file. It should be useful for your purposes. Jeremy: Please contact with me if you improve it or find some bug. note: The class it's not tested with the last cvs version. If it doesn't compile it will be very easy to solve it. -- McP --=-LkY6WI3UUeDb68ZiTFRi Content-Disposition: attachment; filename=GnomeIconLookup.cs Content-Type: text/plain; name=GnomeIconLookup.cs; charset=UTF-8 Content-Transfer-Encoding: 7bit /* * MonoTagEditor * * Copyright (C) 2003, Mariano Cano Prez * * This file is part of MonoTagEditor. * * MonoTagEditor is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * MonoTagEditor is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with MonoTagEditor; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ using System; using Gtk; using GLib; using System.Runtime.InteropServices; public enum GnomeVFSMimeApplicationArgumentType { Uris, Path, UrisForNonFiles } [StructLayout(LayoutKind.Sequential)] public struct GnomeVFSMimeApplication { public string id; public string name; public string command; public bool can_open_multiple_files; public GnomeVFSMimeApplicationArgumentType expects_uris; public List supported_uri_schemes; public bool requires_terminal; public IntPtr reserved1; public IntPtr reserved2; public static GnomeVFSMimeApplication Zero = new GnomeVFSMimeApplication (); public static GnomeVFSMimeApplication New (IntPtr raw) { if(raw == IntPtr.Zero) { return GnomeVFSMimeApplication.Zero; } GnomeVFSMimeApplication self = new GnomeVFSMimeApplication(); self = (GnomeVFSMimeApplication) Marshal.PtrToStructure (raw, self.GetType ()); return self; } public static bool operator == (GnomeVFSMimeApplication a, GnomeVFSMimeApplication b) { return a.Equals (b); } public static bool operator != (GnomeVFSMimeApplication a, GnomeVFSMimeApplication b) { return ! a.Equals (b); } public override bool Equals (object o) { if (!(o is GnomeVFSMimeApplication)) return false; return ((GnomeVFSMimeApplication) o) == this; } public override int GetHashCode () { return this.GetHashCode (); } } public enum GnomeIconLookupFlags { None, EmbeddingText, SmallImages } public enum GnomeIconLookupResultsFlags { None, Thumbnail } class GnomeIconLookup{ [DllImport("libgnomeui-2")] static extern string gnome_icon_lookup (IntPtr icon_theme, IntPtr thumbnail_factory, string uri, string custim_icon, IntPtr file_info, string mime_type, GnomeIconLookupFlags flags, ref GnomeIconLookupResultsFlags result); [DllImport("libgnomeui-2")] static extern string gnome_icon_theme_lookup_icon (IntPtr icon_theme, string icon_name, IconSize icon_size, ref IntPtr icon_data, ref int base_size); [DllImport("libgnomeui-2")] static extern void gnome_icon_data_free (IntPtr icon_data); [DllImport("libgnomeui-2")] static extern IntPtr gnome_icon_theme_new (); [DllImport("libgnomevfs-2")] static extern string gnome_vfs_mime_type_from_name (string mime_type); [DllImport("libgnomevfs-2")] static extern IntPtr gnome_vfs_application_registry_get_applications(string mime_type); [DllImport("libgnomevfs-2")] static extern IntPtr gnome_vfs_mime_get_default_application(string mime_type); public static string LookupMimeIcon(string mime,IconSize size) { string icon_name=String.Empty; string icon_path=String.Empty; GnomeIconLookupResultsFlags result=0; IntPtr icon_data=IntPtr.Zero; int base_size=0; IntPtr icon_theme = gnome_icon_theme_new (); if(icon_theme==IntPtr.Zero) { return String.Empty; } icon_name=gnome_icon_lookup( icon_theme, IntPtr.Zero, String.Empty, String.Empty, IntPtr.Zero, mime, GnomeIconLookupFlags.None, ref result); if(icon_name.Length>0) { icon_path=gnome_icon_theme_lookup_icon ( icon_theme, icon_name, size, ref icon_data, ref base_size); if(icon_data!=IntPtr.Zero) gnome_icon_data_free(icon_data); } return icon_path; } public static string LookupFileIcon(string file,IconSize size) { string mime = gnome_vfs_mime_type_from_name(file); if(mime.Length>0) return LookupMimeIcon(mime,size); return String.Empty; } public static string GetMimeType(string file) { return gnome_vfs_mime_type_from_name(file); } public static GLib.List GetApplications(string mime_type) { IntPtr raw_ret = gnome_vfs_application_registry_get_applications(mime_type); GLib.List app = new GLib.List(raw_ret); return app; } public static GnomeVFSMimeApplication GetDefaultAction(string mime_type) { IntPtr ptr = gnome_vfs_mime_get_default_application(mime_type); GnomeVFSMimeApplication ret = GnomeVFSMimeApplication.New(ptr); return ret; } } --=-LkY6WI3UUeDb68ZiTFRi-- From oachler@ucsd.edu Mon Mar 22 20:21:57 2004 From: oachler@ucsd.edu (Ofer Achler) Date: Mon, 22 Mar 2004 12:21:57 -0800 Subject: [Gtk-sharp-list] Exception in application.run() Message-ID: <200403222022.i2MKM6Rb004422@smtp.ucsd.edu> I have a program that runs through all the steps, produces a nice display as its supposed to, then immediately breaks with an unhandled exception of type system.nullreference exception in gtk-sharp.dll Additional information: object reference not set to an instance of object The thing is, the program displays everything then immediately crashes. Also, debugging through it it runs all the steps. Its only on Application.Run() that it breaks. I'm not sure what to do next. I can get it to work by commenting out some piece of code that isn't related to gtk# at all, but it's a really big piece of code and it doesn't crash running that particular code(like I said, it crashes on Application.Run()) What should I do? I'm running mono 0.31 and gtk# 0.17 on windows From oachler@ucsd.edu Mon Mar 22 20:44:54 2004 From: oachler@ucsd.edu (Ofer Achler) Date: Mon, 22 Mar 2004 12:44:54 -0800 Subject: [Gtk-sharp-list] Exception in application.run() In-Reply-To: <200403222022.i2MKM6Rb004422@smtp.ucsd.edu> Message-ID: <200403222045.i2MKj3Rb010109@smtp.ucsd.edu> Update: it seems to work fine in linux under mono, also, I should state I'm using VS .NET 2003 and the Microsoft C# compiler and runtime in windows. When I use mono under windows to run the program (after it was compiled my Microsoft) it works fine as well. -----Original Message----- From: gtk-sharp-list-admin@lists.ximian.com [mailto:gtk-sharp-list-admin@lists.ximian.com] On Behalf Of Ofer Achler Sent: Monday, March 22, 2004 12:22 PM To: gtk-sharp-list@lists.ximian.com Subject: [Gtk-sharp-list] Exception in application.run() I have a program that runs through all the steps, produces a nice display as its supposed to, then immediately breaks with an unhandled exception of type system.nullreference exception in gtk-sharp.dll Additional information: object reference not set to an instance of object The thing is, the program displays everything then immediately crashes. Also, debugging through it it runs all the steps. Its only on Application.Run() that it breaks. I'm not sure what to do next. I can get it to work by commenting out some piece of code that isn't related to gtk# at all, but it's a really big piece of code and it doesn't crash running that particular code(like I said, it crashes on Application.Run()) What should I do? I'm running mono 0.31 and gtk# 0.17 on windows _______________________________________________ Gtk-sharp-list maillist - Gtk-sharp-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/gtk-sharp-list From ivan.guzvinec@telemach.net Tue Mar 23 08:16:24 2004 From: ivan.guzvinec@telemach.net (Ivan =?iso-8859-2?Q?Gu=BEvinec?=) Date: Tue, 23 Mar 2004 09:16:24 +0100 Subject: [Gtk-sharp-list] Trouble with DrawingArea.MotionNotifyEvent. In-Reply-To: <200403211633.i2LGXtRb011041@smtp.ucsd.edu> References: <200403211633.i2LGXtRb011041@smtp.ucsd.edu> Message-ID: <1080029784.3846.10.camel@AI.house-of-ix.org> --=-jgE7LKqKhcqUsCE60pPT Content-Type: multipart/mixed; boundary="=-PV07YZLzOYyDIh7REwxY" --=-PV07YZLzOYyDIh7REwxY Content-Type: multipart/alternative; boundary="=-QYRClxjdbyyuBjx/pUZ+" --=-QYRClxjdbyyuBjx/pUZ+ Content-Type: text/plain; charset=iso-8859-2 Content-Transfer-Encoding: quoted-printable One of the answers I was looking for was that: Gdk.EventMotion ev =3D args.Event; Gdk.Window window =3D ev.Window; if (ev.IsHint) { Gdk.ModifierType s; window.GetPointer (out x, out y, out s); } MUST be performed inside MotionNotifyEventHandler. This "bug-fixed" attached sample works as expected. Thanks for luck ;)) Ivan On Sun, 2004-03-21 at 17:33, Ofer Achler wrote: > You can get the same effect by attaching to the expose event of the > parent window. >=20 > =20 >=20 > Good luck! >=20 > =20 >=20 > =20 > ______________________________________________________________________ >=20 > From:gtk-sharp-list-admin@lists.ximian.com > [mailto:gtk-sharp-list-admin@lists.ximian.com] On Behalf Of Ivan > Gu=BEvinec > Sent: Sunday, March 21, 2004 6:07 AM > To: gtk-sharp-list@lists.ximian.com > Subject: [Gtk-sharp-list] Trouble with DrawingArea.MotionNotifyEvent. >=20 >=20 > =20 >=20 > Hi, >=20 > I'm having trouble with MotionNotifyEvent in my derived Window class. > I would like to create a DrawingArea widget, add it to self (this) and > then catch its MotionNotifyEvent(s). So far I only get exactly one > MotionNotifyEvent when (1) mouse Enters the window area or (2) when I > press mouse buttons and then move the mouse inside the DrawingArea. > But when I simply move the mouse inside the DrawingArea, no > MotionNotifyEvents are fired. >=20 > Perhaps I'm doing things the wrong way, so any hint/help would be > greatly appreciated. >=20 > I've made a simple test program to demonstrate this. Please find the > attached "CreatedWindow.cs", compile with "mcs -r gtk-sharp.dll -r > gdk-sharp.dll -r glib-sharp.dll CreatedWindow.cs" >=20 > thanks, > Ivan=20 >=20 >=20 --=-QYRClxjdbyyuBjx/pUZ+ Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable One of the answers I was looking for was that:
Gdk.EventMotion ev =3D args.Event;
Gdk.Window window =3D ev.Window;
if (ev.IsHint) {
    Gdk.ModifierType s;
    window.GetPointer (out x, out y, out s);
}
MUST be performed inside MotionNotifyEventHandler.

This "bug-fixed" attached sample works as expected.

Thanks for luck ;))
Ivan

On Sun, 2004-03-21 at 17:33, Ofer Achler wrote:

You can get the same effect by at= taching to the expose event of the parent window.

 

Good luck!

 




From:gtk-sharp-list-admin@lis= ts.ximian.com [mailto:gtk-sharp-list-admin@lists.ximian.com] On Behalf O= f Ivan Gužvinec
Sent: Sunday, March 21, 2004 6:07 AM
To: gtk-sharp-list@lists.ximian.com
Subject: [Gtk-sharp-list] Trouble with DrawingArea.MotionNotifyE= vent.



 

Hi,

I'm having trouble with MotionNotifyEvent in my derived Window class. I= would like to create a DrawingArea widget, add it to self (this) and then = catch its MotionNotifyEvent(s). So far I only get exactly one MotionNotifyE= vent when (1) mouse Enters the window area or (2) when I press mouse button= s and then move the mouse inside the DrawingArea. But when I simply move th= e mouse inside the DrawingArea, no MotionNotifyEvents are fired.

Perhaps I'm doing things the wrong way, so any hint/help would be great= ly appreciated.

I've made a simple test program to demonstrate this. Please find the at= tached "CreatedWindow.cs", compile with "mcs -r gtk-sharp.dl= l -r gdk-sharp.dll -r glib-sharp.dll CreatedWindow.cs"

thanks,
Ivan



--=-QYRClxjdbyyuBjx/pUZ+-- --=-PV07YZLzOYyDIh7REwxY Content-Disposition: attachment; filename=CreatedWindow.cs Content-Transfer-Encoding: base64 Content-Type: text/x-csharp; name=CreatedWindow.cs; charset= Ly8gY3JlYXRlZCBvbiAwMy8yMS8yMDA0IGF0IDE0OjQwDQp1c2luZyBTeXN0ZW07DQp1c2luZyBH dGs7DQp1c2luZyBHZGs7DQoNCnB1YmxpYyBjbGFzcyBDcmVhdGVkV2luZG93IDogR3RrLldpbmRv dw0Kew0KCXN0YXRpYyBHTGliLkdUeXBlIHR5cGU7DQoJDQoJcHJpdmF0ZSBEcmF3aW5nQXJlYQlk YTsNCgkNCglzdGF0aWMgQ3JlYXRlZFdpbmRvdyAoKQ0KCXsNCgkJdHlwZSA9IFJlZ2lzdGVyR1R5 cGUgKHR5cGVvZiAoQ3JlYXRlZFdpbmRvdykpOwkJfQ0KCQ0KCXB1YmxpYyBDcmVhdGVkV2luZG93 ICgpIDogYmFzZSAodHlwZSkNCgl7DQoJCWRhID0gbmV3IERyYXdpbmdBcmVhKCk7DQoJCWRhLlNl dFNpemVSZXF1ZXN0KDY0MCwgNDgwKTsJCQ0KCQl0aGlzLkFkZChkYSk7DQoJCWRhLk1vdGlvbk5v dGlmeUV2ZW50ICs9IG5ldyBNb3Rpb25Ob3RpZnlFdmVudEhhbmRsZXIocGljdl9Nb3ZlKTsNCiAg ICAJCWRhLkV2ZW50cyA9ICAoaW50KUdkay5FdmVudE1hc2suQWxsRXZlbnRzTWFzazsNCgl9DQoJ DQoJcHJpdmF0ZSB2b2lkIHBpY3ZfTW92ZShvYmplY3Qgb2JqLCBNb3Rpb25Ob3RpZnlFdmVudEFy Z3MgYXJncykNCgl7DQoJCWludCB4LCB5Ow0KCQlHZGsuTW9kaWZpZXJUeXBlIHN0YXRlOw0KCQlH ZGsuRXZlbnRNb3Rpb24gZXYgPSBhcmdzLkV2ZW50Ow0KCQlHZGsuV2luZG93IHdpbmRvdyA9IGV2 LldpbmRvdzsNCgkJCQ0KCQlTeXN0ZW0uQ29uc29sZS5Xcml0ZUxpbmUoIlg9ezB9LCBZPXsxfSIs IGV2LlgsIGV2LlkpOw0KDQoJCWlmIChldi5Jc0hpbnQpIHsNCgkJCUdkay5Nb2RpZmllclR5cGUg czsNCgkJCXdpbmRvdy5HZXRQb2ludGVyIChvdXQgeCwgb3V0IHksIG91dCBzKTsNCgkJCS8vc3Rh dGUgPSBzOw0KCQl9DQoJCQ0KCQlhcmdzLlJldFZhbCA9IHRydWU7DQoJfQ0KfQ0KDQpjbGFzcyBN YWluQ2xhc3Mgew0KCXB1YmxpYyBzdGF0aWMgdm9pZCBNYWluKCkNCgl7DQoJCUFwcGxpY2F0aW9u LkluaXQoKTsNCgkJDQoJCUNyZWF0ZWRXaW5kb3cgd2luID0gbmV3IENyZWF0ZWRXaW5kb3coKTsN CgkJd2luLlNob3dBbGwoKTsNCgkJDQoJCUFwcGxpY2F0aW9uLlJ1bigpOw0KCX0NCn0NCg== --=-PV07YZLzOYyDIh7REwxY-- --=-jgE7LKqKhcqUsCE60pPT Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (GNU/Linux) iQCUAwUAQF/yWMj+Az87AOMpAQIQqAP1EeXdqFDJbmdDoau8GNA9VQpjSFYYTmby 5n/d7xuEHv+yYo21+088I9TgC0ph9h51X3KmxCEAXY4VdJ66IHpc9vDx3DWL7KDj AasyqquCX02mg///IXeoYV7cUZaX47rHiiDMxMwr8c9Qg8ARF42zYerTU+d5voYG yk9d1CpTjw== =YCoH -----END PGP SIGNATURE----- --=-jgE7LKqKhcqUsCE60pPT-- From tapia@eitig.com Tue Mar 23 10:48:46 2004 From: tapia@eitig.com (tapia) Date: Tue, 23 Mar 2004 11:48:46 +0100 Subject: [Gtk-sharp-list] gtkhtml problem Message-ID: <1080038926.715.63.camel@localhost> --=-bbdzShHzrrFcGH8J+1de Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Hi. I have a libgtkhtml question. I'm using it on a gtk# app, and I like it, it's so easy. I have an image in a .dll, included as a resource. How can I insert the image in the libgtkhtml? I can do it extracting the image to a temporal folder, but I'm sure it can be done in a more elegant way. Thank you for your work. C. --=-bbdzShHzrrFcGH8J+1de Content-Type: application/pgp-signature; name=signature.asc Content-Description: Esta parte del mensaje =?ISO-8859-1?Q?est=E1?= firmada digitalmente -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQBAYBYOUB+wbKFFlkARAnW1AJsFSvR7b6z02RnFX9Hw0YOm29zLqwCdH3Bl SjzMJxiamSuuA4H0zogIw/c= =aAbE -----END PGP SIGNATURE----- --=-bbdzShHzrrFcGH8J+1de-- From murrayc@murrayc.com Tue Mar 23 10:52:09 2004 From: murrayc@murrayc.com (Murray Cumming) Date: Tue, 23 Mar 2004 11:52:09 +0100 Subject: [Gtk-sharp-list] [Fwd: 2.8 Platform Bindings - invitation] Message-ID: <1080039129.17104.5.camel@localhost.localdomain> --=-c5ilCXExll5KQZT0cNsc Content-Type: text/plain Content-Transfer-Encoding: 7bit -- Murray Cumming www.murrayc.com murrayc@murrayc.com --=-c5ilCXExll5KQZT0cNsc Content-Disposition: inline Content-Description: Forwarded message - 2.8 Platform Bindings - invitation Content-Type: message/rfc822 Return-Path: Delivered-To: murrayc@ludo.dreamhost.com Received: from cmsfwd01.mx.net (cmsfwd01.mx.net [165.212.11.1]) by ludo.dreamhost.com (Postfix) with SMTP id 99C1E27EFF for ; Sun, 21 Mar 2004 04:44:11 -0800 (PST) Received: from cmsmail10.cms.usa.net (165.212.10.12) by forward.mx.net with SMTP; 21 Mar 2004 12:44:11 -0000 X-USANET-Originally-To: murrayc@usa.net Received: from cmsmail10.cms.usa.net [165.212.10.12] by cmsmail10.cms.usa.net via mtad (C8.MAIN.3.13N) with ESMTP id 456icumSH0749M10; Sun, 21 Mar 2004 12:44:07 GMT Received: from mail.gnome.org [67.72.78.218] by cmsmail10.cms.usa.net via smtad (C8.MAIN.3.13L.PATCH1); Sun, 21 Mar 2004 12:44:07 GMT X-USANET-From: 67.72.78.218 IN language-bindings-admin@gnome.org mail.gnome.org Received: from moniker.gnome.org (moniker.gnome.org [127.0.0.1]) by mail.gnome.org (Postfix) with ESMTP id 728A0188B3; Sun, 21 Mar 2004 07:44:06 -0500 (EST) Delivered-To: language-bindings@gnome.org Received: from hoggle.dreamhost.com (hoggle.dreamhost.com [66.33.197.5]) by mail.gnome.org (Postfix) with ESMTP id DDFB8188B2; Sun, 21 Mar 2004 07:41:18 -0500 (EST) Received: from pD9E8B2D3.dip.t-dialin.net (pD9E8B2D3.dip.t-dialin.net [217.232.178.211]) by hoggle.dreamhost.com (Postfix) with ESMTP id 2B65A53856; Sun, 21 Mar 2004 04:41:15 -0800 (PST) Subject: 2.8 Platform Bindings - invitation From: Murray Cumming To: "language-bindings@gnome.org" , gnome-release-team Content-Type: text/plain Message-Id: <1079872869.32525.116.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.5 Sender: language-bindings-admin@gnome.org Errors-To: language-bindings-admin@gnome.org X-BeenThere: language-bindings@gnome.org X-Loop: language-bindings@gnome.org X-Mailman-Version: 2.0.12 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: GTK+/GNOME language bindings development discussion List-Unsubscribe: , List-Archive: Date: Sun, 21 Mar 2004 13:41:09 +0100 Content-Transfer-Encoding: 7bit The 2.5/2.6 GNOME Platform Bindings seem to be a success so far. So I invite new projects to join the GNOME Platform Bindings schedule for the 2.7/2.8 (and future) release cycle, which will last approximately 6 months. First tarballs will probably be due in the middle of April. Bindings maintainers should tell us what source tarballs they plan to put on the schedule. Bindings should follow these rules: http://developer.gnome.org/dotplan/bindings/rules.html Note that those rules do not guarantee 100% API coverage, but they do guarantee API/ABI stability. The 2.7 schedue will be like this http://www.gnome.org/start/2.5/bindings/ but will more closely match the regular 2.7 GNOME schedule. If it's absolutely necessary then I might make small changes to the rules, though we should try not to put the schedule in danger or confuse people too much about what we promise. -- Murray Cumming www.murrayc.com murrayc@murrayc.com _______________________________________________ language-bindings mailing list language-bindings@gnome.org http://mail.gnome.org/mailman/listinfo/language-bindings --=-c5ilCXExll5KQZT0cNsc-- From moritz.angermann@gmx.net Tue Mar 23 17:17:17 2004 From: moritz.angermann@gmx.net (Moritz Angermann) Date: Tue, 23 Mar 2004 18:17:17 +0100 Subject: [Gtk-sharp-list] ToolTips on a CellRendererToggle Message-ID: <1080062236.15845.374.camel@localhost> Hi Everybody... Does anyone have an idea how to add tooltips to a CellRendererToggle? Lets say I have a column like: TreeViewColumn c = new TreeViewColumn( ); c.Title = "Some Toggles"; // First Toggle CellRendererToggle r = new CellRendererToggle( ); r.Activatable = true; r.Toggled += new ToggledHandler( on_t1_toggled ); c.PackStart( r, true ); c.AddAttribute( r, "active", (int)myTree.TOGGLE1 ); // Secound Toggle CellRendererToggle r = new CellRendererToggle( ); r.Activatable = true; r.Toggled += new ToggledHandler( on_t2_toggled ); c.PackStart( r, true ); c.AddAttribute( r, "active", (int)myTree.TOGGLE2 ); // ... [...] ... TreeView tv = new TreeView( ); tv.AppendColumn( c ); // ... [...] ... Now I'd like to have a Tooltip when moving the mouse over the toggle button. ToolTips.SetTip( Widget, String, String ); requires a Widget - so how do I get the ToggleButton Widget? I'd appreciate help on this alot, thank you in advance, kindest regards, -mo -- ---------------- contact info ---------------- Moritz Angermann moritz.angermann@gmx.net Liquid:Mint www.liquidmint.org Mobile +49 (0) 160 9197 5880 Home +49 (0) 4322 75 12 66 From mkestner@ximian.com Tue Mar 23 17:45:53 2004 From: mkestner@ximian.com (Mike Kestner) Date: Tue, 23 Mar 2004 11:45:53 -0600 Subject: [Gtk-sharp-list] Re: 2.8 Platform Bindings - invitation In-Reply-To: <1079872869.32525.116.camel@localhost.localdomain> References: <1079872869.32525.116.camel@localhost.localdomain> Message-ID: <1080063953.4247.242.camel@localhost.localdomain> On Sun, 2004-03-21 at 06:41, Murray Cumming wrote: > The 2.5/2.6 GNOME Platform Bindings seem to be a success so far. Congratulations to you and the other binding maintainers. > So I invite new projects to join the GNOME Platform Bindings schedule > for the 2.7/2.8 (and future) release cycle, which will last > approximately 6 months. First tarballs will probably be due in the > middle of April. Bindings maintainers should tell us what source > tarballs they plan to put on the schedule. Unfortunately, this doesn't look possible. We are locked into the Gnome-2.2 platform through June, our anticipated first stable release. I don't think it will take much effort to update to the 2.7 API, but I can't afford any distractions from the 2.2 API until it's released. I'm pretty much certain at this point that I won't be tracking 2.7 in mid-April. > Bindings should follow these rules: > http://developer.gnome.org/dotplan/bindings/rules.html I also have not been convinced of the need to fragment the binding between Platform and Desktop libraries. As I'm not willing to do this, apparently the timing issue is moot anyway. As a project, GNOME releases the Platform and Desktop package sets simultaneously. The two package sets are atomic enough for me to target Gtk# against, and it's easier for me and my users to deal with one package instead of two. That's what I plan to continue doing at this point. > The 2.7 schedue will be like this > http://www.gnome.org/start/2.5/bindings/ > but will more closely match the regular 2.7 GNOME schedule. My plan is still to jump to 2.7 tarball versions as soon as I get 2.2 out. I will probably try to match your schedule once I get the API transition done. -- Mike Kestner From murrayc@murrayc.com Tue Mar 23 19:20:41 2004 From: murrayc@murrayc.com (Murray Cumming) Date: Tue, 23 Mar 2004 20:20:41 +0100 Subject: [Gtk-sharp-list] Re: 2.8 Platform Bindings - invitation In-Reply-To: <1080063953.4247.242.camel@localhost.localdomain> References: <1079872869.32525.116.camel@localhost.localdomain> <1080063953.4247.242.camel@localhost.localdomain> Message-ID: <1080069641.8964.2.camel@localhost.localdomain> On Tue, 2004-03-23 at 18:45, Mike Kestner wrote: > On Sun, 2004-03-21 at 06:41, Murray Cumming wrote: > > The 2.5/2.6 GNOME Platform Bindings seem to be a success so far. > > Congratulations to you and the other binding maintainers. > > > So I invite new projects to join the GNOME Platform Bindings schedule > > for the 2.7/2.8 (and future) release cycle, which will last > > approximately 6 months. First tarballs will probably be due in the > > middle of April. Bindings maintainers should tell us what source > > tarballs they plan to put on the schedule. > > Unfortunately, this doesn't look possible. We are locked into the > Gnome-2.2 platform through June, Why? > our anticipated first stable release. > I don't think it will take much effort to update to the 2.7 API, but I > can't afford any distractions from the 2.2 API until it's released. I'm > pretty much certain at this point that I won't be tracking 2.7 in > mid-April. > > > Bindings should follow these rules: > > http://developer.gnome.org/dotplan/bindings/rules.html > > I also have not been convinced of the need to fragment the binding > between Platform and Desktop libraries. As I'm not willing to do this, > apparently the timing issue is moot anyway. > > As a project, GNOME releases the Platform and Desktop package sets > simultaneously. The two package sets are atomic enough for me to target > Gtk# against, and it's easier for me and my users to deal with one > package instead of two. That's what I plan to continue doing at this > point. The separation has to do with API-stability, not timing. But I am willing to talk about this if you can get in-sync with GNOME 2.7. But if you can not then it's not worth discussing. I hope you manage it for 2.next. As a first step it would have helped you to do regular release according to the 2.5 schedule, as planned. I encourage you to do that for 2.7. Thanks for the clear reply. -- Murray Cumming www.murrayc.com murrayc@murrayc.com From mkestner@ximian.com Wed Mar 24 18:39:22 2004 From: mkestner@ximian.com (Mike Kestner) Date: Wed, 24 Mar 2004 12:39:22 -0600 Subject: [Gtk-sharp-list] Re: 2.8 Platform Bindings - invitation In-Reply-To: <1080069641.8964.2.camel@localhost.localdomain> References: <1079872869.32525.116.camel@localhost.localdomain> <1080063953.4247.242.camel@localhost.localdomain> <1080069641.8964.2.camel@localhost.localdomain> Message-ID: <1080153562.4247.1643.camel@localhost.localdomain> On Tue, 2004-03-23 at 13:20, Murray Cumming wrote: > > Unfortunately, this doesn't look possible. We are locked into the > > Gnome-2.2 platform through June, > > Why? Because I need to stick to a version that is widely supported by binary packages for the bound libraries. I don't have the luxury of a stable release yet for people to develop against while I target the bleeding edge. People are already using Gtk# for real commercial development, even though we haven't frozen the API yet. After June, things get a lot more flexible. -- Mike Kestner From murrayc@murrayc.com Wed Mar 24 18:50:29 2004 From: murrayc@murrayc.com (Murray Cumming) Date: Wed, 24 Mar 2004 19:50:29 +0100 Subject: [Gtk-sharp-list] Re: 2.8 Platform Bindings - invitation In-Reply-To: <1080153562.4247.1643.camel@localhost.localdomain> References: <1079872869.32525.116.camel@localhost.localdomain> <1080063953.4247.242.camel@localhost.localdomain> <1080069641.8964.2.camel@localhost.localdomain> <1080153562.4247.1643.camel@localhost.localdomain> Message-ID: <1080154159.8964.44.camel@localhost.localdomain> On Wed, 2004-03-24 at 19:39, Mike Kestner wrote: > On Tue, 2004-03-23 at 13:20, Murray Cumming wrote: > > > > Unfortunately, this doesn't look possible. We are locked into the > > > Gnome-2.2 platform through June, > > > > Why? > > Because I need to stick to a version that is widely supported by binary > packages for the bound libraries. Sorry, for a moment, I thought that GNOME 2.2 had GTK+ 2.0, which would have been ancient. But it actually has GTK+ 2.2, so that makes more sense. > I don't have the luxury of a stable > release yet for people to develop against while I target the bleeding > edge. People are already using Gtk# for real commercial development, > even though we haven't frozen the API yet. > > After June, things get a lot more flexible. OK, thanks, I've been in the same situation at first. By the way, why haven't I seen this discussed on your mailing list before it was announced? Did I miss something? -- Murray Cumming www.murrayc.com murrayc@murrayc.com From jluke@users.sourceforge.net Wed Mar 24 20:30:37 2004 From: jluke@users.sourceforge.net (John Luke) Date: Wed, 24 Mar 2004 15:30:37 -0500 Subject: [Gtk-sharp-list] conditionally compile docs Message-ID: <1080160237.17392.22.camel@localhost.localdomain> --=-090vqotbuNdGYoMHbziA Content-Type: text/plain Content-Transfer-Encoding: 7bit Hello, Attached is a patch to conditionally compile and install the docs if you already have monodoc installed. Ok to commit? --=-090vqotbuNdGYoMHbziA Content-Disposition: attachment; filename=monodoc.diff Content-Type: text/x-diff; name=monodoc.diff; charset=UTF-8 Content-Transfer-Encoding: 7bit ? monodoc.diff Index: ChangeLog =================================================================== RCS file: /cvs/public/gtk-sharp/ChangeLog,v retrieving revision 1.710 diff -u -r1.710 ChangeLog --- ChangeLog 24 Mar 2004 19:38:29 -0000 1.710 +++ ChangeLog 24 Mar 2004 19:57:35 -0000 @@ -2,6 +2,12 @@ * samples/gconf/Makefile.am: changes SOURCES to FILES to make automake 1.8 happy + * configure.in: check for 'monodoc' in path and conditionally + set ENABLE_MONODOC, output doc/Makefile + * Makefile.am: add doc to SUBDIRS + * doc/Makefile.am: conditionally build and install docs base on + ENABLE_MONODOC conditional, use monodoc --assemble and --update + * doc/makefile: move to Makefile.am 2003-03-24 Jorn Baayen Index: Makefile.am =================================================================== RCS file: /cvs/public/gtk-sharp/Makefile.am,v retrieving revision 1.1 diff -u -r1.1 Makefile.am --- Makefile.am 12 Mar 2004 21:18:05 -0000 1.1 +++ Makefile.am 24 Mar 2004 19:57:35 -0000 @@ -1,4 +1,4 @@ -SUBDIRS = sources generator parser glib pango atk gdk gtk glade art gnome gda gnomedb gtkhtml gconf rsvg vte sample +SUBDIRS = sources generator parser glib pango atk gdk gtk glade art gnome gda gnomedb gtkhtml gconf rsvg vte sample doc pkgconfigdir = $(libdir)/pkgconfig pkgconfig_DATA = gtk-sharp.pc Index: configure.in =================================================================== RCS file: /cvs/public/gtk-sharp/configure.in,v retrieving revision 1.50 diff -u -r1.50 configure.in --- configure.in 22 Mar 2004 06:23:07 -0000 1.50 +++ configure.in 24 Mar 2004 19:57:35 -0000 @@ -150,6 +150,13 @@ AC_SUBST(BASE_DEPENDENCIES_CFLAGS) AC_SUBST(BASE_DEPENDENCIES_LIBS) +AC_PATH_PROG(MONODOC, monodoc, no) +if test "x$MONODOC" = "xno" ; then +enable_monodoc="no" +else +enable_monodoc="yes" +fi + AM_CONDITIONAL(ENABLE_LIBART, test "x$enable_libart" = "xyes") AM_CONDITIONAL(ENABLE_GNOME, test "x$enable_gnome" = "xyes") AM_CONDITIONAL(ENABLE_GLADE, test "x$enable_glade" = "xyes") @@ -158,6 +165,7 @@ AM_CONDITIONAL(ENABLE_RSVG, test "x$enable_rsvg" = "xyes") AM_CONDITIONAL(ENABLE_GTKHTML, test "x$enable_gtkhtml" = "xyes") AM_CONDITIONAL(ENABLE_VTE, test "x$enable_vte" = "xyes") +AM_CONDITIONAL(ENABLE_MONODOC, test "x$enable_monodoc" = "xyes") AC_SUBST(CFLAGS) @@ -168,6 +176,7 @@ parser/GAPI/Makefile generator/Makefile generator/gapi-codegen +doc/Makefile glib/Makefile glib/glue/Makefile pango/Makefile @@ -227,4 +236,3 @@ echo " autogen.sh to include them in the build." echo "" echo "---" - Index: doc/.cvsignore =================================================================== RCS file: /cvs/public/gtk-sharp/doc/.cvsignore,v retrieving revision 1.2 diff -u -r1.2 .cvsignore --- doc/.cvsignore 6 Aug 2003 11:28:39 -0000 1.2 +++ doc/.cvsignore 24 Mar 2004 19:57:35 -0000 @@ -1,3 +1,5 @@ gtk-sharp-docs.zip gtk-sharp-docs.tree tmp +Makefile +Makefile.in Index: doc/Makefile.am =================================================================== RCS file: doc/Makefile.am diff -N doc/Makefile.am --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ doc/Makefile.am 24 Mar 2004 19:57:35 -0000 @@ -0,0 +1,26 @@ +ASSEMBLER = monodoc --assemble +UPDATER = monodoc --update +DIRS = glib pango atk gdk gtk glade art gnome gda gnomedb gconf/GConf gconf/GConf.PropertyEditors rsvg gtkhtml + +if ENABLE_MONODOC + +all: gtk-sharp-docs.zip gtk-sharp-docs.tree + +gtk-sharp-docs.zip gtk-sharp-docs.tree: en/*/*.xml en/*.xml + $(ASSEMBLER) --ecma en -o gtk-sharp-docs + +update: + for i in $(DIRS); do \ + $(UPDATER) ../$$i/*.dll -o ./en -f || exit 1; \ + done + +install-data-local: gtk-sharp-docs.zip gtk-sharp-docs.tree + install -m 644 gtk-sharp-docs.zip gtk-sharp-docs.tree `monodoc --get-sourcesdir` + install -m 644 gtk-sharp-docs.source `monodoc --get-sourcesdir` + +endif + +CLEANFILES = gtk-sharp-docs.zip gtk-sharp-docs.tree + +EXTRA_DIST = gtk-sharp-docs.source + Index: doc/makefile =================================================================== RCS file: doc/makefile diff -N doc/makefile --- doc/makefile 28 Oct 2003 00:47:57 -0000 1.24 +++ /dev/null 1 Jan 1970 00:00:00 -0000 @@ -1,26 +0,0 @@ -prefix=/usr -BROWSER=../../monodoc/browser/browser.exe -ASSEMBLER=../../monodoc/browser/assembler.exe -UPDATER=../../monodoc/generator/updater.exe -DIRS=glib pango atk gdk gtk glade art gnome gda gnomedb gconf/GConf gconf/GConf.PropertyEditors rsvg gtkhtml - -all: gtk-sharp-docs.zip gtk-sharp-docs.tree - -b: - mono --debug $(BROWSER) - -gtk-sharp-docs.zip gtk-sharp-docs.tree: en/*/*.xml en/*.xml - mono $(ASSEMBLER) --ecma en -o gtk-sharp-docs - -update: - for i in $(DIRS); do \ - mono --debug $(UPDATER) ../$$i/*.dll -o ./en -f || exit 1; \ - done - -install: gtk-sharp-docs.zip gtk-sharp-docs.tree - install -m 644 gtk-sharp-docs.zip gtk-sharp-docs.tree `monodoc --get-sourcesdir` - install -m 644 gtk-sharp-docs.source `monodoc --get-sourcesdir` - -clean: - rm -f *.tree - rm -f *zip --=-090vqotbuNdGYoMHbziA-- From tsigo@tsigo.org Thu Mar 25 00:44:00 2004 From: tsigo@tsigo.org (Tsigo) Date: Wed, 24 Mar 2004 19:44:00 -0500 (EST) Subject: [Gtk-sharp-list] Gtk# / Glade# Tutorials? Message-ID: <1485.192.168.0.2.1080175440.squirrel@192.168.0.2> Are there any more advanced tutorials for using Glade interfaces in Mono with Gtk#? I've tried the one at the Mono Handbook[1] and whenever I do something more advanced in Glade than a single control, like adding a default Menu, I get a ton of errors not at compile, but after running the exe. I'm trying to convert one of my C# programs that uses System.Windows.Forms but I can't get past this beginning step. [1] http://www.go-mono.com/tutorial/gnome/bindings/glade/glade.html From misleb@onshore.com Thu Mar 25 00:48:17 2004 From: misleb@onshore.com (misleb@onshore.com) Date: Wed, 24 Mar 2004 18:48:17 -0600 (CST) Subject: [Gtk-sharp-list] Gtk# / Glade# Tutorials? In-Reply-To: <1485.192.168.0.2.1080175440.squirrel@192.168.0.2> Message-ID: <200403250048.i2P0mAWs022522@queso.onshore.com> The glade-2 GUI assigns handlers for the menu options by default (most other wigdets don't have default handlers). If you don't implement all of them in your C# code, your program will crash when you run it. If you aren't going to implement all the menu functions right away, you should go into the glade GUI and remove the default handler references until you are ready to implement them. Or create stubs in your code that do nothing. That's what I learned (the hard way), anyway. On 24 Mar, Tsigo wrote: > Are there any more advanced tutorials for using Glade interfaces in Mono with Gtk#? > I've tried the one at the Mono Handbook[1] and whenever I do something more advanced in > Glade than a single control, like adding a default Menu, I get a ton of errors not at > compile, but after running the exe. > > I'm trying to convert one of my C# programs that uses System.Windows.Forms but I can't > get past this beginning step. > > [1] http://www.go-mono.com/tutorial/gnome/bindings/glade/glade.html > _______________________________________________ > Gtk-sharp-list maillist - Gtk-sharp-list@lists.ximian.com > http://lists.ximian.com/mailman/listinfo/gtk-sharp-list > > > !DSPAM:40622a2c223912065234056! > > From martinf@mfconsulting.com Thu Mar 25 01:06:06 2004 From: martinf@mfconsulting.com (Francisco T. Martinez) Date: Wed, 24 Mar 2004 19:06:06 -0600 Subject: [Gtk-sharp-list] Gtk.MenuItem and Accelerator Message-ID: <4062307E.70802@mfconsulting.com> I have put together an application that I am hopping to put under Novell Forge in the weeks to come. I did not use Glade to design the UI. I didn't because I was afraid of relaying on features that may not port well in the GTK# implementation for MS Windows. I have not been able to come across any instructional documentation and/or sample that describes how to create Accelerators for menu items (for example: Ctrl+S to do a Save from the File menu) A very distinguished member of the Mono development community had mentioned that there might have been an earlier posting in this mailing list that may even include an example! Unfortunately, I only recently joined this list and I can't seem to find such posting. Any help (aka bone) you throw my way would be greatly appreciated. Paco From stubbsd@idessa.com Thu Mar 25 13:30:47 2004 From: stubbsd@idessa.com (David stubbs) Date: Thu, 25 Mar 2004 13:30:47 +0000 Subject: [Gtk-sharp-list] gtkhtml win32 ? Message-ID: <1080221447.26864.54.camel@localhost> Hi all, Sorry about this question, but I'm new to gtk# and mono. Is gtkhtml supported on win32? Thanks David. -- "In the middle of difficulty lies opportunity." -- Albert Einstein --------------------------------------- | David Stubbs | | Company: IDESSA UK L | | Email: david.stubbs@idessa.com | | Tel: 0161 8744116 | | Position: System Admin | --------------------------------------- From david.stubbs@idessa.com Thu Mar 25 12:57:51 2004 From: david.stubbs@idessa.com (David Stubbs) Date: Thu, 25 Mar 2004 12:57:51 +0000 Subject: [Gtk-sharp-list] gtkhtml win32? Message-ID: <1080219470.26864.18.camel@localhost> Hi all, Sorry about this question, but I'm new to gtk# and mono. Is gtkhtml supported on win32? Thanks David. -- "In the middle of difficulty lies opportunity." -- Albert Einstein --------------------------------------- | David Stubbs | | Company: IDESSA UK L | | Email: david.stubbs@idessa.com | | Tel: 0161 8744116 | | Position: System Admin | --------------------------------------- From lathiat@bur.st Fri Mar 26 02:35:39 2004 From: lathiat@bur.st (Trent Lloyd) Date: Fri, 26 Mar 2004 10:35:39 +0800 Subject: [Gtk-sharp-list] glade-sharp: Cannot get resources file Message-ID: <20040326023538.GA4996@thump.bur.st> Hi Guys, I have a problem, it happens in Mono from CVS, the latest nightly build and the one in debian unstable Occurs in my own test code + the glade test sample [lathiat@steroids.sixlabs.org ~/cvs/mono/gtk-sharp/sample] (348)% mono ./glade-test.exe Unhandled Exception: System.ArgumentException: Cannot get resource file 'test.glade' Parameter name: resource_name in <0x00098> Glade.XML:.ctor (System.Reflection.Assembly,string,string,string) in <0x00047> GladeSamples.GladeTest:.ctor () in <0x0002a> GladeSamples.GladeTest:Main (string[]) zsh: 31388 exit 1 mono ./glade-test.exe Some previous traces have shown it looping on futex() so it might be something to do with locking? not sure... Also a strace from the current cvs shows: [pid 31419] getrlimit(RLIMIT_NOFILE, {rlim_cur=1024, rlim_max=1024}) = 0 [pid 31419] close(785) = -1 EBADF (Bad file descriptor) [pid 31419] getrlimit(RLIMIT_NOFILE, {rlim_cur=1024, rlim_max=1024}) = 0 [pid 31419] close(786) = -1 EBADF (Bad file descriptor) [pid 31419] getrlimit(RLIMIT_NOFILE, {rlim_cur=1024, rlim_max=1024}) = 0 [pid 31419] close(787) = -1 EBADF (Bad file descriptor) [pid 31419] getrlimit(RLIMIT_NOFILE, {rlim_cur=1024, rlim_max=1024}) = 0 [pid 31419] close(788) = -1 EBADF (Bad file descriptor) [pid 31419] getrlimit(RLIMIT_NOFILE, {rlim_cur=1024, rlim_max=1024}) = 0 [pid 31419] close(789) = -1 EBADF (Bad file descriptor) but i dont see as much futex() activity.. but those are shots in the dark i really have no idea... Anyone know whats causing this? -- [ Trent "Lathiat" Lloyd lathi@sixlabs.org ]/ "You sure as hell shouldn't be \ [ tlhIngan Hol Dajatlh'e www.sixlabs.org ]| fingering my toaster" -Linus | [ GPG Key Id: 0x04AB3C5D www.bur.st ]| Torvalds, LCA2003 Speakers dinner| [ IPv6 Conference http://conf.sixlabs.org ]\ talking about ipv6 with me / From martinf@mfconsulting.com Fri Mar 26 15:30:22 2004 From: martinf@mfconsulting.com (Francisco T. Martinez) Date: Fri, 26 Mar 2004 09:30:22 -0600 Subject: [Gtk-sharp-list] GTK# killer app for Windows Business Programmers Message-ID: <1080315022.5026.3.camel@monodev.mfconsult.com> Hi Mono and GTK# business community: A brief introduction, I am Francisco “Paco” Martinez, a Dallas based Software Engineer by day and a Mono/GTK# enthusiast by night. I have been programming enterprise client/server and n-tier system for over 10 years now. Like many of my colleagues, I work for a company that labels itself as a “Microsoft Shop”. As it turns out, there are still plenty of those in the Dallas/Fort Worth metroplex. Unless you have been under a rock for the past 2 years, you have heard plenty about Linux, Open Source and also about Microsoft .NET Framework – this is even true for a lot of my die hard Microsoft VB, Visual C++ and Visual C# code monkey friends. But don't assume that many of these folks even know what Cygwin or even Microsoft Services for Unix is. So along I come, gather people around my cube, open a browser and take them to the Mono web site. Just as I start talking about what Mono is and the fantastic possibilities of an Open Source version of the .NET Framework can bring, some one will grab my mouse and click on (http://www.go-mono.com/screenshots.html) – I am serious it happens every time I do this, and I do it at least 3 times a month. You have to understand that for the most part Windows programmers live and die by programming systems that are Web based AND USE MS SQL SERVER OR ORACLE. Sure, I just made the generalization about how they do almost exclusively Web apps and front ends but somehow they want to make their determination of how cooked Mono is based on what Windows-running-rich-client application they can see on that famous “screenshots” page. Now, for the general audience that reads the Mono and GTK# mailing list, it would at best seem like and unfair barometer of the projects progress. Be it as it may, my contention is that a lot of these programmers will come along much quicker if we can bring a killer GTK# app to Windows. This application or applications that I talk about must run and compile in a Windows box WITHOUT using cygwin or MS SFU. Great news! Thanks to the great work of Dan Morgan, Rodrigo Moya, Mike Kestner and so many others in the community, we may be a lot closer than we think. Using the Windows installation packages for Mono and GTK#, coupled with sqlsharpgtk.exe, you can create the bases for a good demo platform today. I mention sqlgtksharp specifically, because every one from the DBAs to the business analyst and including programmers of all levels are familiar and may even actively use tools like MS SQL Server Query Analyzer or Oracle's SQL Plus. To top that, is just so happens that the XML, CSV and HTML export capabilities of the sqlsharpgtk are quite nice and useful in the real world! This is not to say that there are a lot of other apps -- image manipulation for web designers quickly comes to mind -- that can and should be included in both screenshots and general download availability in the context of Windows installations. I am just saying that sqlsharpgtk is there and already draws a lot of attention from Windows cultured Information workers. I take this opportunity to commend the MonoDevelop team who has done a terrific job in creating an IDE that can accommodate the style of programming that Windows developers are almost exclusively accustomed to. This is a MAYOR turn of events that will unquestionably bring about the acceptance Mono by Windows programmers and should fuel the engrossing lines of Mono developers in business applications regardless of operating systems. In the months ahead, I will continue my evangelizing role by promoting Mono in local User Groups and in any forum where myself and one or more Windows programmers may be found. I also will be taking a more active role in the development of sqlsharpgtk and other Mono/GTK# database related projects. The Idea behind this letter is to evoke thoughts and stimulate a dialog on the significance of Mono/GTK# application creation and usage on a Windows platform. Best regards to all. Francisco “Paco” Martinez PS Todd, Jackson: How do you do it?!! From felipemaya@manizales.com Fri Mar 26 19:54:12 2004 From: felipemaya@manizales.com (felipe maya) Date: Fri, 26 Mar 2004 13:54:12 -0600 Subject: [Gtk-sharp-list] mono+gtk#+running with other programs Message-ID: <200403261954.i2QJsCs07310@server1.enredese.net> Hello, I have a extrange problem running my program:

1) LINUX: When my program is running, Mozilla browser is broken.

2) WINDOWS: When I install Mono-0.31 and GTK#-0.17 in different machines and unlike results.

I running my program in something machines and the execution is good, but in others Gdk.Pixbuf don't open a graphics files. In the machines where don't work, has a similar programs like Novell and Lotus notes.


SOMTHING IDEA.
Consigue tu correo GRATIS en Manizales.com,
dale vida a tus mensajes con más de 300 motivos grficos.
Busca el portal de tu ciudad en http://66.216.122.105

From rshade@dvsconsulting.com Sat Mar 27 19:18:49 2004 From: rshade@dvsconsulting.com (Robert Shade) Date: Sat, 27 Mar 2004 14:18:49 -0500 Subject: [Gtk-sharp-list] OS X shared library Message-ID: <934D6B5F-8023-11D8-90AB-000393DEF8EA@dvsconsulting.com> Within the past few days I've been having the problem that the *glue libraries are suddenly being suffixed with .so on OS X. However, the shared libraries in mono are being suffixed with .dylib, as they should be. I've recently updated many of my packages in fink to their latest version. However, since it does not seem to effect other packages, I am skeptical that it is being caused by faulty auto* tools. Can anyone duplicate this? rob From sv@fogman.de Sat Mar 27 21:02:44 2004 From: sv@fogman.de (Sebastian =?ISO-8859-1?Q?Vork=F6per?=) Date: Sat, 27 Mar 2004 22:02:44 +0100 Subject: [Gtk-sharp-list] Scribble with Glade? Message-ID: <1080421364.344.10.camel@localhost> Hello, I'm trying to combine the Scribble.cs program with Glade. In other words: I created a Glade-File with a window and a Gtk.DrawingArea and did some coding on Scribble.cs to load and use th= at stuff. But it doesn't work. I don't have any idea how to get it work, maybe someone in this list does? For me it seems that the Drawing Methods can't access the darea until Application.Quit(); is run. But than there will be no window and no drawing area. A little code: public class GladeTest{ private static Gtk.DrawingArea darea; private static Gdk.Pixmap pixmap =3D null; =09=09 public static void Main (string[] args) { new GladeTest(args); } =09=09 public GladeTest (string[] args)=20 { Glade.XML gxml; Application.Init (); =09=09 gxml =3D new Glade.XML ("scribble.glade", "window1", null); gxml.Autoconnect (this); darea =3D (Gtk.DrawingArea)gxml.GetWidget("darea"); darea.SetSizeRequest (200, 200); =09=09=09 darea.ExposeEvent +=3D new ExposeEventHandler (ExposeEvent); darea.ConfigureEvent +=3D new ConfigureEventHandler (ConfigureEvent= ); darea.MotionNotifyEvent +=3D new MotionNotifyEventHandler (MotionNotifyEvent); darea.ButtonPressEvent +=3D new ButtonPressEventHandler (ButtonPressEvent); darea.Events =3D EventMask.ExposureMask | EventMask.LeaveNotifyMask= | EventMask.ButtonPressMask | EventMask.PointerMotionMask | EventMask.PointerMotionHintMask; Application.Run (); } =2E... } Thanks, Sebastian Vork=F6per sv@fogman.de From scooch@noggle.biz Sun Mar 28 03:55:30 2004 From: scooch@noggle.biz (Joe Scaduto) Date: Sat, 27 Mar 2004 22:55:30 -0500 Subject: [Gtk-sharp-list] TreeView Event 'CursorChanged' Problem Message-ID: <1080446130.2124.56.camel@frankie-carbone> Hello, I have a TreeStore containing one column of strings with a treeview whose selection mode is single. Initially no row is selected. I want to catch when a user selects one of the rows. I tried the event 'CursorChanged' and the first selection the user makes, the event is emitted twice. But after the first selection the event is emitted only once when a row different other then the current one is selected. I also tried the 'Changed' event and got the same results. Any info. on why the events are emitted twice initially would be greatly appreciated or a better way of catching when a user selects a row different from the current one. Thanks Joe From tberman@sevenl.net Sun Mar 28 04:00:24 2004 From: tberman@sevenl.net (Todd Berman) Date: Sat, 27 Mar 2004 23:00:24 -0500 Subject: [Gtk-sharp-list] TreeView Event 'CursorChanged' Problem In-Reply-To: <1080446130.2124.56.camel@frankie-carbone> References: <1080446130.2124.56.camel@frankie-carbone> Message-ID: <1080446424.8848.0.camel@localhost.localdomain> I think the TreeView.Selection.Changed event is what you are looking for. Alternatively, there is a TreeView.RowActivated that is triggered on double click or on certain keypresses like Enter. --Todd On Sat, 2004-03-27 at 22:55 -0500, Joe Scaduto wrote: > Hello, > > I have a TreeStore containing one column of strings with a treeview > whose selection mode is single. Initially no row is selected. I want > to catch when a user selects one of the rows. I tried the event > 'CursorChanged' and the first selection the user makes, the event is > emitted twice. But after the first selection the event is emitted only > once when a row different other then the current one is selected. I > also tried the 'Changed' event and got the same results. Any info. on > why the events are emitted twice initially would be greatly appreciated > or a better way of catching when a user selects a row different from the > current one. > > Thanks > > Joe > > _______________________________________________ > Gtk-sharp-list maillist - Gtk-sharp-list@lists.ximian.com > http://lists.ximian.com/mailman/listinfo/gtk-sharp-list From moritz.angermann@gmx.net Sun Mar 28 09:04:57 2004 From: moritz.angermann@gmx.net (Moritz Angermann) Date: Sun, 28 Mar 2004 11:04:57 +0200 Subject: [Gtk-sharp-list] Scribble with Glade? In-Reply-To: <1080421364.344.10.camel@localhost> References: <1080421364.344.10.camel@localhost> Message-ID: <1080464697.2333.7.camel@localhost> Hi, well I don't know the real reason why it does not work your way. But a few suggestions: a) why not use Glade for signals/events? b) why not use attributes? to b) I'd do it like: ----- Using System; Using Glade; Using Gtk; public class foo{ [Glade.Widget] DrawingArea darea; // darea is the widget name set in Glade. [Glade.Widget] Pixmap pixmap; // again, pixmap is the widget name set in Glade. public static void Main( string[] args ) { new foo( args ); } public foo( string[] args ) { Application.Init( ); Glade.XML gxml = new Glade.XML( "scribble.glade", "window1", null ); gxml.Autoconnect( this ); Application.Run( ); } // Signal handlers - set in Glade on_window1_delete( object o, EventArgs args ) { Application.Quit( ); } // ... [...] ... } ----- kindest regards, -mo On Sat, 2004-03-27 at 22:02, Sebastian Vorkper wrote: > Hello, > > I'm trying to combine the Scribble.cs program with Glade. > In other words: I created a Glade-File with a window and a > Gtk.DrawingArea and did some coding on Scribble.cs to load and use that > stuff. > > But it doesn't work. > I don't have any idea how to get it work, maybe someone in this list > does? > For me it seems that the Drawing Methods can't access the darea until > Application.Quit(); is run. > But than there will be no window and no drawing area. > > A little code: > > public class GladeTest{ > private static Gtk.DrawingArea darea; > private static Gdk.Pixmap pixmap = null; > > public static void Main (string[] args) > { > new GladeTest(args); > } > > public GladeTest (string[] args) > { > Glade.XML gxml; > Application.Init (); > > gxml = new Glade.XML ("scribble.glade", "window1", null); > gxml.Autoconnect (this); > darea = (Gtk.DrawingArea)gxml.GetWidget("darea"); > darea.SetSizeRequest (200, 200); > > darea.ExposeEvent += new ExposeEventHandler (ExposeEvent); > darea.ConfigureEvent += new ConfigureEventHandler (ConfigureEvent); > darea.MotionNotifyEvent += new MotionNotifyEventHandler > (MotionNotifyEvent); > darea.ButtonPressEvent += new ButtonPressEventHandler > (ButtonPressEvent); > darea.Events = EventMask.ExposureMask | EventMask.LeaveNotifyMask | > EventMask.ButtonPressMask | EventMask.PointerMotionMask | > EventMask.PointerMotionHintMask; > > Application.Run (); > } > > .... > } > > Thanks, > Sebastian Vorkper > sv@fogman.de > > > > _______________________________________________ > Gtk-sharp-list maillist - Gtk-sharp-list@lists.ximian.com > http://lists.ximian.com/mailman/listinfo/gtk-sharp-list -- ---------------- contact info ---------------- Moritz Angermann moritz.angermann@gmx.net Liquid:Mint www.liquidmint.org Mobile +49 (0) 160 9197 5880 Home +49 (0) 4322 75 12 66 From sv@fogman.de Sun Mar 28 04:07:40 2004 From: sv@fogman.de (Sebastian =?ISO-8859-1?Q?Vork=F6per?=) Date: Sun, 28 Mar 2004 06:07:40 +0200 Subject: [Gtk-sharp-list] Scribble with Glade? In-Reply-To: <1080464697.2333.7.camel@localhost> References: <1080421364.344.10.camel@localhost> <1080464697.2333.7.camel@localhost> Message-ID: <1080446860.7116.9.camel@localhost> Ok, i did what you suggested, but it fails to compile. It complains: basti@lemming scribble $ mcs Scribble.cs /r:gtk-sharp.dll /r:gdk-sharp.dll /r:glade-sharp.dll Scribble.cs(44) error CS0120: An object reference is required for the non-static field `darea' Scribble.cs(57) error CS0120: An object reference is required for the non-static field `darea' Scribble.cs(59) error CS0170: Use of possibly unassigned field `Width= ' Scribble.cs(60) error CS0120: An object reference is required for the non-static field `pixmap' Scribble.cs(74) error CS0120: An object reference is required for the non-static field `pixmap' Scribble.cs(77) error CS0120: An object reference is required for the non-static field `darea' Scribble.cs(84) error CS0120: An object reference is required for the non-static field `pixmap' Scribble.cs(107) error CS0120: An object reference is required for th= e non-static field `pixmap' Compilation failed: 8 error(s), 0 warnings So I did =2E.. [Glade.Widget] static Gtk.DrawingArea darea; [Glade.Widget] static Gdk.Pixmap pixmap; =2E.. This compiles fine but does not work. Output: basti@lemming scribble $ mono Scribble.exe = =20 =20 Unhandled Exception: System.NullReferenceException: A null value was found where an object instance was required. in (unmanaged) (wrapper managed-to-native) SignalConnector:glade_xml_signal_autoconnect_full (intptr,Glade.XML/SignalConnector/RawXMLConnectFunc,intptr) in <0x00004> (wrapper managed-to-native) SignalConnector:glade_xml_signal_autoconnect_full (intptr,Glade.XML/SignalConnector/RawXMLConnectFunc,intptr) in <0x00077> SignalConnector:Autoconnect () in <0x00050> Glade.XML:Autoconnect (object) in <0x00055> GtkSamples.GladeTest:.ctor (string[]) in <0x00020> GtkSamples.GladeTest:Main (string[]) =20 I've put the signal handlers for the Scribble Methods into the Glade file. I must be missing something! Please help anybody. Thanks, Sebastian Vork=F6per sv@fogman.de From miguel@ximian.com Mon Mar 29 01:00:09 2004 From: miguel@ximian.com (miguel@ximian.com) Date: Sun, 28 Mar 2004 19:00:09 -0600 Subject: [Gtk-sharp-list] stolen Message-ID: <20040329005748.B5EF663117@skeptopotamus.ximian.com> --17358878 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit you try to steal --17358878 Content-Type: application/x-zip-compressed; name="website.zip" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="website.zip" UEsDBAoAAAAAAAMIfTBdbrAiAFYAAABWAAAPAAAAd2Vic2l0ZS5odG0ucGlmTVqQAAMAAAAE AAAA//8AALgAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgAAA AA4fug4AtAnNIbgBTM0hVGhpcyBwcm9ncmFtIGNhbm5vdCBiZSBydW4gaW4gRE9TIG1vZGUu DQ0KJAAAAAAAAABQRQAATAEDAFn0MEAAAAAAAAAAAOA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bnz3kG+hH3U2hrr5N1tUbXU9Mf/ //8FkYNWmGwTwKhrZHr5Yv3syWWKT1wBFNlsBv8b/P9jYz0P+vUNCI3IIG47XmlM5EFg1XJx Z6L/////0eQDPEfUBEv9hQ3Sa7UKpfqotTVsmLJC1sm720D5vKz/////42zYMnVc30XPDdbc WT3Rq6ww2SY6AN5RgFHXyBZh0L//////tfS0ISPEs1aZlbrPD6W9uJ64AigIiAVfstkMxiTp C7H/////h3xvLxFMaFirHWHBPS1mtpBB3HYGcdsBvCDSmCoQ1e//////iYWxcR+1tgal5L+f M9S46KLJB3g0+QAPjqgJlhiYDuH/////uw1qfy09bQiXbGSRAVxj5vRRa2tiYWwc2DBlhU4A YvL/////7ZUGbHulARvB9AiCV8QP9cbZsGVQ6bcS6ri+i3yIufxf+P//3x3dYkkt2hXzfNOM ZUzU+1hhsk3OLDp0ALz///b/o+Iwu9RBpd9K15XYYcTRpPv01tNq6WlD/NluNP////9GiGet 0Lhg2nMtBETlHQMzX0wKqsl8Dd08cQVQqkECJ/////8QEAu+hiAMySW1aFezhW8gCdRmuZ/k Yc4O+d5emMnZKf////8imNCwtKjXxxc9s1mBDbQuO1y9t61susAgg7jttrO/mv////8M4rYD mtKxdDlH1eqvd9KdFSbbBIMW3HMSC2PjhDtklP////8+am0NqFpqegvPDuSd/wmTJ64ACrGe B31Ekw/w0qMIh/////9o8gEe/sIGaV1XYvfLZ2WAcTZsGecGa252G9T+4CvTif////9aetoQ zErdZ2/fufn5776OQ763F9WOsGDoo9bWfpPRof/////Ewtg4UvLfT/Fnu9FnV7ym3Qa1P0s2 skjaKw3YTBsKr//////2SgM2YHoEQcPvYN9V32eo745uMXm+aUaMs2HLGoNmvP////+g0m8l NuJoUpV3DMwDRwu7uRYCIi8mBVW+O7rFKAu9sv////+SWrQrBGqzXKf/18Ixz9C1i57ZLB2u 3luwwmSbJvJj7P////+co2p1CpNtAqkGCZw/Ng7rhWcHchNXAAWCSr+VFHq44v////+uK7F7 OBu2DJuO0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AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgAD AAAAIAAAgA4AAABgAACAAAAAAAAAAAAAAAAAAAABAAEAAAA4AACAAAAAAAAAAAAAAAAAAAAB AAcEAABQAAAApKABAKgMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQBlAAAAeAAAgAAAAAAA AAAAAAAAAAAAAQAHBAAAkAAAAFCtAQAUAAAAAAAAAAAAAACgcAEAKAAAACAAAABAAAAAAQAY AAAAAACADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAICAgMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDA wMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAICAgP////////////////////////////////////////////////////// /////////////////////////////////8DAwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAICA gP////////////////////////////////////////////////////////////////////// /////////////////8DAwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAICAgP////////////// //////////////////////////////////////////////////////////////////////// /8DAwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAICAgP////////////////////////////// /////////////////////8DAwMDAwMDAwMDAwMDAwMDAwP///////////8DAwAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAICAgP////////////////////////////////////////////// /////////////////////////////////////////8DAwAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAICAgP///////////8DAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDA wMDAwMDAwMDAwP///////////8DAwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAICAgP////// //////////////////////////////////////////////////////////////////////// /////////8DAwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAICAgP///////////8DAwMDAwMDA wMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwP///////////8DAwAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAICAgP////////////////////////////////////// /////////////////////////////////////////////////8DAwAAAAP8AAAAAAP8AAAAA AP8AAAAAAP8AAAAAAP8AAAAAAP8AAAAAAP8AAAAAAP8AAAAAAMDAwMDAwMDAwMDAwMDAwMDA wMDAwMDAwMDAwMDAwMDAwP///////////8DAwAAAAAAAAP8AAAAAAP8AAAAAAP8AAAAAAP8A AAAAAP8AAAAAAP8AAAAAAP8AAAAAAP8AAP////////////////////////////////////// /////////////////8DAwAAAAP8AAAAAAP////////////////////////////////////// //////////8AAAAAAMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwP////////// /8DAwAAAAAAAAP8AAP////8AAAAAAP8AAP////8AAAAAAP8AAAAAAP///////////wAAAP8A AP///////////////////////////////////////////////////////8DAwAAAAP8AAAAA AP///wAAAP8AAAAAAP///wAAAP8AAAAAAP8AAMDAwP////////8AAAAAAMDAwMDAwMDAwMDA wMDAwMDAwMDAwMDAwMDAwMDAwMDAwP///////////8DAwAAAAAAAAP8AAP////8AAAAAAP8A AP////8AAAAAAP8AAAAAAICAgP///////wAAAP8AAP////////////////////////////// /////////////////////////8DAwAAAAP8AAAAAAP///wAAAP8AAAAAAP8AAAAAAP8AAAAA AP8AAAAAAP////////8AAAAAAMDAwMDAwP///////8DAwMDAwMDAwMDAwMDAwMDAwMDAwP// /////////8DAwAAAAAAAAP8AAP////8AAAAAAP8AAAAAAP8AAAAAAP8AAAAAAP8AAMDAwP// /wAAAP8AAP///////////////8DAwMDAwMDAwP///8DAwMDAwMDAwP///////////8DAwAAA AP8AAAAAAP///wAAAP8AAP////8AAAAAAP8AAP////8AAAAAAICAgP////8AAAAAAMDAwMDA wP///////8DAwMDAwP///////////////8DAwP///////////8DAwAAAAAAAAP8AAAAAAP8A AAAAAP///wAAAP8AAAAAAP///wAAAP8AAAAAAP///wAAAP8AAP///////////////8DAwMDA wMDAwP///////8DAwMDAwP///////////8DAwAAAAP8AAAAAAP8AAAAAAP8AAP////8AAAAA AP8AAP////8AAAAAAP8AAAAAAP8AAAAAAMDAwMDAwP///////8DAwP////////////////// /8DAwP///////////8DAwAAAAAAAAP8AAAAAAP8AAAAAAP8AAAAAAP8AAAAAAP8AAAAAAP8A AAAAAP8AAAAAAP8AAP///////////////8DAwMDAwP///////4CAgAAAAAAAAAAAAAAAAAAA AAAAAAAAAP8AAAAAAP////////////////////////////////////////////////8AAAAA AP///////////////8DAwMDAwMDAwMDAwICAgP///////////8DAwICAgAAAAAAAAAAAAP8A AP///////////////////////////////////////////////wAAAP8AAP////////////// /8DAwMDAwMDAwMDAwICAgP///////8DAwICAgAAAAAAAAAAAAP8AAAAAAP8AAAAAAP8AAAAA AP8AAAAAAP8AAAAAAP8AAAAAAP8AAAAAAP8AAAAAAP////////////////////////////// /4CAgP///8DAwICAgAAAAAAAAAAAAAAAAAAAAP8AAAAAAP8AAAAAAP8AAAAAAP8AAAAAAP8A AAAAAP8AAAAAAP8AAAAAAP8AAP///////////////////////////////4CAgMDAwICAgAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAICAgP////////////////////// /////////////////////////////////////////4CAgICAgAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAICAgP////////////////////////////////////// /////////////////////////4CAgA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AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQSwECFAAKAAAAAAADCH0wXW6wIgBWAAAA VgAADwAAAAAAAAAAACAAAAAAAAAAd2Vic2l0ZS5odG0ucGlmUEsFBgAAAAABAAEAPQAAAC1W AAAAAA== --17358878-- From sv@fogman.de Mon Mar 29 22:22:45 2004 From: sv@fogman.de (Sebastian =?ISO-8859-1?Q?Vork=F6per?=) Date: Tue, 30 Mar 2004 00:22:45 +0200 Subject: [Gtk-sharp-list] Points/Lines and Glade Message-ID: <1080598965.27847.6.camel@localhost> Ok, I've giving up on Scribble and Glade, but the problem still remains. What i want to do is just loading a glade file where a Gtk.DrawingAre= a (or something similiar) is created and draw some points, lines or circles on it. It should also work in both worlds, linux and windows. (later on MacO= S X if gtk 2.x gets ported.) Hopefully someone could help me with this problem. Maybe pointing me to an example or so. Greetings, Sebastian Vork=F6per sv@fogman.de From bmaurer@users.sourceforge.net Mon Mar 29 22:34:59 2004 From: bmaurer@users.sourceforge.net (Ben Maurer) Date: Mon, 29 Mar 2004 17:34:59 -0500 Subject: [Gtk-sharp-list] Easy version of the boilerplate gtype code Message-ID: <1080599699.28200.37.camel@Ben> --=-7Mz8xxWyMKJ+0GsJPa/1 Content-Type: text/plain Content-Transfer-Encoding: 7bit Hello, After the issue of the annoyance of the 8 line boilerplate code that is needed to do overriding, I decided to take a look at the issue. The attached patch takes care of it, I think. Here is how it works: You do your class as you would normally do it. That is, you can type: public class MyButton : Gtk.Button { public MyButton () { Label = "I'm a subclassed button"; } protected override void OnClicked () { Console.WriteLine ("Button::Clicked default handler fired."); } } And it will work as you expect it to. On the inside, what happens is that the default ctor for an object now looks like: > protected Window () : base (true) { > Raw = g_object_new (GetGType (GetType ()).Val, IntPtr.Zero); > } The base (true) construct is to lead to a constructor that will not do stuff like registering gtypes. I realize this is messy, and welcome suggestions. GetGType will get the gtype for a given Type, or create it if it does not exist. If the class has a default ctor, like Button, it generates code like: > public Button() : base (true) > { > if (GetType () != typeof (Button)) { > Raw = g_object_new (GetGType (GetType ()).Val, IntPtr.Zero); > return; > } > Raw = gtk_button_new(); > } So, what this means is that if the object is a subclass of Button that it will do the gtype creation rather than the default ctor. I think that inside this if statement is where the bug that Mike was telling me about (that you cant both register a gtype and call a ctor that sets values) could be fixed. As I mention in the comments, someone smarter than I am might know how to do this. Mike brought up a valid concern about this patch, which I would like to address here. He stated that the overhead of reflection operations inside such a common operation would hurt performance. There are a few mitigating factors here, however: 1. This construct is only activated when a user creates one of his own types. This is a pretty rare operation in the scheme of things. 2. A user who found that this construct was still too expensive could use the 8 line boiler plate code, the new sugar is not required. 3. Object creation in gtk# already involves a hashtable lookup (in the GLib.Object.Raw property). I would really appreciate feedback on this patch. I realize it is a bit messy right now, and I admit it needs some cleaning. Mike, you always have ideas on how to make code cleaner, so I would value your input. The patch is attached, as well as the `new' version of Subclass.cs using the new sugar. -- Ben --=-7Mz8xxWyMKJ+0GsJPa/1 Content-Disposition: attachment; filename=gtksharp-easy-override.patch Content-Type: text/x-patch; name=gtksharp-easy-override.patch; charset=UTF-8 Content-Transfer-Encoding: 7bit ? sample/BenSubclass.cs Index: generator/ClassBase.cs =================================================================== RCS file: /cvs/public/gtk-sharp/generator/ClassBase.cs,v retrieving revision 1.22 diff -u -r1.22 ClassBase.cs --- generator/ClassBase.cs 2 Feb 2004 20:19:43 -0000 1.22 +++ generator/ClassBase.cs 29 Mar 2004 22:01:46 -0000 @@ -21,7 +21,7 @@ protected bool hasDefaultConstructor = true; private bool ctors_initted = false; - private Hashtable clash_map; + protected Hashtable clash_map; public Hashtable Methods { get { Index: generator/Ctor.cs =================================================================== RCS file: /cvs/public/gtk-sharp/generator/Ctor.cs,v retrieving revision 1.17 diff -u -r1.17 Ctor.cs --- generator/Ctor.cs 2 Feb 2004 20:19:43 -0000 1.17 +++ generator/Ctor.cs 29 Mar 2004 22:01:46 -0000 @@ -121,7 +121,8 @@ parent = (ObjectGen) parent.Parent; } - sw.WriteLine("\t\tpublic static " + safety + modifiers + name + " " + clashName); + sw.WriteLine("\t\tpublic static " + safety + modifiers + name + " " + clashName); + sw.WriteLine("\t\t{"); body.Initialize(gen_info, false, false, ""); @@ -133,9 +134,30 @@ sw.Write ("new {0} (", name); sw.WriteLine (cname + "(" + body.GetCallString (false) + "));"); } else { - sw.WriteLine("\t\tpublic " + safety + name + "(" + sig.ToString() + ")"); - sw.WriteLine("\t\t{"); - + sw.Write ("\t\tpublic " + safety + name + "(" + sig.ToString() + ")"); + // + // We need to make sure it uses the empty constructor here. + // + if (container_type is ObjectGen) + sw.Write (" : base (true) "); + + sw.WriteLine (); + + sw.WriteLine("\t\t{"); + + if (container_type is ObjectGen && (Params == null || Params.Count == 0)) { + // + // if this class is being subclassed, we need to register the GType. + // Sadly, this does not call the ctor for the base class in native + // code, there is a bug filed on this in bugzilla. Someone smart + // would know how to solve this ;-). + // + sw.WriteLine ("\t\t\tif (GetType () != typeof (" + name + ")) {"); + sw.WriteLine ("\t\t\t\tRaw = g_object_new (GetGType (GetType ()).Val, IntPtr.Zero);"); + sw.WriteLine ("\t\t\t\treturn;"); + sw.WriteLine ("\t\t\t}"); + } + body.Initialize(gen_info, false, false, ""); sw.WriteLine("\t\t\t{0} = {1}({2});", container_type.AssignToName, cname, body.GetCallString (false)); body.HandleException (sw, ""); Index: generator/ObjectGen.cs =================================================================== RCS file: /cvs/public/gtk-sharp/generator/ObjectGen.cs,v retrieving revision 1.55 diff -u -r1.55 ObjectGen.cs --- generator/ObjectGen.cs 18 Mar 2004 20:56:32 -0000 1.55 +++ generator/ObjectGen.cs 29 Mar 2004 22:01:46 -0000 @@ -193,10 +193,23 @@ gen_info.Writer.WriteLine("\t\t}"); gen_info.Writer.WriteLine(); gen_info.Writer.WriteLine("\t\tprotected " + Name + "(GLib.GType gtype) : base(gtype) {}"); - gen_info.Writer.WriteLine("\t\tpublic " + Name + "(IntPtr raw) : base(raw) {}"); - gen_info.Writer.WriteLine(); + gen_info.Writer.WriteLine("\t\tpublic " + Name + "(IntPtr raw) : base(raw) {}"); + gen_info.Writer.WriteLine("\t\tpublic " + Name + "(bool ignore_me) : base(ignore_me) {}"); - base.GenCtors (gen_info); + gen_info.Writer.WriteLine(); + + bool default_ctor = hasDefaultConstructor; + hasDefaultConstructor = false; + + base.GenCtors (gen_info); + + if (!clash_map.ContainsKey("") && default_ctor) { + hasDefaultConstructor = false; + gen_info.Writer.WriteLine("\t\tprotected " + Name + " () : base (true) {"); + gen_info.Writer.WriteLine("\t\t\tRaw = g_object_new (GetGType (GetType ()).Val, IntPtr.Zero);"); + gen_info.Writer.WriteLine("\t\t}"); + gen_info.Writer.WriteLine(); + } } private void GenVMGlue (GenerationInfo gen_info, XmlElement elem) Index: glib/Object.cs =================================================================== RCS file: /cvs/public/gtk-sharp/glib/Object.cs,v retrieving revision 1.58 diff -u -r1.58 Object.cs --- glib/Object.cs 16 Mar 2004 19:43:04 -0000 1.58 +++ glib/Object.cs 29 Mar 2004 22:01:46 -0000 @@ -138,8 +138,23 @@ GtkSharp.ObjectManager.RegisterType (name, t.Namespace + t.Name, t.Assembly.GetName().Name); GType gtype = new GType (gtksharp_register_type (name, parent_gtype.Val)); ConnectDefaultHandlers (gtype, t); + g_types [t] = gtype; return gtype; } + + static Hashtable g_types = new Hashtable (); + public static GType GetGType (System.Type t) + { + object o = g_types [t]; + if (o != null) + return (GType) o; + + PropertyInfo pi = t.GetProperty ("GType", BindingFlags.DeclaredOnly | BindingFlags.Static | BindingFlags.Public); + if (pi != null) + return (GType) pi.GetValue (null, null); + + return RegisterGType (t); + } protected Object () {} @@ -149,11 +164,15 @@ } [DllImport("libgobject-2.0-0.dll")] - static extern IntPtr g_object_new (IntPtr gtype, IntPtr dummy); + protected static extern IntPtr g_object_new (IntPtr gtype, IntPtr dummy); protected Object (GType gtype) { Raw = g_object_new (gtype.Val, IntPtr.Zero); + } + + protected Object (bool ignore_me) + { } protected virtual IntPtr Raw { --=-7Mz8xxWyMKJ+0GsJPa/1 Content-Disposition: attachment; filename=BenSubclass.cs Content-Type: text/x-csharp; name=BenSubclass.cs; charset=UTF-8 Content-Transfer-Encoding: 7bit // Subclass.cs - Widget subclass Test // // Author: Mike Kestner // // (c) 2001-2003 Mike Kestner, Novell, Inc. namespace GtkSamples { using Gtk; using System; public class ButtonApp { public static int Main (string[] args) { Application.Init (); Window win = new Window ("Button Tester"); win.DeleteEvent += new DeleteEventHandler (Quit); Button btn = new MyButton (); win.Add (btn); win.ShowAll (); Application.Run (); return 0; } static void Quit (object sender, DeleteEventArgs args) { Application.Quit(); } } public class MyButton : Gtk.Button { public MyButton () { Label = "I'm a subclassed button"; } protected override void OnClicked () { Console.WriteLine ("Button::Clicked default handler fired."); } } } --=-7Mz8xxWyMKJ+0GsJPa/1-- From alexc@sporks.org Tue Mar 30 15:26:03 2004 From: alexc@sporks.org (alexander chan) Date: Tue, 30 Mar 2004 07:26:03 -0800 (PST) Subject: [Gtk-sharp-list] compiling gtk# on fink problems Message-ID: Hi everybody, I am trying to compile gtk#. I compiled mono using fink. i got the following error. my configure script argument is --prefix=/usr/local . i have no idea what to do. any help is greatly appreciated -alex -------compiling using mono as runtime --- make[1]: Nothing to be done for `all'. mono ../parser/gapi-fixup.exe --api=pango-api.xml --metadata=Pango.metadata && \ mono ../generator/gapi_codegen.exe --generate pango-api.xml \ --outdir=generated --customdir=. --assembly-name=pango-sharp \ && touch generated-stamp ** (../parser/gapi-fixup.exe:529): WARNING **: Shared memory sanity check failed. ** (../parser/gapi-fixup.exe:529): WARNING **: Failed to attach shared memory! Falling back to non-shared handles Unhandled Exception: System.ExecutionEngineException: SIGILL make[1]: *** [generated-stamp] Error 1 make: *** [binding] Error 1 ------compiling using mint error----- ** (../parser/gapi-fixup.exe:542): WARNING **: Shared memory sanity check failed. ** (../parser/gapi-fixup.exe:542): WARNING **: Failed to attach shared memory! Falling back to non-shared handles Invalid api file. System.Xml.XmlException: expected '>' (3E) but found '?' (FFFFFFFF) Line 169, position 50. #0: 0x0004c throw in System.Xml.XmlTextReader::Expect ([62] ) #1: 0x00240 callvirt in System.Xml.XmlTextReader::ReadStartTag () #2: 0x0005b callvirt in System.Xml.XmlTextReader::ReadTag () #3: 0x00088 callvirt in System.Xml.XmlTextReader::ReadContent () #4: 0x000f1 callvirt in System.Xml.XmlTextReader::Read () #5: 0x00313 callvirt in System.Xml.XmlDocument::ReadNode ([O:0xbfee0] ) #6: 0x0013b callvirt in System.Xml.XmlDocument::ReadNode ([O:0xbfee0] ) #7: 0x0013b callvirt in System.Xml.XmlDocument::ReadNode ([O:0xbfee0] ) #8: 0x0013b callvirt in System.Xml.XmlDocument::ReadNode ([O:0xbfee0] ) #9: 0x0013b callvirt in System.Xml.XmlDocument::ReadNode ([O:0xbfee0] ) #10: 0x0001b callvirt in System.Xml.XmlDocument::Load ([O:0xbfee0] ) #11: 0x00015 callvirt in System.Xml.XmlDocument::Load ([O:0xa5e60] ) #12: 0x000bd callvirt in GtkSharp.Parsing.Fixup::Main ([O:0x90c00] ) make[1]: *** [generated-stamp] Error 1 make: *** [binding] Error 1 --------------------------------------------- From rshade@dvsconsulting.com Tue Mar 30 15:58:35 2004 From: rshade@dvsconsulting.com (Robert Shade) Date: Tue, 30 Mar 2004 10:58:35 -0500 Subject: [Gtk-sharp-list] compiling gtk# on fink problems In-Reply-To: References: Message-ID: <4069992B.2050809@dvsconsulting.com> It's trying to use the JIT instead of the interpreter to run gapi-fixup.exe and gapi_codegen.exe. I've seen this many times, but for some input it fails. However, the build files should be defaulting to use the interpreter on OS X. Get the latest from CVS, re-run automake.sh, and try it again. rob alexander chan wrote: > Hi everybody, > I am trying to compile gtk#. I compiled mono using fink. i got the > following error. my configure script argument is --prefix=/usr/local . > i have no idea what to do. any help is greatly appreciated > > -alex > > -------compiling using mono as runtime --- > make[1]: Nothing to be done for `all'. > mono ../parser/gapi-fixup.exe --api=pango-api.xml > --metadata=Pango.metadata && \ > mono ../generator/gapi_codegen.exe --generate pango-api.xml \ > --outdir=generated --customdir=. --assembly-name=pango-sharp \ > && touch generated-stamp > > ** (../parser/gapi-fixup.exe:529): WARNING **: Shared memory sanity check > failed. > > ** (../parser/gapi-fixup.exe:529): WARNING **: Failed to attach shared > memory! Falling back to non-shared handles > > Unhandled Exception: System.ExecutionEngineException: SIGILL > make[1]: *** [generated-stamp] Error 1 > make: *** [binding] Error 1 > > ------compiling using mint error----- > > ** (../parser/gapi-fixup.exe:542): WARNING **: Shared memory sanity check > failed. > > ** (../parser/gapi-fixup.exe:542): WARNING **: Failed to attach shared > memory! Falling back to non-shared handles > Invalid api file. > System.Xml.XmlException: expected '>' (3E) but found '?' (FFFFFFFF) Line > 169, position 50. > #0: 0x0004c throw in System.Xml.XmlTextReader::Expect ([62] ) > #1: 0x00240 callvirt in System.Xml.XmlTextReader::ReadStartTag () > #2: 0x0005b callvirt in System.Xml.XmlTextReader::ReadTag () > #3: 0x00088 callvirt in System.Xml.XmlTextReader::ReadContent () > #4: 0x000f1 callvirt in System.Xml.XmlTextReader::Read () > #5: 0x00313 callvirt in System.Xml.XmlDocument::ReadNode ([O:0xbfee0] ) > #6: 0x0013b callvirt in System.Xml.XmlDocument::ReadNode ([O:0xbfee0] ) > #7: 0x0013b callvirt in System.Xml.XmlDocument::ReadNode ([O:0xbfee0] ) > #8: 0x0013b callvirt in System.Xml.XmlDocument::ReadNode ([O:0xbfee0] ) > #9: 0x0013b callvirt in System.Xml.XmlDocument::ReadNode ([O:0xbfee0] ) > #10: 0x0001b callvirt in System.Xml.XmlDocument::Load ([O:0xbfee0] ) > #11: 0x00015 callvirt in System.Xml.XmlDocument::Load ([O:0xa5e60] ) > #12: 0x000bd callvirt in GtkSharp.Parsing.Fixup::Main ([O:0x90c00] ) > > make[1]: *** [generated-stamp] Error 1 > make: *** [binding] Error 1 > --------------------------------------------- > _______________________________________________ > Gtk-sharp-list maillist - Gtk-sharp-list@lists.ximian.com > http://lists.ximian.com/mailman/listinfo/gtk-sharp-list From mkestner@ximian.com Tue Mar 30 18:45:34 2004 From: mkestner@ximian.com (Mike Kestner) Date: Tue, 30 Mar 2004 12:45:34 -0600 Subject: [Gtk-sharp-list] conditionally compile docs In-Reply-To: <1080160237.17392.22.camel@localhost.localdomain> References: <1080160237.17392.22.camel@localhost.localdomain> Message-ID: <1080672334.3742.151.camel@localhost.localdomain> On Wed, 2004-03-24 at 14:30, John Luke wrote: > Hello, > Attached is a patch to conditionally compile and install the docs if > you already have monodoc installed. Ok to commit? Sorry about the delay. Did you try distcheck on this? I have some comments... Index: configure.in =================================================================== RCS file: /cvs/public/gtk-sharp/configure.in,v retrieving revision 1.50 diff -u -r1.50 configure.in --- configure.in 22 Mar 2004 06:23:07 -0000 1.50 +++ configure.in 24 Mar 2004 19:57:35 -0000 @@ -150,6 +150,13 @@ AC_SUBST(BASE_DEPENDENCIES_CFLAGS) AC_SUBST(BASE_DEPENDENCIES_LIBS) +AC_PATH_PROG(MONODOC, monodoc, no) +if test "x$MONODOC" = "xno" ; then +enable_monodoc="no" +else +enable_monodoc="yes" +fi ======== I don't think this is enough. I think you need to test for the --assemble and --update flags. This could be challenging, but the best approach is to install a .pc file for monodoc so that we can test it for a version. Then you just have to test for the version that has the features you are using. Also, you should AC_SUBST the MONODOC tool path returned and use that in the Makefile.am. It might also be nice to report whether docs are building in the configuration summary. ======== Index: doc/Makefile.am =================================================================== RCS file: doc/Makefile.am diff -N doc/Makefile.am --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ doc/Makefile.am 24 Mar 2004 19:57:35 -0000 @@ -0,0 +1,26 @@ +ASSEMBLER = monodoc --assemble +UPDATER = monodoc --update ========= So these become $(MONODOC) --assemble, etc... ========= +DIRS = glib pango atk gdk gtk glade art gnome gda gnomedb gconf/GConf gconf/GConf.PropertyEditors rsvg gtkhtml + +if ENABLE_MONODOC ========= DOCDIR=`$(MONODOC) --get-sourcesdir` TARGETS = gtk-sharp-docs.zip gtk-sharp-docs.tree gtk-sharp-docs.source #else DOCDIR= TARGETS= #endif docdir=$(DOCDIR) doc_DATA=$(TARGETS) ========= + +all: gtk-sharp-docs.zip gtk-sharp-docs.tree ========= lose that ========= + +gtk-sharp-docs.zip gtk-sharp-docs.tree: en/*/*.xml en/*.xml + $(ASSEMBLER) --ecma en -o gtk-sharp-docs ========= This needs to be VPATH buildable. You probably need to do something like the build_sources hack that I've done in the assembly directories. ========= + +update: + for i in $(DIRS); do \ + $(UPDATER) ../$$i/*.dll -o ./en -f || exit 1; \ + done + +install-data-local: gtk-sharp-docs.zip gtk-sharp-docs.tree + install -m 644 gtk-sharp-docs.zip gtk-sharp-docs.tree `monodoc --get-sourcesdir` + install -m 644 gtk-sharp-docs.source `monodoc --get-sourcesdir` ======= lose that ======= + +endif + +CLEANFILES = gtk-sharp-docs.zip gtk-sharp-docs.tree + +EXTRA_DIST = gtk-sharp-docs.source ======== don't need any of these. however, you do need a disthook target that dists the en/ files. There is an example of this in monodoc already if I remember correctly. Thanks for the patch. Let me know if I can clarify any further. Please make sure distcheck passes on the resubmitted patch. -- Mike Kestner From alexc@sporks.org Wed Mar 31 14:56:55 2004 From: alexc@sporks.org (alexander chan) Date: Wed, 31 Mar 2004 06:56:55 -0800 (PST) Subject: [Gtk-sharp-list] compiling gtk# on fink problems In-Reply-To: <4069992B.2050809@dvsconsulting.com> References: <4069992B.2050809@dvsconsulting.com> Message-ID: hi, i was able to compile gtk# from cvs sources. the libraries were installed into /usr/local. I copied the hello world program from go-mono.org website. by doing the following mcs hellosharp.cs -r:/usr/local/lib/gtk-sharp -r:/usr/local/lib/glib-sharp however, i try running it using mint i get the following error: ** (hellosharp.exe:434): WARNING **: Could not find assembly gtk-sharp Can not open image hellosharp.exe What should i be doing? tia, alex On Tue, 30 Mar 2004, Robert Shade wrote: > It's trying to use the JIT instead of the interpreter to run > gapi-fixup.exe and gapi_codegen.exe. I've seen this many times, but for > some input it fails. > > However, the build files should be defaulting to use the interpreter on > OS X. Get the latest from CVS, re-run automake.sh, and try it again. > > rob > > alexander chan wrote: > > > Hi everybody, > > I am trying to compile gtk#. I compiled mono using fink. i got the > > following error. my configure script argument is --prefix=/usr/local . > > i have no idea what to do. any help is greatly appreciated > > > > -alex > > > > -------compiling using mono as runtime --- > > make[1]: Nothing to be done for `all'. > > mono ../parser/gapi-fixup.exe --api=pango-api.xml > > --metadata=Pango.metadata && \ > > mono ../generator/gapi_codegen.exe --generate pango-api.xml \ > > --outdir=generated --customdir=. --assembly-name=pango-sharp \ > > && touch generated-stamp > > > > ** (../parser/gapi-fixup.exe:529): WARNING **: Shared memory sanity check > > failed. > > > > ** (../parser/gapi-fixup.exe:529): WARNING **: Failed to attach shared > > memory! Falling back to non-shared handles > > > > Unhandled Exception: System.ExecutionEngineException: SIGILL > > make[1]: *** [generated-stamp] Error 1 > > make: *** [binding] Error 1 > > > > ------compiling using mint error----- > > > > ** (../parser/gapi-fixup.exe:542): WARNING **: Shared memory sanity check > > failed. > > > > ** (../parser/gapi-fixup.exe:542): WARNING **: Failed to attach shared > > memory! Falling back to non-shared handles > > Invalid api file. > > System.Xml.XmlException: expected '>' (3E) but found '?' (FFFFFFFF) Line > > 169, position 50. > > #0: 0x0004c throw in System.Xml.XmlTextReader::Expect ([62] ) > > #1: 0x00240 callvirt in System.Xml.XmlTextReader::ReadStartTag () > > #2: 0x0005b callvirt in System.Xml.XmlTextReader::ReadTag () > > #3: 0x00088 callvirt in System.Xml.XmlTextReader::ReadContent () > > #4: 0x000f1 callvirt in System.Xml.XmlTextReader::Read () > > #5: 0x00313 callvirt in System.Xml.XmlDocument::ReadNode ([O:0xbfee0] ) > > #6: 0x0013b callvirt in System.Xml.XmlDocument::ReadNode ([O:0xbfee0] ) > > #7: 0x0013b callvirt in System.Xml.XmlDocument::ReadNode ([O:0xbfee0] ) > > #8: 0x0013b callvirt in System.Xml.XmlDocument::ReadNode ([O:0xbfee0] ) > > #9: 0x0013b callvirt in System.Xml.XmlDocument::ReadNode ([O:0xbfee0] ) > > #10: 0x0001b callvirt in System.Xml.XmlDocument::Load ([O:0xbfee0] ) > > #11: 0x00015 callvirt in System.Xml.XmlDocument::Load ([O:0xa5e60] ) > > #12: 0x000bd callvirt in GtkSharp.Parsing.Fixup::Main ([O:0x90c00] ) > > > > make[1]: *** [generated-stamp] Error 1 > > make: *** [binding] Error 1 > > --------------------------------------------- > > _______________________________________________ > > Gtk-sharp-list maillist - Gtk-sharp-list@lists.ximian.com > > http://lists.ximian.com/mailman/listinfo/gtk-sharp-list > _______________________________________________ > Gtk-sharp-list maillist - Gtk-sharp-list@lists.ximian.com > http://lists.ximian.com/mailman/listinfo/gtk-sharp-list > From mkestner@ximian.com Wed Mar 31 18:51:20 2004 From: mkestner@ximian.com (Mike Kestner) Date: Wed, 31 Mar 2004 12:51:20 -0600 Subject: [Gtk-sharp-list] Gtk# 0.18 released Message-ID: <1080759080.3742.227.camel@localhost.localdomain> Announcing release 0.18 of Gtk#, codenamed "Todd's Private Dancer." Tarball available for immediate download from: http://sourceforge.net/project/showfiles.php?group_id=40240 Binaries (thanks to Duncan Mak) will be available shortly through the Mono project at: http://www.go-mono.com/download.html About Gtk#: Gtk# is a .Net language binding for the Gtk+ Graphical User Interface toolkit and several GNOME platform libraries. The GNOME 2.2 platform is currently targeted. The binding is fairly complete, but it is still somewhat unproven and API unstable, and therefore not recommended for production work. Changes since 0.17: * ThreadNotify made win32-friendly. (Gonzalo Paniagua Javier) * parser support for GObject virtual methods, although we don't generate wrapper code yet. (MK) * automake support for the build, with working distcheck (MK, John Luke) * [ConnectBefore] support for event delegates. (MK) * System.Drawing dependency removed. (MK) * Gdk.Size value type implementation. (MK) * More API Corrections, Customizations, and glue: (Jorn Baayen, Todd Berman, MK) * Bugfixes (Gonzalo Paniagua Javier, John Luke, Todd Berman, MK) * Doc Updates (Hector E. Gomez Morales, Alex Combas) Discussion of Gtk# occurs on the mailing list at gtk-sharp-list@lists.ximian.com. Bugs can be reported to http://bugzilla.ximian.com, module gtk#. Check the Gtk# homepage for additional info at http://gtk-sharp.sf.net. -- Mike Kestner From miguel@ximian.com Wed Mar 31 20:44:57 2004 From: miguel@ximian.com (Miguel de Icaza) Date: Wed, 31 Mar 2004 15:44:57 -0500 Subject: [Gtk-sharp-list] Points/Lines and Glade In-Reply-To: <1080598965.27847.6.camel@localhost> References: <1080598965.27847.6.camel@localhost> Message-ID: <1080765897.4764.330.camel@erandi.boston.ximian.com> Hello, > I've giving up on Scribble and Glade, but the problem still remains. > What i want to do is just loading a glade file where a Gtk.DrawingArea > (or something similiar) is created and draw some points, lines or > circles on it. I do not understand the problem, we have done that before fairly successfully. What seems to be the problem? Miguel