From pauldbourke at gmail.com Mon Jun 4 14:01:45 2007 From: pauldbourke at gmail.com (Paul Bourke) Date: Mon, 4 Jun 2007 19:01:45 +0100 Subject: [Gtk-sharp-list] Gtk.StatusIcon problems Message-ID: <2563cc910706041101te5a4de6ida5b695c096e7cf8@mail.gmail.com> Hi, I'm working on small dockable app using GTK#, and have being trying to use the StatusIcon class to dock it to the system tray. Im not sure if this class contains bugs, but the status icon it displays seems to be continually disappearing on me, or not showing up at all. It works fine with a simple test program, but my program has a Glib.Timeoutthat runs a method to parse a file every couple of seconds, and this seems to be causing problems. Could anyone elaborate on why the status icon seems to be affected by other parts of the program and maybe suggest a solution? I have tried replacing the Timeout with a Thread but this causes the same problem. Thanks, Paul. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/gtk-sharp-list/attachments/20070604/1811d222/attachment.html From aaron at hardwarehookups.com.au Tue Jun 5 06:11:55 2007 From: aaron at hardwarehookups.com.au (Aaron Oxford) Date: Tue, 05 Jun 2007 20:11:55 +1000 Subject: [Gtk-sharp-list] Strange window rising under Windows Message-ID: <20070605101026.0F76270007@herald.ximian.com> I've just worked out something that has really been bugging me. Whenever I open a dialog my main window will lose focus - when I close the dialog some other program's window is focused. (How) can I stop this happening? TIA, Aaron. --------------------------------------------------------------------------------- Aaron Oxford - aaron+hardwarehookups .com .au Director, Innovative Computer Solutions (Aust) Pty. Ltd. 49 Maitland Rd, Mayfield, NSW 2304 Australia http://www.ic-solutions.com.au Developer, SourceForge project VioLet Composer http://sourceforge.net/projects/buzz-like From debackerl at gmail.com Tue Jun 5 09:19:49 2007 From: debackerl at gmail.com (Laurent Debacker) Date: Tue, 5 Jun 2007 15:19:49 +0200 Subject: [Gtk-sharp-list] Synthetic Event Message-ID: <75751ca80706050619w5f01c0ecg616ce05c61b4430d@mail.gmail.com> Hi, Would it be possible to create a synthetic event ? The idea is to create a "fake" Enter/LeaveNotify event and send it to the ProcessEvent method of a widget. Regards, Laurent Debacker. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/gtk-sharp-list/attachments/20070605/1793bee5/attachment.html From aaron at hardwarehookups.com.au Wed Jun 6 04:03:53 2007 From: aaron at hardwarehookups.com.au (Aaron Oxford) Date: Wed, 06 Jun 2007 18:03:53 +1000 Subject: [Gtk-sharp-list] Mixing use of Gtk.Dotnet.Graphics and System.Drawing.Graphics Message-ID: <20070606080224.0E2457003C@herald.ximian.com> Hi all, I'm a little confused about using Gtk.Dotnet. I understand that the Graphics object in Gtk.Dotnet replaces that in System.Drawing for drawing to Gdk surfaces, but what if I wanted to compose an image using Gtk.Dotnet.Graphics to paste together System.Drawing.Image objects? Do I just use System.Drawing.Graphics to draw on the image objects and then Gtk.Dotnet.Graphics to paste it together? I'm gonna push on assuming this is right I just thought I'd ask in case this is the wrong way to approach it altogether. Thanks in advance for any advice, Aaron. --------------------------------------------------------------------------------- Aaron Oxford - aaron+hardwarehookups .com .au Director, Innovative Computer Solutions (Aust) Pty. Ltd. 49 Maitland Rd, Mayfield, NSW 2304 Australia http://www.ic-solutions.com.au Developer, SourceForge project VioLet Composer http://sourceforge.net/projects/buzz-like From hansbaier at web.de Mon Jun 4 01:44:08 2007 From: hansbaier at web.de (Hans Baier) Date: Mon, 04 Jun 2007 12:44:08 +0700 Subject: [Gtk-sharp-list] bootstrap(automake) fails in gnome-sharp: Provided patch for sample/gconf/Makefile.am Message-ID: <4663A6A8.2080303@web.de> When trying to bootstrap, autmake fails. When I patched sample/gconf/Makefile.am as follows: ------------------------------------------------------------------------------------------------------- $ svn diff sample/gconf/Makefile.am Index: sample/gconf/Makefile.am =================================================================== --- sample/gconf/Makefile.am (Revision 78525) +++ sample/gconf/Makefile.am (Arbeitskopie) @@ -24,7 +24,7 @@ Settings.cs: $(SCHEMA) MONO_PATH=$(top_builddir)/gconf/GConf/gconf-sharp.dll:${MONO_PATH} $(RUNTIME) $(GCONFDIR)/tools/gconfsharp-schemagen.exe Sample $(SCHEMA) > Settings.cs -install-hook: +install-data-hook: GCONF_CONFIG_SOURCE="" gconftool-2 --makefile-install-rule $(SCHEMA) CLEANFILES = sample.exe Settings.cs ------------------------------------------------------------------------------------------------------- compiling works, but I have no idea whether I should have used install-data-hook or install-exec-hook. (I am using Ubuntu 7.04) Cheers, Hans From miltondp at gmail.com Wed Jun 6 14:07:08 2007 From: miltondp at gmail.com (Milton Pividori) Date: Wed, 06 Jun 2007 15:07:08 -0300 Subject: [Gtk-sharp-list] Compiling gtk-sharp 2.10 svn on Windows Message-ID: <1181153228.5720.36.camel@wasabi> Hi. I checked out the latest revision of gtk-sharp 2.10 from here: http://anonsvn.mono-project.com/source/trunk/gtk-sharp/ I am using Windows XP SP2, the .NET Framework 2.0 compiler, Gtk+ 2.10.11 dev (from http://gladewin32.sf.net) and MinGW. I also checked out the latest version of the gtk-sharp 2.10 installer for .NET from the OpenVista repository here: https://openvista.svn.sourceforge.net/svnroot/openvista/gtksharp-win32-installer/branches/2.10.0_r75660/ I can compile gtk-sharp, but I have problems when I use the generated assemblies. When I copy them (gtk-sharp.dll, policy*, glib-sharp.dll, *glue.dll, etc) into my app's directory, and I try to run it and: Unhandled Exception: System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt. at Glade.XML.SignalConnector.glade_xml_signal_autoconnect_full(IntPtr raw, RawXMLConnectFunc func, IntPtr user_data) at Glade.XML.SignalConnector.Autoconnect() at Glade.XML.Autoconnect(Object handler) at ZaspeSharp.GUI.MainWindow..ctor() at ZaspeSharp.GUI.MainWindow.Main(String[] args) I've got a similar error when I use the Novell Gtk# installer (version 2.8). Looking in the XML.cs file, I found: [DllImport("libglade-2.0-0.dll")] static extern void glade_xml_signal_autoconnect_full (IntPtr raw, RawXMLConnectFunc func, IntPtr user_data); "libglade-2.0.0.dll" comes with the Gtk+ 2.10.11 dev package for Windows I've installed. Is there a problem with it? I've also try with Gtk+ 2.10.7, same error. Well, to compile gtk-sharp I did: $ ./bootstrap-2.10 $ make Then I copy *.dll files (policy*.dll also), and I generate the [gtk| glib... etc]sharpglue-2.dll files with "make -f makefile.win32" (dllwrap warning here: "no export definition file provided. Creating one, but..."). I need to use gtk-sharp 2.10 on Windows (and gnome-sharp, but that another thing). I know about a problem with it (version 2.10) on this SO, but the svn version I am using, I heard, has the fix. Any help? -- Milton Pividori Blog: http://www.miltonpividori.com.ar Jabber ID: milton.pividori at jabberes.org GnuPG Public Key: gpg --keyserver wwwkeys.pgp.net --recv-key 0x663C185C From Michael_Fasolino at raytheon.com Thu Jun 7 12:48:39 2007 From: Michael_Fasolino at raytheon.com (Michael Fasolino) Date: Thu, 7 Jun 2007 11:48:39 -0500 Subject: [Gtk-sharp-list] Question about TreeCellDataFunc Message-ID: I am currently using a TreeCellDataFunc, and I like that I only have to store my data in one place (a class that I created) and then the view is updated from that. What I don?t like is the amount of times that the render functions for each column are run (it looks like four times for ever entry in the view every time that anything in the model is changed, and then many more times every time the cursor passes over the view). I would like the luxury of only having to store my data once, while also being able to control when the view is updated since I will know whenever the underlying data is changed and can command an update from my code. Is there a way to do this? I cannot say that I fully understand all the inner workings of the model <-> view relationship and am hoping that there is a way to do this. Any help would be greatly appreciated. Michael -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/gtk-sharp-list/attachments/20070607/da89b67c/attachment-0001.html From Michael_Fasolino at raytheon.com Thu Jun 7 15:08:35 2007 From: Michael_Fasolino at raytheon.com (Michael Fasolino) Date: Thu, 7 Jun 2007 14:08:35 -0500 Subject: [Gtk-sharp-list] Strange Tree Model behavior Message-ID: This seems really weird to me, but if figured that I would throw it out and see if anyone else had seen anything like it. I am using Visual Studio 2005 for my development environment. When I run my program in debug mode the .GetValue calls seems to all return null. I am not sure if the problem is with the models or with the GetValue function. Is there an easy way to view a model?s contents when debugging without using the GetValue function? I am at a loss as to what would be causing this. When I run the program without debugging everything works fine. Any help would be appreciated! Thanks! Michael -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/gtk-sharp-list/attachments/20070607/b76c6ba4/attachment.html From listen at torangan.de Fri Jun 8 11:21:20 2007 From: listen at torangan.de (David Philippi) Date: Fri, 8 Jun 2007 17:21:20 +0200 Subject: [Gtk-sharp-list] Problem with ScrolledWindow and default size Message-ID: <200706081721.20362.listen@torangan.de> I'm trying to put a table with some stuff into a ScrolledWindow. Using AddWithviewport() this works fine but the default size is rather tiny. I'd like it most if the size would be the size of the table unless this would require the whole window to grow beyond the screensize. Is there a way to tell the ScrolledWindow to size up to the size of the viewport unless this is really too much? Something like computing the max size out of the screen dimensions should do the trick, I'd guess. Bye David From talton at gmail.com Mon Jun 11 09:56:53 2007 From: talton at gmail.com (James Talton) Date: Mon, 11 Jun 2007 09:56:53 -0400 Subject: [Gtk-sharp-list] GtkGlArea and Windows In-Reply-To: <1176049513.22023.2.camel@cjcoll-laptop> References: <4805031.post@talk.nabble.com> <1176049513.22023.2.camel@cjcoll-laptop> Message-ID: I found the mono page for GTKGLAreaSharp at http://www.mono-project.com/GtkGLAreaSharp but it seems that many of the links don't work. The I did find a thread where Lluis responded about the svn.myrealbox.comnot working:"The anonymous svn server name has changed. The new server is anonsvn.mono-project.com." The links to colliertech.org don't seem to be working. Maybe the domain colliertech.org expired? Anyway, I have been working on a little project using CSharp, GTK#, and OpenGL. I have made a CSharp OpenGL GTK widget that runs on both Windows and Linux and supports shared display lists across OpenGL contexts. I was planning on putting the source up on sourceforge, but didn't want to duplicate efforts. What's the status of the GTKGLAreaSharp? Is there any way I can help? Thanks, James On 4/8/07, C.J. Adams-Collier < cjcollier at colliertech.org> wrote: > > This is cool. I didn't know it was working on windows. :) > > On Tue, 2006-06-13 at 13:50 +0200, LievenQ wrote: > > Hi, > > > > I did get have the glarea working on windows, but I remember it was kind > > of a hassle to do so. > > > > My managed dll was built on linux, with mono, and it did work on windows > > > and ms .net (as it should;)) > > > > It also needed a native dll (gtkglarea-win32 something). I downloaded > the > > source of it, but I couldn't compile it. It seemed to be made for an > older > > version of gtk, which had some macros to access the inner win32 handles > of > > the gtk windows. I managed to fix most of it, I only couldn't figure out > > how to get the handle of a font, so I just commented that out. I'm not > > using fonts anyway. > > > > I attached the source code of my modified gtkglarea, aswell as the > > binaries. > > > > Greets, > > > > Lieven van der Heide > > > > On Sat, 10 Jun 2006 07:02:46 +0200, BradDaBug > > wrote: > > > > > > > > I've been working on a Gtk# application that uses GtkGLArea, and it > works > > > fine on Linux with Mono, but I can't get it to build on Windows. I get > an > > > error when I try to build that looks like this: > > > > > > Assembly 'gtkglarea-sharp, Version=0.0.3.0, Culture=neutral, > > > PublicKeyToken=...' uses 'glib-sharp, Version=2.4.0.0 , ...' which > has a > > > higher version than reference assembly 'glib-sharp, Version=1.0.0.0, > ...' > > > > > > I couldn't figure out how to get gtkglarea-sharp to build on Windows > so I > > > just copied the version I was using over on my Linux box with Mono, > but I > > > guess that won't work. Will gtkglarea-sharp even work on Windows? If > > > not, is > > > there any way to make a Gtk# application that uses OpenGL work on > > > Windows? > > > -- > > > View this message in context: > > > http://www.nabble.com/GtkGlArea-and-Windows-t1765324.html#a4805031 > > > Sent from the Mono - Gtk# forum at Nabble.com. > > > > > > _______________________________________________ > > > Gtk-sharp-list maillist - Gtk-sharp-list at lists.ximian.com > > > http://lists.ximian.com/mailman/listinfo/gtk-sharp-list > > > > > > > > > > > -- > > Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ > > _______________________________________________ Gtk-sharp-list maillist > - Gtk-sharp-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/gtk-sharp-list > > _______________________________________________ > Gtk-sharp-list maillist - Gtk-sharp-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/gtk-sharp-list > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/gtk-sharp-list/attachments/20070611/44038bf6/attachment.html From Michael_Fasolino at raytheon.com Tue Jun 12 11:03:52 2007 From: Michael_Fasolino at raytheon.com (Michael Fasolino) Date: Tue, 12 Jun 2007 10:03:52 -0500 Subject: [Gtk-sharp-list] Strange Tree Model behavior (Multi-Threading) In-Reply-To: Message-ID: All, Upon further exploration this seems to be a Multi-Threading problem as the GetValue calls are work fine while debugging until I kick off a second thread. I am still stumped as to why this will not work while I am debugging and work fine while I am running with without debugging. I have gone through the multithreading tutorial on the Mono page and it looks like I am setting everything up the same as suggested. Does anyone have any ideas? Thanks in advance. Michael Fasolino Sent by: gtk-sharp-list-bounces at lists.ximian.com 06/07/2007 02:08 PM To gtk-sharp-list at ximian.com cc Subject [Gtk-sharp-list] Strange Tree Model behavior This seems really weird to me, but if figured that I would throw it out and see if anyone else had seen anything like it. I am using Visual Studio 2005 for my development environment. When I run my program in debug mode the .GetValue calls seems to all return null. I am not sure if the problem is with the models or with the GetValue function. Is there an easy way to view a model?s contents when debugging without using the GetValue function? I am at a loss as to what would be causing this. When I run the program without debugging everything works fine. Any help would be appreciated! Thanks! Michael _______________________________________________ Gtk-sharp-list maillist - Gtk-sharp-list at lists.ximian.com http://lists.ximian.com/mailman/listinfo/gtk-sharp-list -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/gtk-sharp-list/attachments/20070612/a75efa85/attachment-0001.html From talton at gmail.com Tue Jun 12 15:10:45 2007 From: talton at gmail.com (James Talton) Date: Tue, 12 Jun 2007 15:10:45 -0400 Subject: [Gtk-sharp-list] Strange Tree Model behavior (Multi-Threading) In-Reply-To: References: Message-ID: I was seeing weird behavior on Windows with GTK and getting random exceptions. From some other discussions on this mailing list I did the following: Glib.Thread.Init(); Gdk.Threads.Init(); Application.Init(); Gdk.Threads.Enter(); try { Application.Run(); } finally { Gdk.Threads.Leave(); } See if that fixes your problem. If it does, please let us know. If it does not fix your problem, put a breakpoint where you call GetValue, open up the threads window and make sure your calls are being done on the main thread. - James On 6/12/07, Michael Fasolino wrote: > > > All, > > Upon further exploration this seems to be a Multi-Threading problem as the > GetValue calls are work fine while debugging until I kick off a second > thread. I am still stumped as to why this will not work while I am > debugging and work fine while I am running with without debugging. I have > gone through the multithreading tutorial on the Mono page and it looks like > I am setting everything up the same as suggested. > > Does anyone have any ideas? > > Thanks in advance. > > > > > *Michael Fasolino * > Sent by: gtk-sharp-list-bounces at lists.ximian.com > > 06/07/2007 02:08 PM > To > gtk-sharp-list at ximian.com cc > > Subject > [Gtk-sharp-list] Strange Tree Model behavior > > > > > > > > This seems really weird to me, but if figured that I would throw it out > and see if anyone else had seen anything like it. I am using Visual Studio > 2005 for my development environment. When I run my program in debug mode > the .GetValue calls seems to all return null. I am not sure if the > problem is with the models or with the GetValue function. Is there an easy > way to view a model's contents when debugging without using the GetValue > function? > > I am at a loss as to what would be causing this. When I run the program > without debugging everything works fine. > > Any help would be appreciated! Thanks! > > Michael _______________________________________________ > Gtk-sharp-list maillist - Gtk-sharp-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/gtk-sharp-list > > > _______________________________________________ > Gtk-sharp-list maillist - Gtk-sharp-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/gtk-sharp-list > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/gtk-sharp-list/attachments/20070612/c692ddf2/attachment.html From Michael_Fasolino at raytheon.com Thu Jun 14 10:23:26 2007 From: Michael_Fasolino at raytheon.com (Michael Fasolino) Date: Thu, 14 Jun 2007 09:23:26 -0500 Subject: [Gtk-sharp-list] Strange Tree Model behavior (Multi-Threading) In-Reply-To: Message-ID: Alright, so after some more debugging, it appears that the problem wasn?t just a Multi-threading one. In my code one of the first things that I did on the newly spawned thread was to make some calls into the unmanaged environment. The parameter lists of one of my dllExport/dllImport pairs were not matching. For some reason the compiler did not catch this, and when I was running the app without debugging it seemed like it was working fine. It was only when I ran the debugger that it caused the GetValue function to return null. The only thing that I can think of is that some memory necessary to the Models was being overwritten by the bad parameter list. So, my initial problem is solved! But, since we are on the subject of multithreading, I am having a problem that I had not chased down yet. It is that after the second thread is spawned when I hit the ?X? to close the app it becomes unresponsive. It seems like the second thread is not getting cleaned up properly. Here is what I am doing so far. James, I implemented the code that you suggested like so: GLib.Thread.Init(); Gdk.Threads.Init(); Application.Init(); Gdk.Threads.Enter(); ... //Some random setup stuff here (models, combo boxes ect). Should I remove //this code and place it somewhere else? ... //I have tried spawning this thread several places, this is just the latest System.Threading.Thread t = new System.Threading.Thread(new System.Threading.ThreadStart(RecieveLoop)); t.Start(); try { Application.Run(); } finally { Gdk.Threads.Leave(); } When I try to close the window, the delete event gets fired, and then it just seems to hang. I am assuming that I need to do something here, but am not quite sure what it is. public void on_MainWindow_delete_event(object o, DeleteEventArgs args) { //This bool causes the spawned thread to fall out of its infinate loop CoeTools.KillRecieverThread = true; System.Threading.Thread.Sleep(100); Application.Quit(); args.RetVal = true; } Thanks for the help! "James Talton" 06/12/2007 02:10 PM To "Michael Fasolino" cc gtk-sharp-list at ximian.com Subject Re: [Gtk-sharp-list] Strange Tree Model behavior (Multi-Threading) I was seeing weird behavior on Windows with GTK and getting random exceptions. From some other discussions on this mailing list I did the following: Glib.Thread.Init(); Gdk.Threads.Init(); Application.Init(); Gdk.Threads.Enter(); try { Application.Run(); } finally { Gdk.Threads.Leave(); } See if that fixes your problem. If it does, please let us know. If it does not fix your problem, put a breakpoint where you call GetValue, open up the threads window and make sure your calls are being done on the main thread. - James On 6/12/07, Michael Fasolino wrote: All, Upon further exploration this seems to be a Multi-Threading problem as the GetValue calls are work fine while debugging until I kick off a second thread. I am still stumped as to why this will not work while I am debugging and work fine while I am running with without debugging. I have gone through the multithreading tutorial on the Mono page and it looks like I am setting everything up the same as suggested. Does anyone have any ideas? Thanks in advance. Michael Fasolino Sent by: gtk-sharp-list-bounces at lists.ximian.com 06/07/2007 02:08 PM To gtk-sharp-list at ximian.com cc Subject [Gtk-sharp-list] Strange Tree Model behavior This seems really weird to me, but if figured that I would throw it out and see if anyone else had seen anything like it. I am using Visual Studio 2005 for my development environment. When I run my program in debug mode the .GetValue calls seems to all return null. I am not sure if the problem is with the models or with the GetValue function. Is there an easy way to view a model's contents when debugging without using the GetValue function? I am at a loss as to what would be causing this. When I run the program without debugging everything works fine. Any help would be appreciated! Thanks! Michael _______________________________________________ Gtk-sharp-list maillist - Gtk-sharp-list at lists.ximian.com http://lists.ximian.com/mailman/listinfo/gtk-sharp-list _______________________________________________ Gtk-sharp-list maillist - Gtk-sharp-list at lists.ximian.com http://lists.ximian.com/mailman/listinfo/gtk-sharp-list -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/gtk-sharp-list/attachments/20070614/975e0456/attachment-0001.html From talton at gmail.com Thu Jun 14 17:25:23 2007 From: talton at gmail.com (James Talton) Date: Thu, 14 Jun 2007 17:25:23 -0400 Subject: [Gtk-sharp-list] Strange Tree Model behavior (Multi-Threading) In-Reply-To: References: Message-ID: instead of the System.Threading.Thread.Sleep(100); call t.Join(); Once you click the close, if it does not close, break in the the debugger. Make sure the main thread is at t.Join() and then check the other thread and see why it is not exiting. On 6/14/07, Michael Fasolino wrote: > > > Alright, so after some more debugging, it appears that the problem wasn't > just a Multi-threading one. In my code one of the first things that I did > on the newly spawned thread was to make some calls into the unmanaged > environment. The parameter lists of one of my dllExport/dllImport pairs > were not matching. For some reason the compiler did not catch this, and > when I was running the app without debugging it seemed like it was working > fine. It was only when I ran the debugger that it caused the GetValue > function to return null. The only thing that I can think of is that some > memory necessary to the Models was being overwritten by the bad parameter > list. > > So, my initial problem is solved! But, since we are on the subject of > multithreading, I am having a problem that I had not chased down yet. It is > that after the second thread is spawned when I hit the 'X' to close the app > it becomes unresponsive. It seems like the second thread is not getting > cleaned up properly. Here is what I am doing so far. > > James, I implemented the code that you suggested like so: > > GLib.Thread.Init(); > Gdk.Threads.Init(); > Application.Init(); > > Gdk.Threads.Enter(); > > ... > //Some random setup stuff here (models, combo boxes ect). Should I remove > //this code and place it somewhere else? > ... > > //I have tried spawning this thread several places, this is just the > latest > System.Threading.Thread t = new System.Threading.Thread(new > System.Threading.ThreadStart(RecieveLoop)); > t.Start(); > > try > { > Application.Run(); > } > finally > { > Gdk.Threads.Leave(); > } > > > When I try to close the window, the delete event gets fired, and then it > just seems to hang. I am assuming that I need to do something here, but am > not quite sure what it is. > > public void on_MainWindow_delete_event(object o, DeleteEventArgs args) > { > //This bool causes the spawned thread to fall out of its infinate loop > CoeTools.KillRecieverThread = true; > > System.Threading.Thread.Sleep(100); > Application.Quit(); > args.RetVal = true; > } > > > Thanks for the help! > > > > > *"James Talton" * > > 06/12/2007 02:10 PM > To > "Michael Fasolino" cc > gtk-sharp-list at ximian.com Subject > Re: [Gtk-sharp-list] Strange Tree Model behavior (Multi-Threading) > > > > > > > I was seeing weird behavior on Windows with GTK and getting random > exceptions. From some other discussions on this mailing list I did the > following: > > Glib.Thread.Init(); > Gdk.Threads.Init(); > Application.Init(); > > Gdk.Threads.Enter(); > try > { > Application.Run(); > } > finally > { > Gdk.Threads.Leave(); > } > > See if that fixes your problem. If it does, please let us know. > > If it does not fix your problem, put a breakpoint where you call GetValue, > open up the threads window and make sure your calls are being done on the > main thread. > > - James > > > > On 6/12/07, *Michael Fasolino* <*Michael_Fasolino at raytheon.com*> > wrote: > > All, > > Upon further exploration this seems to be a Multi-Threading problem as the > GetValue calls are work fine while debugging until I kick off a second > thread. I am still stumped as to why this will not work while I am > debugging and work fine while I am running with without debugging. I have > gone through the multithreading tutorial on the Mono page and it looks like > I am setting everything up the same as suggested. > > Does anyone have any ideas? > > Thanks in advance. > > > > *Michael Fasolino <**Michael_Fasolino at raytheon.com * > *>* > Sent by: *gtk-sharp-list-bounces at lists.ximian.com* > > 06/07/2007 02:08 PM > > To > *gtk-sharp-list at ximian.com* cc > > Subject > [Gtk-sharp-list] Strange Tree Model behavior > > > > > > > > > > This seems really weird to me, but if figured that I would throw it out > and see if anyone else had seen anything like it. I am using Visual Studio > 2005 for my development environment. When I run my program in debug mode > the .GetValue calls seems to all return null. I am not sure if the > problem is with the models or with the GetValue function. Is there an easy > way to view a model's contents when debugging without using the GetValue > function? > > I am at a loss as to what would be causing this. When I run the program > without debugging everything works fine. > > Any help would be appreciated! Thanks! > > Michael _______________________________________________ > Gtk-sharp-list maillist - *Gtk-sharp-list at lists.ximian.com* > * > **http://lists.ximian.com/mailman/listinfo/gtk-sharp-list* > > > _______________________________________________ > Gtk-sharp-list maillist - *Gtk-sharp-list at lists.ximian.com* > * > **http://lists.ximian.com/mailman/listinfo/gtk-sharp-list* > > > > _______________________________________________ > Gtk-sharp-list maillist - Gtk-sharp-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/gtk-sharp-list > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/gtk-sharp-list/attachments/20070614/19abfd1c/attachment.html From wammy at sys-techs.com Wed Jun 13 20:15:07 2007 From: wammy at sys-techs.com (Wammy) Date: Wed, 13 Jun 2007 17:15:07 -0700 Subject: [Gtk-sharp-list] ProgressBar inside a StatusBar? Message-ID: <4670888B.9050606@sys-techs.com> I've been trying to figure out how to do this and had no luck with google, How would I add a progressbar to the statusbar? kind of like how firefox/IE etc. have one? From jonpryor at vt.edu Fri Jun 15 06:46:29 2007 From: jonpryor at vt.edu (Jonathan Pryor) Date: Fri, 15 Jun 2007 06:46:29 -0400 Subject: [Gtk-sharp-list] Strange Tree Model behavior (Multi-Threading) In-Reply-To: References: Message-ID: <1181904389.25022.5.camel@melchior.magi> On Thu, 2007-06-14 at 09:23 -0500, Michael Fasolino wrote: > .... In my code one of the first things that I did on the newly > spawned thread was to make some calls into the unmanaged environment. > The parameter lists of one of my dllExport/dllImport pairs were not > matching. For some reason the compiler did not catch this The compiler CANNOT catch this. There are two different compilers in use, the C compiler and the C# compiler, and they don't talk to each other. :-) You can work around this issue somewhat. Mono.Unix "solves" this problem by using the create-native-map program (in the mono-tools svn module), which reads the C# .dll file and generates a C header file for all structs and [DllImport]-attributed methods to ensure some level of consistency between what the C# code is calling and what the C code is implementing. However, this does require some extra effort. - Jon From kodeport at terra.es Sun Jun 17 09:51:10 2007 From: kodeport at terra.es (=?ISO-8859-1?Q?I=F1igo_Ill=E1n?= Aranburu) Date: Sun, 17 Jun 2007 15:51:10 +0200 Subject: [Gtk-sharp-list] ProgressBar inside a StatusBar? In-Reply-To: <4670888B.9050606@sys-techs.com> References: <4670888B.9050606@sys-techs.com> Message-ID: <1182088270.3721.0.camel@Zoolander> As the status bar is an horizontal box container, you only have to .add the progress bar to it. El mi?, 13-06-2007 a las 17:15 -0700, Wammy escribi?: > I've been trying to figure out how to do this and had no luck with google, > > How would I add a progressbar to the statusbar? > > kind of like how firefox/IE etc. have one? > _______________________________________________ > Gtk-sharp-list maillist - Gtk-sharp-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/gtk-sharp-list From vladimir.giszpenc at gmail.com Mon Jun 18 09:47:54 2007 From: vladimir.giszpenc at gmail.com (Vladimir Giszpenc) Date: Mon, 18 Jun 2007 09:47:54 -0400 Subject: [Gtk-sharp-list] Gendarme rules Message-ID: <8ed5cbac0706180647w743612efpb0290a8a943c25c2@mail.gmail.com> Hi all, After hunting down an error, I wanted to share the joy with the group. Apparently spelling is not the only thing that counts. Order counts too. Gtk.TreeViewColumn col = new TreeViewColumn(); col.Title = "Whatever"; col.PackEnd(myRenderer, false); //PackStart works too col.SetCellDataFunc(myRenderer, new TreeCellDataFunc (RenderFunc)); is not the same as Gtk.TreeViewColumn col = new TreeViewColumn(); col.Title = "Whatever"; col.SetCellDataFunc(myRenderer, new TreeCellDataFunc (RenderFunc)); col.PackEnd(myRenderer, false); Apparently, the column *must* be packed before SetCellDataFunc is called. It would have saved me quite some time if a warning had alerted me. If someone is compiling Gtk warnings for Gendarme, please add a rule to help the next victim. Of course, it would be great if either the documentation also warned users or the ordering was not in fact necessary. Good luck all, Vlad From brad at getcoded.net Mon Jun 18 21:22:29 2007 From: brad at getcoded.net (Brad Taylor) Date: Mon, 18 Jun 2007 18:22:29 -0700 Subject: [Gtk-sharp-list] GTK# 2.10 for Windows? In-Reply-To: <465D108B.1010800@sys-techs.com> References: <465A3005.3040207@sys-techs.com> <465AB01A.5030501@bigreddogstudio.com> <465B39A4.8030907@sys-techs.com> <1180458388.16341.11.camel@beast> <465D108B.1010800@sys-techs.com> Message-ID: <1182216149.14184.3.camel@beast> Hey, > Thank you for your response, I will keep my eyes open for your > installer. Since Mike just released Gtk# 2.10.1 today, we (Medsphere) have followed suit and released our MS.NET-targeted Windows installers for Gtk# 2.10.1. Check out the OpenVista SourceForge project page[1] for the SDK and Runtime versions. Let us know if you have any problems. Cheers, -Brad -- [1] http://sourceforge.net/project/showfiles.php?group_id=74626&package_id=223067 From talton at gmail.com Tue Jun 19 09:43:10 2007 From: talton at gmail.com (James Talton) Date: Tue, 19 Jun 2007 09:43:10 -0400 Subject: [Gtk-sharp-list] GTK# 2.10 for Windows? In-Reply-To: <1182216149.14184.3.camel@beast> References: <465A3005.3040207@sys-techs.com> <465AB01A.5030501@bigreddogstudio.com> <465B39A4.8030907@sys-techs.com> <1180458388.16341.11.camel@beast> <465D108B.1010800@sys-techs.com> <1182216149.14184.3.camel@beast> Message-ID: When I use the GTK# 2.8.3 installer from http://forge.novell.com/modules/xfmod/project/?gtks-inst4win it installs the C# dlls in the GAC. The Medsphere GTK# 2.10.1 did not seem to do that. Are there any plans on supporting this? Thanks, James On 6/18/07, Brad Taylor wrote: > > Hey, > > > Thank you for your response, I will keep my eyes open for your > > installer. > > Since Mike just released Gtk# 2.10.1 today, we (Medsphere) have followed > suit and released our MS.NET-targeted Windows installers for Gtk# > 2.10.1. Check out the OpenVista SourceForge project page[1] for the SDK > and Runtime versions. > > Let us know if you have any problems. > > > Cheers, > > -Brad > > -- > [1] > > http://sourceforge.net/project/showfiles.php?group_id=74626&package_id=223067 > > _______________________________________________ > Gtk-sharp-list maillist - Gtk-sharp-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/gtk-sharp-list > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/gtk-sharp-list/attachments/20070619/a1bd9e39/attachment.html From brad at getcoded.net Tue Jun 19 12:27:10 2007 From: brad at getcoded.net (Brad Taylor) Date: Tue, 19 Jun 2007 09:27:10 -0700 Subject: [Gtk-sharp-list] GTK# 2.10 for Windows? In-Reply-To: References: <465A3005.3040207@sys-techs.com> <465AB01A.5030501@bigreddogstudio.com> <465B39A4.8030907@sys-techs.com> <1180458388.16341.11.camel@beast> <465D108B.1010800@sys-techs.com> <1182216149.14184.3.camel@beast> Message-ID: <1182270430.29917.2.camel@beast> On Tue, 2007-06-19 at 09:43 -0400, James Talton wrote: > When I use the GTK# 2.8.3 installer from > http://forge.novell.com/modules/xfmod/project/?gtks-inst4win it > installs the C# dlls in the GAC. > > The Medsphere GTK# 2.10.1 did not seem to do that. Are there any > plans on supporting this? It certainly should... it does here on Windows XP with .NET 1.1. What version of the .NET runtime are you running? Cheers, -Brad From vladimir.giszpenc at gmail.com Wed Jun 20 09:37:48 2007 From: vladimir.giszpenc at gmail.com (Vladimir Giszpenc) Date: Wed, 20 Jun 2007 09:37:48 -0400 Subject: [Gtk-sharp-list] Refreshing TreeView Message-ID: <8ed5cbac0706200637w64523b3cocc5fae6b14a6acda@mail.gmail.com> Hi, When I had a NodeView, in my node I could do the following when the model changed (in a worker thread). Gtk.Application.Invoke (delegate { OnChanged(); }); And magically, the view would refresh just the cell in question and all was good in the world. I am trying to accomplish the same with a TreeView (because I need sorting and to my great chagrin, no one has volunteered to add sorting to the NodeView). There is no need to explain to me that only the main GUI thread can update the GUI. I get it. Iterators (Gtk.TreeIter) seem to be very finicky. I know I get a good one when I do Gtk.TreeIter iter = store.AppendValues(node); Because I use it to add child rows. I am adding values to the TreeStore that is inside the TreeModelSort which is attached to the TreeView. My renderers do their jobs and everything shows up as it should. Can I keep this iter in a Hashtable or something like that? What do I keep around so that I can refresh just the row in question later keeping in mind that it is a store within a store? Enter worker thread. Work. Work. Work. Data changes... How do I refresh the view? Let's say EmitRowChanged is the way for arguments sake. that takes a path and a TreeIter. I can get a path from the TreeIter, so in my mind it only needs the TreeIter. Of course, I can't get this to work using the TreeIter from the above code. It has gone stale somehow... If we changed the music store Treeview example and added number sold as a column. Then started a worker thread that randomly buys a song from the list for a while. How would the code look to keep the view fresh *as the worker is working*? How much does the code change if the list is sorted? I apologize for asking the same question others have asked in the past, but I cannot decipher the answers that have been given. There must be a way to refresh a treeview. Thanks, Vlad From zpon.dk at gmail.com Wed Jun 20 16:45:57 2007 From: zpon.dk at gmail.com (=?ISO-8859-1?Q?S=F8ren_Juul?=) Date: Wed, 20 Jun 2007 22:45:57 +0200 Subject: [Gtk-sharp-list] Hiding a window Message-ID: Hi I am working on a very small (simple) application, mainly to get to know gtk-sharp better. But I need to hide a window, while another is showing. I want to do this when a button is pushed, I thought I could do this from the function connected to the button with the EventHandler, such as " button.Clicked += new EventHandler(next);" and put something like "win.Visible = false;" in that function, but when I do this I get a terrible error: Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object at dataHolder.test (System.Object temp) [0x00000] at inputWindow.next (System.Object obj, System.EventArgs args) [0x00000] at (wrapper delegate-invoke) System.MulticastDelegate:invoke_void_object_EventArgs (object, System.EventArgs) at GLib.Signal.voidObjectCallback (IntPtr handle, IntPtr gch) [0x00000] at (wrapper native-to-managed) GLib.Signal:voidObjectCallback(intptr,intptr) at <0x00000> at (wrapper managed-to-native) Gtk.Application:gtk_main () at Gtk.Application.Run () [0x00000] at inputWindow.makeWindow () [0x00000] at inputWindow..ctor (System.Object temp) [0x00000] at Sample.Main () [0x00000] How can I avoid this? Hope my description was understandable, but pleas ask if there is something you don't understand. Thanks in advance S?ren Juul -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/gtk-sharp-list/attachments/20070620/bc29e034/attachment.html From jacobilsoe at gmail.com Wed Jun 20 16:56:30 2007 From: jacobilsoe at gmail.com (=?ISO-8859-1?Q?Jacob_Ils=F8_Christensen?=) Date: Wed, 20 Jun 2007 22:56:30 +0200 Subject: [Gtk-sharp-list] Hiding a window In-Reply-To: References: Message-ID: <455de9380706201356x7801658ds8534d2f5ac1c5bd0@mail.gmail.com> Hi. Can you supply the source code? Then it's easier to determine what's wrong. Regards, Jacob On 6/20/07, S?ren Juul wrote: > Hi > > I am working on a very small (simple) application, mainly to get to know > gtk-sharp better. But I need to hide a window, while another is showing. I > want to do this when a button is pushed, I thought I could do this from the > function connected to the button with the EventHandler, such as " > button.Clicked += new EventHandler(next);" > and put something like "win.Visible = false;" in that function, but when I > do this I get a terrible error: > > Unhandled Exception: System.NullReferenceException : Object reference not > set to an instance of an object > at dataHolder.test (System.Object temp) [0x00000] > at inputWindow.next (System.Object obj, System.EventArgs args) [0x00000] > at (wrapper delegate-invoke) > System.MulticastDelegate:invoke_void_object_EventArgs > (object,System.EventArgs) > at GLib.Signal.voidObjectCallback (IntPtr handle, IntPtr gch) [0x00000] > at (wrapper native-to-managed) GLib.Signal:voidObjectCallback > (intptr,intptr) > at <0x00000> > at (wrapper managed-to-native) Gtk.Application:gtk_main () > at Gtk.Application.Run () [0x00000] > at inputWindow.makeWindow () [0x00000] > at inputWindow..ctor ( System.Object temp) [0x00000] > at Sample.Main () [0x00000] > > How can I avoid this? Hope my description was understandable, but pleas ask > if there is something you don't understand. > > Thanks in advance > S?ren Juul > > _______________________________________________ > Gtk-sharp-list maillist - Gtk-sharp-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/gtk-sharp-list > > From zpon.dk at gmail.com Wed Jun 20 17:04:37 2007 From: zpon.dk at gmail.com (=?ISO-8859-1?Q?S=F8ren_Juul?=) Date: Wed, 20 Jun 2007 23:04:37 +0200 Subject: [Gtk-sharp-list] Hiding a window In-Reply-To: <455de9380706201356x7801658ds8534d2f5ac1c5bd0@mail.gmail.com> References: <455de9380706201356x7801658ds8534d2f5ac1c5bd0@mail.gmail.com> Message-ID: Yes of course, the source code is at http://www.zpon.dk/tmp/test.cs - sorry if it is messy S?ren Juul 2007/6/20, Jacob Ils? Christensen : > > Hi. > > Can you supply the source code? Then it's easier to determine what's > wrong. > > Regards, > Jacob > > On 6/20/07, S?ren Juul wrote: > > Hi > > > > I am working on a very small (simple) application, mainly to get to know > > gtk-sharp better. But I need to hide a window, while another is showing. > I > > want to do this when a button is pushed, I thought I could do this from > the > > function connected to the button with the EventHandler, such as " > > button.Clicked += new EventHandler(next);" > > and put something like "win.Visible = false;" in that function, but when > I > > do this I get a terrible error: > > > > Unhandled Exception: System.NullReferenceException : Object reference > not > > set to an instance of an object > > at dataHolder.test (System.Object temp) [0x00000] > > at inputWindow.next (System.Object obj, System.EventArgs args) > [0x00000] > > at (wrapper delegate-invoke) > > System.MulticastDelegate:invoke_void_object_EventArgs > > (object,System.EventArgs) > > at GLib.Signal.voidObjectCallback (IntPtr handle, IntPtr gch) > [0x00000] > > at (wrapper native-to-managed) GLib.Signal:voidObjectCallback > > (intptr,intptr) > > at <0x00000> > > at (wrapper managed-to-native) Gtk.Application:gtk_main () > > at Gtk.Application.Run () [0x00000] > > at inputWindow.makeWindow () [0x00000] > > at inputWindow..ctor ( System.Object temp) [0x00000] > > at Sample.Main () [0x00000] > > > > How can I avoid this? Hope my description was understandable, but pleas > ask > > if there is something you don't understand. > > > > Thanks in advance > > S?ren Juul > > > > _______________________________________________ > > Gtk-sharp-list maillist - Gtk-sharp-list at lists.ximian.com > > http://lists.ximian.com/mailman/listinfo/gtk-sharp-list > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/gtk-sharp-list/attachments/20070620/74ff774f/attachment-0001.html From brad at getcoded.net Wed Jun 20 17:09:43 2007 From: brad at getcoded.net (Brad Taylor) Date: Wed, 20 Jun 2007 14:09:43 -0700 Subject: [Gtk-sharp-list] Hiding a window In-Reply-To: References: <455de9380706201356x7801658ds8534d2f5ac1c5bd0@mail.gmail.com> Message-ID: <1182373783.5798.6.camel@beast> On Wed, 2007-06-20 at 23:04 +0200, S?ren Juul wrote: > Yes of course, the source code is at http://www.zpon.dk/tmp/test.cs - > sorry if it is messy void makeWindow() { Application.Init (); Window win = new Window ("gArray"); win.SetDefaultSize (150, 150); You're creating a new "win" object in the local context and showing that instead of setting/using the "win" you created in a module level context. This should be: void makeWindow() { Application.Init (); win = new Window ("gArray"); win.SetDefaultSize (150, 150); so that next () can use it. Best, -Brad From zpon.dk at gmail.com Wed Jun 20 17:13:52 2007 From: zpon.dk at gmail.com (=?ISO-8859-1?Q?S=F8ren_Juul?=) Date: Wed, 20 Jun 2007 23:13:52 +0200 Subject: [Gtk-sharp-list] Hiding a window In-Reply-To: <1182373783.5798.6.camel@beast> References: <455de9380706201356x7801658ds8534d2f5ac1c5bd0@mail.gmail.com> <1182373783.5798.6.camel@beast> Message-ID: Oh, of course, why didn't I see that? Thank you so much! S?ren Juul 2007/6/20, Brad Taylor : > > On Wed, 2007-06-20 at 23:04 +0200, S?ren Juul wrote: > > Yes of course, the source code is at http://www.zpon.dk/tmp/test.cs - > > sorry if it is messy > > void makeWindow() > { > Application.Init (); > Window win = new Window ("gArray"); > win.SetDefaultSize (150, 150); > > You're creating a new "win" object in the local context and showing > that instead of setting/using the "win" you created in a module level > context. This should be: > > > void makeWindow() > { > Application.Init (); > win = new Window ("gArray"); > win.SetDefaultSize (150, 150); > > so that next () can use it. > > Best, > > -Brad > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/gtk-sharp-list/attachments/20070620/4917accb/attachment.html From elmar at haneke.de Thu Jun 21 03:27:40 2007 From: elmar at haneke.de (Elmar Haneke) Date: Thu, 21 Jun 2007 09:27:40 +0200 Subject: [Gtk-sharp-list] GTK# 2.10 for Windows? In-Reply-To: <1182216149.14184.3.camel@beast> References: <465A3005.3040207@sys-techs.com> <465AB01A.5030501@bigreddogstudio.com> <465B39A4.8030907@sys-techs.com> <1180458388.16341.11.camel@beast> <465D108B.1010800@sys-techs.com> <1182216149.14184.3.camel@beast> Message-ID: <467A286C.6020803@haneke.de> > Since Mike just released Gtk# 2.10.1 today, we (Medsphere) have followed > suit and released our MS.NET-targeted Windows installers for Gtk# > 2.10.1. Check out the OpenVista SourceForge project page[1] for the SDK > and Runtime versions. Can this also be used to update an Mono Installation? Are there any 2.10 binaries available for Mono/windows? Elmar From mkestner at ximian.com Thu Jun 21 08:27:30 2007 From: mkestner at ximian.com (Mike Kestner) Date: Thu, 21 Jun 2007 07:27:30 -0500 Subject: [Gtk-sharp-list] GTK# 2.10 for Windows? In-Reply-To: <467A286C.6020803@haneke.de> References: <465A3005.3040207@sys-techs.com> <465AB01A.5030501@bigreddogstudio.com> <465B39A4.8030907@sys-techs.com> <1180458388.16341.11.camel@beast> <465D108B.1010800@sys-techs.com> <1182216149.14184.3.camel@beast> <467A286C.6020803@haneke.de> Message-ID: <1182428850.4713.92.camel@linux-dii6.site> On Thu, 2007-06-21 at 09:27 +0200, Elmar Haneke wrote: > > Since Mike just released Gtk# 2.10.1 today, we (Medsphere) have followed > > suit and released our MS.NET-targeted Windows installers for Gtk# > > 2.10.1. Check out the OpenVista SourceForge project page[1] for the SDK > > and Runtime versions. > > > Can this also be used to update an Mono Installation? > > Are there any 2.10 binaries available for Mono/windows? A new mono combined installer will be released in the next few days, most likely. I'll post a release announcement here when all the mono-project packages/installers are ready to go. Mike From w.mauer at top-soft.info Mon Jun 25 06:49:01 2007 From: w.mauer at top-soft.info (w.mauer at top-soft.info) Date: Mon, 25 Jun 2007 12:49:01 +0200 Subject: [Gtk-sharp-list] Gtk.VPaned events Message-ID: <22237909.29591182768541484.JavaMail.servlet@kundenserver> Hi all, i want to get some events from a VPaned. Monodevelop generate this: public partial class MainWindow { private Gtk.VPaned vpaned1; private Gtk.TreeView treeview1; private Gtk.TreeView treeview2; protected virtual void Build() { Stetic.Gui.Initialize(); // Widget Workspace.MainWindow this.Name = "Workspace.MainWindow"; this.Title = Mono.Unix.Catalog.GetString("MainWindow"); this.WindowPosition = ((Gtk.WindowPosition)(4)); // Container child Workspace.MainWindow.Gtk.Container+ContainerChild this.vpaned1 = new Gtk.VPaned(); this.vpaned1.CanFocus = true; this.vpaned1.Name = "vpaned1"; this.vpaned1.Position = 112; // Container child vpaned1.Gtk.Paned+PanedChild this.treeview1 = new Gtk.TreeView(); this.treeview1.CanFocus = true; this.treeview1.Name = "treeview1"; this.vpaned1.Add(this.treeview1); Gtk.Paned.PanedChild w1 = ((Gtk.Paned.PanedChild)(this.vpaned1[this.treeview1])); w1.Resize = false; // Container child vpaned1.Gtk.Paned+PanedChild this.treeview2 = new Gtk.TreeView(); this.treeview2.CanFocus = true; this.treeview2.Name = "treeview2"; this.vpaned1.Add(this.treeview2); this.Add(this.vpaned1); if ((this.Child != null)) { this.Child.ShowAll(); } this.DefaultWidth = 400; this.DefaultHeight = 300; this.Show(); this.vpaned1.MoveHandle += new Gtk.MoveHandleHandler(this.OnVpaned1MoveHandle); this.vpaned1.CancelPosition += new Gtk.CancelPositionHandler(this.OnVpaned1CancelPosition); this.vpaned1.AcceptPosition += new Gtk.AcceptPositionHandler(this.OnVpaned1AcceptPosition); this.vpaned1.ToggleHandleFocus += new Gtk.ToggleHandleFocusHandler(this.OnVpaned1ToggleHandleFocus); this.vpaned1.CycleChildFocus += new Gtk.CycleChildFocusHandler(this.OnVpaned1CycleChildFocus); this.treeview2.ResizeChecked += new System.EventHandler(this.OnTreeview2ResizeChecked); } } but this never will reached void OnVpaned1MoveHandle (object o, Gtk.MoveHandleArgs args) { throw new Exception("OnVpaned1MoveHandle"); } void OnVpaned1CancelPosition (object o, Gtk.CancelPositionArgs args) { throw new Exception("OnVpaned1CancelPosition"); } void OnVpaned1AcceptPosition (object o, Gtk.AcceptPositionArgs args) { throw new Exception("OnVpaned1AcceptPosition"); } void OnVpaned1ToggleHandleFocus (object o, Gtk.ToggleHandleFocusArgs args) { throw new Exception("OnVpaned1ToggleHandleFocus"); } void OnVpaned1CycleChildFocus (object o, Gtk.CycleChildFocusArgs args) { throw new Exception("OnVpaned1CycleChildFocus"); } void OnTreeview2ResizeChecked (object sender, System.EventArgs e) { throw new Exception("OnTreeview2ResizeChecked"); } Thanks for Help / Wolfgang From Michael_Fasolino at raytheon.com Tue Jun 26 11:46:01 2007 From: Michael_Fasolino at raytheon.com (Michael Fasolino) Date: Tue, 26 Jun 2007 10:46:01 -0500 Subject: [Gtk-sharp-list] CellRendererCombo Message-ID: All, I am having a hard time figuring out how to get the CellRendererCombo to work. I basically want to display a Combo Box within cells of a tree view. CellRendererCombo seems to be the way to do that, but I can?t find an example of how to do it, and all of my attempts thus far have proven to be futile. Any help would be greatly appreciated. Thanks, Michael -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/gtk-sharp-list/attachments/20070626/b32dc1ee/attachment.html From g07000265 at ks.glfsoft.com Thu Jun 21 22:47:34 2007 From: g07000265 at ks.glfsoft.com (g07000265 at ks.glfsoft.com) Date: Fri, 22 Jun 2007 10:47:34 +0800 Subject: [Gtk-sharp-list] can you help me? Message-ID: <20070622024608.D4F825B4033@mail.ks.thiz.com.cn> hello Now,i am studying GTK+ and meet some problem, i want to know how to make a CellRendererButton. Could you send to me some code about the CellRendererButton? TKS Steven From wasabi at larvalstage.net Fri Jun 22 16:41:51 2007 From: wasabi at larvalstage.net (Jerome Haltom) Date: Fri, 22 Jun 2007 15:41:51 -0500 Subject: [Gtk-sharp-list] GDK_WINDOW_HWND Message-ID: <1182544911.9808.3.camel@station-1.ad.isillc.com> I need to obtain access to the Win32 hWnd for a given Gdk.Window instance. Is there any built in way to go about this? If not, can such a way be added? There is a GDK_WINDOW_HWND macro designed for this purpose. *I* think it would be appropriate to only add this reference on Windows.