From vladimir.giszpenc at gmail.com Thu Oct 4 15:14:09 2007 From: vladimir.giszpenc at gmail.com (Vladimir Giszpenc) Date: Thu, 4 Oct 2007 15:14:09 -0400 Subject: [Gtk-sharp-list] Gtk.NodeView Message-ID: <8ed5cbac0710041214r59e6657oa24bfbdbdcd37455@mail.gmail.com> Hello esteemed Gtk folks, After upgrading to version 0.16 of MonoDevelop, all my renderers on my NodeViews disappeared. This includes pixbuf, text and progress renderers. The good news is that in the design view, the NodeView seems to be treated less harshly than before. Has anyone else experienced this? Is there a simple workaround? Thanks, Vlad From stefana69 at hotmail.com Sat Oct 6 10:11:22 2007 From: stefana69 at hotmail.com (Stefan Andersson) Date: Sat, 6 Oct 2007 16:11:22 +0200 Subject: [Gtk-sharp-list] Error installing Gtk#2.8.4 Message-ID: Whren I run ./configure it says I need to eitheir install Mono or .NET but latest version of Mono is already installed and can be executed??? I have Fedora 7 Linux on x86_64. _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/gtk-sharp-list/attachments/20071006/801daf3a/attachment.html From bratsche at gnome.org Sat Oct 6 14:40:43 2007 From: bratsche at gnome.org (Cody Russell) Date: Sat, 6 Oct 2007 13:40:43 -0500 Subject: [Gtk-sharp-list] Error installing Gtk#2.8.4 In-Reply-To: References: Message-ID: <1191696043.23637.0.camel@scherzo> An embedded and charset-unspecified text was scrubbed... Name: not available Url: http://lists.ximian.com/pipermail/gtk-sharp-list/attachments/20071006/4957dd8d/attachment.ksh From djsiegel at gmail.com Mon Oct 8 16:40:17 2007 From: djsiegel at gmail.com (David Siegel) Date: Mon, 8 Oct 2007 16:40:17 -0400 Subject: [Gtk-sharp-list] Creating a pixmap from a widget for window masking Message-ID: <4d7ffd60710081340x40bc0d60veb2bd5f5c2b92aa7@mail.gmail.com> I am using a custom Gtk.Window subclass that has no decoration, and relies on a custom Gtk.Bin subclass called RoundedFrame for the window's presentation. The RoundedFrame, as you may have guessed, draws itself as a rounded rectangle using a Cairo.Context created with (this refers to an instance of RoundedFrame): Gdk.CairoHelper.Create (this.GdkWindow) On non-composited screens, my rounded rectangle is drawn with black corners, so I need to call: my_rounded_window.ShapeCombineMask (Pixmap mask, int width, int height, int x_offset, int y_offset) to mask the shape of the window so it is drawn as a rounded rectangle. My question is, is there any way to get the correctly-shaped Pixmap from the RoundedFrame child of the window so I can mask the window with it? I've been searching and searching through API documentation with no luck. David -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/gtk-sharp-list/attachments/20071008/c53cf2fd/attachment-0001.html From zpon.dk at gmail.com Tue Oct 9 03:37:08 2007 From: zpon.dk at gmail.com (=?ISO-8859-1?Q?S=F8ren_Juul?=) Date: Tue, 9 Oct 2007 09:37:08 +0200 Subject: [Gtk-sharp-list] Hide Box Message-ID: Hi Isn't it possible to hide a (H/V)Box? hbox.Visible = false, hbox.HideAll() and hbox.Hide() doesn't seem to work -- Med venlig hilsen S?ren Juul From mikkel at linet.dk Tue Oct 9 03:53:33 2007 From: mikkel at linet.dk (Mikkel Kruse Johnsen) Date: Tue, 09 Oct 2007 09:53:33 +0200 Subject: [Gtk-sharp-list] Hide Box In-Reply-To: References: Message-ID: <1191916413.3109.38.camel@tux.lib.cbs.dk> Hi S?ren I use "hbox.Visible = false" and it works fine for me. Fedora7 with standard packages. /Mikkel On Tue, 2007-10-09 at 09:37 +0200, S?ren Juul wrote: > Hi > > Isn't it possible to hide a (H/V)Box? > > hbox.Visible = false, hbox.HideAll() and hbox.Hide() doesn't seem to work > Med Venlig Hilsen / Kind Regards Mikkel Kruse Johnsen Adm.Dir. Linet ?rholmgade 6 st tv Copenhagen N 2200 Denmark Work: +45 21287793 Mobile: +45 21287793 Email: mikkel at linet.dk IM: mikkel at linet.dk (MSN) Professional Profile Healthcare Network Consultant -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/gtk-sharp-list/attachments/20071009/a6eb94ef/attachment.html From zpon.dk at gmail.com Tue Oct 9 04:05:55 2007 From: zpon.dk at gmail.com (=?ISO-8859-1?Q?S=F8ren_Juul?=) Date: Tue, 9 Oct 2007 10:05:55 +0200 Subject: [Gtk-sharp-list] Hide Box In-Reply-To: <1191916413.3109.38.camel@tux.lib.cbs.dk> References: <1191916413.3109.38.camel@tux.lib.cbs.dk> Message-ID: Thats weird the code below doesn't work for me hbox = new HBox(); hbox.HideAll(); testlabel = new Label("mm test"); hbox.PackStart(testlabel); hbox.Visible = false; 2007/10/9, Mikkel Kruse Johnsen : > > Hi S?ren > > I use "hbox.Visible = false" and it works fine for me. > > Fedora7 with standard packages. > > /Mikkel > > On Tue, 2007-10-09 at 09:37 +0200, S?ren Juul wrote: > > Hi > Isn't it possible to hide a (H/V)Box? > hbox.Visible = false, hbox.HideAll() and hbox.Hide() doesn't seem to work > > Med Venlig Hilsen / Kind Regards > > > *Mikkel Kruse Johnsen* > Adm.Dir. > > *Linet * > ?rholmgade 6 st tv > Copenhagen N 2200 Denmark *Work:* +45 21287793 > *Mobile:* +45 21287793 > *Email:* mikkel at linet.dk > *IM:* mikkel at linet.dk (MSN) > *Professional Profile * > *Healthcare * > > Network Consultant > -- Med venlig hilsen / kind Regards S?ren Juul -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/gtk-sharp-list/attachments/20071009/d2b46e5d/attachment.html From mikkel at linet.dk Tue Oct 9 05:02:35 2007 From: mikkel at linet.dk (Mikkel Kruse Johnsen) Date: Tue, 09 Oct 2007 11:02:35 +0200 Subject: [Gtk-sharp-list] Hide Box In-Reply-To: References: <1191916413.3109.38.camel@tux.lib.cbs.dk> Message-ID: <1191920555.3109.42.camel@tux.lib.cbs.dk> Hi S?ren Where do you pack the hbox into the window or some other container. I myself have problems unerstanding it, but I think it has something to do with realization of the widgets. You can only do this after it is realized (added to another container). Im not sure about this though. hbox = new HBox(); window.Add (hbox); testlabel = new Label("mm test"); hbox.PackStart(testlabel); hbox.ShowAll(); hbox.Visible = false; /Mikkel On Tue, 2007-10-09 at 10:05 +0200, S?ren Juul wrote: > Thats weird the code below doesn't work for me > > hbox = new HBox(); > hbox.HideAll(); > testlabel = new Label("mm test"); > hbox.PackStart(testlabel); > hbox.Visible = false; > > > 2007/10/9, Mikkel Kruse Johnsen : > > Hi S?ren > > I use "hbox.Visible = false" and it works fine for me. > > Fedora7 with standard packages. > > /Mikkel > > On Tue, 2007-10-09 at 09:37 +0200, S?ren Juul wrote: > > > Hi > > > > Isn't it possible to hide a (H/V)Box? > > > > hbox.Visible = false, hbox.HideAll() and hbox.Hide() doesn't seem to work > > > > Med Venlig Hilsen / Kind Regards > > > Mikkel Kruse > Johnsen > Adm.Dir. > > Linet > ?rholmgade 6 st > tv > Copenhagen N > 2200 Denmark > > Work: +45 > 21287793 > Mobile: +45 > 21287793 > Email: > mikkel at linet.dk > IM: > mikkel at linet.dk > (MSN) > Professional > Profile > Healthcare > > > Network > Consultant > > > > > -- > Med venlig hilsen / kind Regards > S?ren Juul Med Venlig Hilsen / Kind Regards Mikkel Kruse Johnsen Adm.Dir. Linet ?rholmgade 6 st tv Copenhagen N 2200 Denmark Work: +45 21287793 Mobile: +45 21287793 Email: mikkel at linet.dk IM: mikkel at linet.dk (MSN) Professional Profile Healthcare Network Consultant -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/gtk-sharp-list/attachments/20071009/c7fba01d/attachment.html From atrauzzi at gmail.com Tue Oct 9 08:57:26 2007 From: atrauzzi at gmail.com (Alexander Trauzzi) Date: Tue, 9 Oct 2007 07:57:26 -0500 Subject: [Gtk-sharp-list] Working with Images, Gdk, and the Gtk.Image control... Message-ID: Hello to everyone on the list! How would I go about mixing two images (one a .PNG with transparency, and another a .JPG which will serve as the background) for use with the Gtk.Image control? I've worked loosely with images in Java before, creating animations using transparent PNGs and I did it all using the the Graphics class etc... Is there a similar system in Mono and are there any tutorials out there? What shows up on the mono page using Cairo seems way too complex or at least is not described in any palatable form what so ever. I've been bumping around using Pixbufs and Drawables but of course I can't get an instance of a Drawable. Again, almost similar to Java, but I think there's a few steps I'm missing. My question is rather simple, although I can't figure it from the API quite as easily as I thought it might be. I'm really enjoying Mono so far, so I'm hoping I can get help on this. Feel free to ask me any questions if you need to! - Alex -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/gtk-sharp-list/attachments/20071009/e3d82a78/attachment.html From eskil.bylund at gmail.com Tue Oct 9 10:05:27 2007 From: eskil.bylund at gmail.com (Eskil Bylund) Date: Tue, 9 Oct 2007 16:05:27 +0200 Subject: [Gtk-sharp-list] Hide Box In-Reply-To: References: <1191916413.3109.38.camel@tux.lib.cbs.dk> Message-ID: 2007/10/9, S?ren Juul : > > Thats weird the code below doesn't work for me > > hbox = new HBox(); > hbox.HideAll(); > testlabel = new Label("mm test"); > hbox.PackStart(testlabel); > hbox.Visible = false; Are you sure you're not calling ShowAll() on one of the parent widgets? (Widgets are hidden until explicitly shown, so there's got to be a ShowAll() call somewhere...) Eskil -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/gtk-sharp-list/attachments/20071009/bdb152b5/attachment-0001.html From eskil.bylund at gmail.com Tue Oct 9 14:48:04 2007 From: eskil.bylund at gmail.com (Eskil Bylund) Date: Tue, 9 Oct 2007 20:48:04 +0200 Subject: [Gtk-sharp-list] Working with Images, Gdk, and the Gtk.Image control... In-Reply-To: References: Message-ID: You can use the Gtk.DrawingArea for custom drawing. The Gdk.Drawable is available from the GdkWindow property. It's also possible to use System.Drawing with Gtk# by using Gtk.DotNet. A sample is available at http://anonsvn.mono-project.com/viewcvs/trunk/gtk-sharp/sample/DrawingSample.cs?rev=48859&view=auto $ mcs -pkg:gtk-sharp-2.0 -pkg:gtk-dotnet-2.0 -r:System.Drawing DrawingSample.cs Eskil From djsiegel at gmail.com Tue Oct 9 16:27:46 2007 From: djsiegel at gmail.com (David Siegel) Date: Tue, 9 Oct 2007 16:27:46 -0400 Subject: [Gtk-sharp-list] Pixbuf-releated memory leak Message-ID: <4d7ffd60710091327t17d9ca15u6f86c17bf142d110@mail.gmail.com> I'm loading icons of various sizes as Pixbufs using iconThem.LoadIcon(string icon_name, int size, int flags). All Pixbufs created this way are eventually dereferenced, but they don't seem to be getting freed and my memory usage increases by about a few megabytes a minute under heavy usage. Is this a bug in gtk-sharp? It seems like the GC should be freeing these Pixbufs. David -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/gtk-sharp-list/attachments/20071009/0ca863ab/attachment.html From eskil.bylund at gmail.com Wed Oct 10 14:35:00 2007 From: eskil.bylund at gmail.com (Eskil Bylund) Date: Wed, 10 Oct 2007 20:35:00 +0200 Subject: [Gtk-sharp-list] Working with Images, Gdk, and the Gtk.Image control... In-Reply-To: References: Message-ID: 2007/10/9, Alexander Trauzzi : > I'm slightly confused. What's the difference between the Gtk and Gdk > namespace? > Taken directly from http://gtk.org/tutorial/c24.html: "... GTK is built on top of GDK (GIMP Drawing Kit) which is basically a wrapper around the low-level functions for accessing the underlying windowing functions (Xlib in the case of the X windows system), and gdk-pixbuf, a library for client-side image manipulation." > As well, I want to create an image in memory that then gets displayed in an > image control, specifically "Gtk.Image"... To mix two images you can use the Composite method on a Gdk.Pixbuf. Attach is a sample showing this and how drawing can be made on a Drawable. It's pretty low level, so using System.Drawing with a DrawingArea might be easier (and there are many tutorials available on that topic). The docs at http://gtk.org/api/ has all the details on Gdk and Gtk. Eskil -------------- next part -------------- A non-text attachment was scrubbed... Name: PixbufSample.cs Type: text/x-csharp Size: 1726 bytes Desc: not available Url : http://lists.ximian.com/pipermail/gtk-sharp-list/attachments/20071010/7c846e2b/attachment.bin From bratsche at gnome.org Wed Oct 10 14:54:54 2007 From: bratsche at gnome.org (Cody Russell) Date: Wed, 10 Oct 2007 13:54:54 -0500 Subject: [Gtk-sharp-list] Pixbuf-releated memory leak In-Reply-To: <4d7ffd60710091327t17d9ca15u6f86c17bf142d110@mail.gmail.com> References: <4d7ffd60710091327t17d9ca15u6f86c17bf142d110@mail.gmail.com> Message-ID: <1192042494.10261.8.camel@scherzo> An embedded and charset-unspecified text was scrubbed... Name: not available Url: http://lists.ximian.com/pipermail/gtk-sharp-list/attachments/20071010/a98e8abe/attachment.pl From mikkel at linet.dk Fri Oct 12 10:38:13 2007 From: mikkel at linet.dk (Mikkel Kruse Johnsen) Date: Fri, 12 Oct 2007 14:38:13 +0000 Subject: [Gtk-sharp-list] Printing using Gtk-sharp 2.10 Message-ID: <1192199893.3030.11.camel@mikkel.orholm.dk> Hi I have a problem with printing, this example should print 3 pages. If selecting preview it works, but printing (to either printer or file) only gives me the first page. If setting 1-3 in Range it works. And OnPaginate is never called. Anyone have this problem ? or what am I doing wrong ? /Mikkel ----- Compile with: gmcs -out:Test.exe -pkg:gtk-sharp-2.0 -r:Mono.Cairo Test.cs mono Test.exe ------ Fedora 7 Mono JIT compiler version 1.2.3, (C) 2002-2006 Novell, Inc and Contributors. www.mono-project.com TLS: __thread GC: Included Boehm (with typed GC) SIGSEGV: normal Architecture: x86 Disabled: none gtk-sharp2-doc-2.10.0-4.fc7 njb-sharp-0.3.0-8.fc7 gtk-sharp2-2.10.0-4.fc7 gtk-sharp2-devel-2.10.0-4.fc7 gtk-sharp2-gapi-2.10.0-4.fc7 gnome-sharp-2.16.0-3.fc7 gnome-sharp-devel-2.16.0-3.fc7 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/gtk-sharp-list/attachments/20071012/d35f1a25/attachment.html -------------- next part -------------- A non-text attachment was scrubbed... Name: Test.cs Type: text/x-csharp Size: 2308 bytes Desc: not available Url : http://lists.ximian.com/pipermail/gtk-sharp-list/attachments/20071012/d35f1a25/attachment.bin From eskil.bylund at gmail.com Sat Oct 13 17:43:54 2007 From: eskil.bylund at gmail.com (Eskil Bylund) Date: Sat, 13 Oct 2007 23:43:54 +0200 Subject: [Gtk-sharp-list] TreeModel for storing objects Message-ID: Hi everyone, Thanks to Mike it's now possible (using gtk-sharp from svn trunk) to implement custom TreeModels[1]. Thus I wrote a model that stores objects and makes the object and a selected set of properties available as columns in the model. For example, to show a Person in a tree view, one could simply write: ObjectStore model = new ObjectStore (typeof(Person), "Firstname", "Lastname"); model.Add(new Person("John", "Lance")); TreeView view = new TreeView (new TreeModelAdapter (model)); view.AppendColumn ("First", new CellRendererText (), "text", 1); // The first column is the object view.AppendColumn ("Last", new CellRendererText (), "text", 2); sw.Add (view); Attached is the code and a sample program. Comments? Ideas? [1] Any GInterface actually: http://mono-project.com/ImplementingGInterfaces -------------- next part -------------- A non-text attachment was scrubbed... Name: ObjectModel.cs Type: text/x-csharp Size: 11610 bytes Desc: not available Url : http://lists.ximian.com/pipermail/gtk-sharp-list/attachments/20071013/ba673d8b/attachment-0001.bin From aaron at hardwarehookups.com.au Tue Oct 16 07:39:40 2007 From: aaron at hardwarehookups.com.au (Aaron Oxford) Date: Tue, 16 Oct 2007 21:39:40 +1000 Subject: [Gtk-sharp-list] Changing font size on a label Message-ID: <20071016114032.468127006B@herald.ximian.com> For the benefit of any poor soul searching this list for a way to change the font on a label in Gtk# (Novell Win32 2.8.3): Pango.FontDescription fd = Pango.FontDescription.FromString("Arial 7"); // small font Label l = new Label("Wiggity"); l.ModifyFont(fd); As with all things in Gtk#, not difficult, just inflexible and not documented anywhere. For the record: Pango.FontDescription fd = new Pango.FontDescription(); fd.Family = "Arial"; fd.Size = 7.0; Does NOT work. At least now in a few days time Googling 'gtk font label -php' might. :-) 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 welemski at gmail.com Wed Oct 17 01:13:40 2007 From: welemski at gmail.com (.::welemski::.) Date: Wed, 17 Oct 2007 13:13:40 +0800 Subject: [Gtk-sharp-list] Gecko.WebControl's ButtonPressEvent not firing Message-ID: <227e1afc0710162213s3e95d2fel7dafedb69d7ca81d@mail.gmail.com> Hi Lists, The Gecko's ButtonPressEvent is not firing. I was trying to make a popupmenu for gecko but can't capture any mouse clicks. How do I make Gecko.WebControl class detects mouse clicks? Thanks -- ? -- -- -- -- -- -- -- -- -- -- -- welemski ? -- -- -- -- -- -- -- -- -- -- -- -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/gtk-sharp-list/attachments/20071017/0b4a0ea6/attachment.html From miguel at ximian.com Wed Oct 17 11:10:10 2007 From: miguel at ximian.com (Miguel de Icaza) Date: Wed, 17 Oct 2007 11:10:10 -0400 Subject: [Gtk-sharp-list] New section: Howtos. Message-ID: <1192633810.4158.34.camel@erandi.dom> There is a new section on the web site where I would like to put some "HowTo" recipes. We have been putting some of these on the FAQ, but I believe that some of the longer stuff should go there. I would like to encourage folks to add some how-tos to the web site. http://www.mono-project.com/Howto From nigromx at gmail.com Wed Oct 17 17:01:11 2007 From: nigromx at gmail.com (nigro) Date: Wed, 17 Oct 2007 16:01:11 -0500 Subject: [Gtk-sharp-list] Grid Message-ID: <1fbaa1a50710171401j6976f834p5cda6032ef7fe54e@mail.gmail.com> Hi. I have a question about gtk-sharph, exist a datagrid for implement a sheet calc? I trying make a capture system in mono and I want implement a grid to put the data nut only I find treevie Greats. -- Eric Galicia Rosas CETEE ITAM msn: eric_galicia at hotmail.com tel: 56284000 ext 6612 cel: 0445532228865 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/gtk-sharp-list/attachments/20071017/78436b81/attachment.html From vladimir.giszpenc at gmail.com Thu Oct 18 12:57:15 2007 From: vladimir.giszpenc at gmail.com (Vladimir Giszpenc) Date: Thu, 18 Oct 2007 12:57:15 -0400 Subject: [Gtk-sharp-list] Model for TreeView Message-ID: <8ed5cbac0710180957w3c8c9887j75d767bd0fe398ee@mail.gmail.com> Thank you Eskil Bylund, As the line between NodeView and TreeView seems to be blurring, I am hoping that a useful easy to use control comes to be. NodeView is very easy to use. However there is no sorting (and probably filtering though I have not looked into this). Could NodeView be refactored to use this new technology to add the much needed sorting? Could the TreeView AppendColumn use reflection and attributes the way the NodeView does? Thanks, Vlad From austin at tradelogic.com Thu Oct 11 11:35:52 2007 From: austin at tradelogic.com (Austin Winstanley) Date: Thu, 11 Oct 2007 10:35:52 -0500 Subject: [Gtk-sharp-list] Glade 3.1.5 for Windows? Message-ID: <527a90a10710110835k108ebd5cmc2c47f56e9be7712@mail.gmail.com> Has anybody compiled Glade 3.1.5 for Windows? I looked around for it but I couldn't find anything. I'd like to use the new interface. I'm not a big fan of the multi-window interface that comes with Glade 3.0.2. I also tried to compile it in windows myself, but I was having some trouble (no idea how to use make in windows). Thanks! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/gtk-sharp-list/attachments/20071011/88f0e4af/attachment.html From mkestner at ximian.com Fri Oct 19 11:27:08 2007 From: mkestner at ximian.com (Mike Kestner) Date: Fri, 19 Oct 2007 10:27:08 -0500 Subject: [Gtk-sharp-list] Model for TreeView In-Reply-To: <8ed5cbac0710180957w3c8c9887j75d767bd0fe398ee@mail.gmail.com> References: <8ed5cbac0710180957w3c8c9887j75d767bd0fe398ee@mail.gmail.com> Message-ID: <1192807628.4054.7.camel@t61p.site> On Thu, 2007-10-18 at 12:57 -0400, Vladimir Giszpenc wrote: > However there is no sorting (and probably filtering though I have not > looked into this). > Could NodeView be refactored to use this new technology to add the > much needed sorting? There is an open bug report for this. It requires implementing the TreeModelSortable interface on the underlying NodeStore glue model. This is a feature I plan to add, it's just a matter of when. If someone is interested in working on it before I can get to it, I'd be happy to work with them. In the existing NodeStore architecture, it would require both C and C# hacking. -- Mike Kestner From ikaparamono at gmail.com Sat Oct 20 19:28:00 2007 From: ikaparamono at gmail.com (To) Date: Sun, 21 Oct 2007 01:28:00 +0200 Subject: [Gtk-sharp-list] OutOfMemory issue Message-ID: <1192922880.6383.2.camel@indi> Hi, I have built an application that frecuently give me (and users) an "OutOfMemory" crash. Suddenly, the memory goes to 1gb or something similar. I don't know how to debug this problem. Any recomendation? thanks kind regards From mjamon at ntsp.nec.co.jp Mon Oct 22 22:35:14 2007 From: mjamon at ntsp.nec.co.jp (Marc Glenn) Date: Tue, 23 Oct 2007 10:35:14 +0800 Subject: [Gtk-sharp-list] Problem with GtkWindow.Deletable Message-ID: <471D5DE2.9040602@mnl.ntsp.nec.co.jp> Hello everyone, I am having problems when I try to remove the close button of a window in a GTK# application. I tried setting the property GtkWindow.Deletable to *false* and it was able to remove the close button. But it has also removed the rest of the window except from the *title bar*. Attached with this message is a sample code of the problem that I experienced. I compiled the code in a windows environment using *gmcs -pkg:glade-sharp-2.0 DeletableTester.cs * Is this a problem with Mono? Thanks in advance. :-) Regards, Marc Glenn -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/gtk-sharp-list/attachments/20071023/7b15c957/attachment-0001.html -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: DeletableTester.cs Url: http://lists.ximian.com/pipermail/gtk-sharp-list/attachments/20071023/7b15c957/attachment-0001.pl From wasabi at larvalstage.net Wed Oct 24 18:48:11 2007 From: wasabi at larvalstage.net (Jerome Haltom) Date: Wed, 24 Oct 2007 17:48:11 -0500 Subject: [Gtk-sharp-list] GtkFormsPlug Message-ID: <1193266091.10608.8.camel@station-1.ad.isillc.com> I wrote this little control a few months ago. It is Win32 only, and lets you embed a System.Windows.Forms control into a Gtk# widget. I'm sure the same approach can be followed to make it run on X, but I'm not familiar enough with X to accomplish it. I'm sending it here in case anybody has interest in finishing it up and committing it to GtkSharp. There are a few bugs. Right click handling does not work, for example. It also can't be typed into properly, for the same reason right click handling doesn't work, probably. Somebody please help me fix it up! -------------- next part -------------- A non-text attachment was scrubbed... Name: GtkFormsPlug.cs Type: text/x-csharp Size: 2298 bytes Desc: not available Url : http://lists.ximian.com/pipermail/gtk-sharp-list/attachments/20071024/f149e6da/attachment.bin From monodanmorg at yahoo.com Thu Oct 25 00:11:13 2007 From: monodanmorg at yahoo.com (Daniel Morgan) Date: Wed, 24 Oct 2007 21:11:13 -0700 (PDT) Subject: [Gtk-sharp-list] Gtk CellRenderer Message-ID: <375454.69493.qm@web30813.mail.mud.yahoo.com> Is is possible to create an implementation of a Gtk CellRenderer in C#? I would like to create a cell renderer for displaying dates and another for displaying monetary amounts. I would like to use it with a TreeView using a ListStore tree model. Or has someone already done this and have source code available? __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From m.j.hutchinson at gmail.com Thu Oct 25 19:03:13 2007 From: m.j.hutchinson at gmail.com (Michael Hutchinson) Date: Thu, 25 Oct 2007 19:03:13 -0400 Subject: [Gtk-sharp-list] Gtk CellRenderer In-Reply-To: <375454.69493.qm@web30813.mail.mud.yahoo.com> References: <375454.69493.qm@web30813.mail.mud.yahoo.com> Message-ID: On 10/25/07, Daniel Morgan wrote: > Is is possible to create an implementation of a Gtk > CellRenderer in C#? Have a look at the MonoDevelop and Stetic PropertyGrid code. Also http://primates.ximian.com/~lluis/blog/archives/archive_2006-m03.php#e50 -- Michael Hutchinson http://mjhutchinson.com From yizhew at gmail.com Sat Oct 27 09:13:13 2007 From: yizhew at gmail.com (Yizhe Wu) Date: Sat, 27 Oct 2007 21:13:13 +0800 Subject: [Gtk-sharp-list] Question of gnome-sharp Message-ID: My OS is ubuntu 7.10. These days I want to install mono and monodevelop but I find monodevelop cannot be launched. The log information tells me that gnome-sharp isn't added to gac. When I check the gnome-sharp installation I found the gnome-sharp.dll hadn't be created. I had tried to use Ubuntu's update manager but it gives the same result. Can anybody tell me how to build gnome-sharp. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/gtk-sharp-list/attachments/20071027/505e8cf9/attachment.html From ex at vingrad.ru Fri Oct 26 19:24:30 2007 From: ex at vingrad.ru (Abramov Daniel) Date: Sat, 27 Oct 2007 03:24:30 +0400 Subject: [Gtk-sharp-list] ParamethrizedThreadNotify class Message-ID: <22e312d80710261624m562eb4fenffbd38d1b53d6763@mail.gmail.com> Hello! I've written kind of wrapper for ThreadNotify class, if you want to pass a parameter(s) to the method being invoked. Thought it might be useful for some, so I post it here. Hope you'll add it to SVN/ using System; using Gtk; namespace Gtk { public delegate void ParametherizedReadyEvent (T param); public class ParametherizedThreadNotify { private ThreadNotify te; private ParametherizedReadyEvent pre; private T param; public ParametherizedThreadNotify (ParametherizedReadyEvent pre) { this.pre = pre; this.te = new ThreadNotify (this.ReadyEvent); } private void ReadyEvent () { this.pre (this.param); } public void WakeupMain (T param) { this.param = param; this.te.WakeupMain (); } } } It's just that simple so I just copied it from clipboard and did not upload the file. I've tested it, and that works. -- Best regards, Daniel Abramov aka Exception -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/gtk-sharp-list/attachments/20071027/ede63477/attachment.html From ex at vingrad.ru Fri Oct 26 19:27:05 2007 From: ex at vingrad.ru (Abramov Daniel) Date: Sat, 27 Oct 2007 03:27:05 +0400 Subject: [Gtk-sharp-list] ParamethrizedThreadNotify class In-Reply-To: <22e312d80710261624m562eb4fenffbd38d1b53d6763@mail.gmail.com> References: <22e312d80710261624m562eb4fenffbd38d1b53d6763@mail.gmail.com> Message-ID: <22e312d80710261627m318a70f8x57db580ce9694848@mail.gmail.com> Something bad happened to me.. :) Not parametherized, but parameterized :)) . Possibly that's because of 'th' in 'thread'... So it should look like: using Gtk; namespace Gtk { public delegate void ParameterizedReadyEvent (T param); public class ParameterizedThreadNotify { private ThreadNotify te; private ParameterizedReadyEvent pre; private T param; public ParameterizedThreadNotify (ParameterizedReadyEvent pre) { this.pre = pre; this.te = new ThreadNotify (this.ReadyEvent); } private void ReadyEvent () { this.pre (this.param); } public void WakeupMain (T param) { this.param = param; this.te.WakeupMain (); } } } Sorry again. -- Best regards, Daniel Abramov aka Exception -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/gtk-sharp-list/attachments/20071027/e5b70c4f/attachment.html From sam at zoy.org Sun Oct 28 19:45:27 2007 From: sam at zoy.org (Sam Hocevar) Date: Mon, 29 Oct 2007 00:45:27 +0100 Subject: [Gtk-sharp-list] [patch] gtkglarea-sharp build fixes Message-ID: <20071028234527.GK10905@zoy.org> Hello, The gtkglarea-sharp has a typo in its configure.ac script that causes the gapi pkg-config check to fail. Also, examples fail to build with the current Tao.OpenGl bindings due to API changes (bugfixes). The attached two patches allows gtkglarea-sharp to build (and run) properly. Regards, -- Sam. -------------- next part -------------- A non-text attachment was scrubbed... Name: patch-gtkglarea-sharp-examples.diff Type: text/x-diff Size: 3071 bytes Desc: not available Url : http://lists.ximian.com/pipermail/gtk-sharp-list/attachments/20071029/640e8162/attachment-0002.bin -------------- next part -------------- A non-text attachment was scrubbed... Name: patch-gtkglarea-sharp-configure.diff Type: text/x-diff Size: 412 bytes Desc: not available Url : http://lists.ximian.com/pipermail/gtk-sharp-list/attachments/20071029/640e8162/attachment-0003.bin From lnc19 at hotmail.com Mon Oct 29 08:52:28 2007 From: lnc19 at hotmail.com (Luciano _) Date: Mon, 29 Oct 2007 12:52:28 +0000 Subject: [Gtk-sharp-list] Question of gnome-sharp In-Reply-To: References: Message-ID: I think that this i s not the correct list (See monodevelop list), but: I've got no problem on ubuntu 7.10, i installed with aptitude, and then i compile from source with no (much) problems, whats the message that you have? (Ubuntu repositories have MonoDevelop 0.15, this is the version that are you trying to install?) Bye Date: Sat, 27 Oct 2007 21:13:13 +0800From: yizhew at gmail.comTo: gtk-sharp-list at lists.ximian.comSubject: [Gtk-sharp-list] Question of gnome-sharpMy OS is ubuntu 7.10. These days I want to install mono and monodevelop but I find monodevelop cannot be launched. The log information tells me that gnome-sharp isn't added to gac. When I check the gnome-sharp installation I found the gnome-sharp.dll hadn't be created. I had tried to use Ubuntu's update manager but it gives the same result. Can anybody tell me how to build gnome-sharp. Thanks _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/gtk-sharp-list/attachments/20071029/38486a71/attachment.html From sam at zoy.org Mon Oct 29 12:22:08 2007 From: sam at zoy.org (Sam Hocevar) Date: Mon, 29 Oct 2007 17:22:08 +0100 Subject: [Gtk-sharp-list] [patch] .pc file naming convention Message-ID: <20071029162208.GM10905@zoy.org> Hello, The gtkglarea-sharp build process expects a Tao.OpenGl.pc file, but such a file doesn't exist anywhere AFAIK. The Tao Debian packages use tao-opengl.pc for consistency so I suggest using the same naming scheme (see also http://www.taoframework.com/node/432 for a discussion with the Tao maintainers about this). Regards, -- Sam. -------------- next part -------------- A non-text attachment was scrubbed... Name: patch-gtkglarea-sharp-pc-file.diff Type: text/x-diff Size: 1639 bytes Desc: not available Url : http://lists.ximian.com/pipermail/gtk-sharp-list/attachments/20071029/002f3b3a/attachment.bin From sam at zoy.org Mon Oct 29 12:42:47 2007 From: sam at zoy.org (Sam Hocevar) Date: Mon, 29 Oct 2007 17:42:47 +0100 Subject: [Gtk-sharp-list] [patch] gtkglarea-sharp picking example glitch Message-ID: <20071029164247.GN10905@zoy.org> Minor issue in gtkglarea-sharp's PickWidget.cs: the right mouse button is ignored upon press, but not upon release, leading to weird behaviour. -- Sam. -------------- next part -------------- A non-text attachment was scrubbed... Name: patch-gtkglarea-sharp-pickwidget-mouse-button.diff Type: text/x-diff Size: 626 bytes Desc: not available Url : http://lists.ximian.com/pipermail/gtk-sharp-list/attachments/20071029/75d9fbb6/attachment.bin From mjamon at ntsp.nec.co.jp Mon Oct 29 22:00:53 2007 From: mjamon at ntsp.nec.co.jp (Marc Glenn) Date: Tue, 30 Oct 2007 10:00:53 +0800 Subject: [Gtk-sharp-list] Docking Widgets Message-ID: <47269055.1060701@mnl.ntsp.nec.co.jp> Hello everyone, Is it possible to use Dockable Widgets in Gtk#. Ive read that it can be implemented using the gdl library and I already intalled it from source but I can't seem to find any sample programs on how to use the docking functionalities in the gdl library. Do you know any link that demonstrates on how to use the gdl docking widgets in C#?? Thanks in advance. Regards, Marc Glenn From m.j.hutchinson at gmail.com Mon Oct 29 23:00:05 2007 From: m.j.hutchinson at gmail.com (Michael Hutchinson) Date: Mon, 29 Oct 2007 23:00:05 -0400 Subject: [Gtk-sharp-list] Docking Widgets In-Reply-To: <47269055.1060701@mnl.ntsp.nec.co.jp> References: <47269055.1060701@mnl.ntsp.nec.co.jp> Message-ID: On 10/29/07, Marc Glenn wrote: > Hello everyone, > > Is it possible to use Dockable Widgets in Gtk#. Ive read that it > can be implemented using the gdl library and I already intalled it from > source but I can't seem to find any sample programs on how to use the > docking functionalities in the gdl library. > > Do you know any link that demonstrates on how to use the gdl > docking widgets in C#?? There's a managed port of GDL that's used in MonoDevelop, though it's GPL, which may not fit your needs. AFAIK there aren't any managed bindings for the C version of GDL (which is now LGPL), though you could of course try generating a binding with GAPI2. -- Michael Hutchinson http://mjhutchinson.com From sam at zoy.org Tue Oct 30 09:28:40 2007 From: sam at zoy.org (Sam Hocevar) Date: Tue, 30 Oct 2007 14:28:40 +0100 Subject: [Gtk-sharp-list] [patch] gtkglarea-sharp "make dist" fix Message-ID: <20071030132840.GQ10905@zoy.org> The gtkglarea-sharp package fails to properly detect the gapi tools, causing "make dist" to always fail. Patch attached. Regards, -- Sam. -------------- next part -------------- A non-text attachment was scrubbed... Name: patch-gtkglarea-gapi-detection.diff Type: text/x-diff Size: 529 bytes Desc: not available Url : http://lists.ximian.com/pipermail/gtk-sharp-list/attachments/20071030/5a10b728/attachment.bin From justin.young at dsto.defence.gov.au Sun Oct 28 23:31:19 2007 From: justin.young at dsto.defence.gov.au (fuzz22) Date: Sun, 28 Oct 2007 20:31:19 -0700 (PDT) Subject: [Gtk-sharp-list] GTK# Application.Init throws NullReferenceException Message-ID: <13461119.post@talk.nabble.com> I have an application in mono C# that we used to interact with from C using SWIG. We use the mono JIT interface for C to start the C#. e.g. mono_runtime_invoke(method, NULL, args, NULL); This all used to work fine until the upgrade to Ubuntu 7.10 in which we inherited Mono 1.2.4 up from 1.2.2.1. Now every time we run this application we get this: Unhandled Exception: System.NullReferenceException: A null value was found where an object instance was required. at Gtk.Application.SetPrgname () [0x00000] at Gtk.Application.Init () [0x00000] at GtkHelloWorld.runApp () [0x00000] at GtkHelloWorld.RunnerMain (Int64 rawPtr, System.String[] args) [0x00000] It looks as if GTK dies out at Application.Init :-( I tried this using just the simple HelloWorld found at http://www.mono-project.com/GtkSharp:_Hello_World and still get the same problem. By its self invoking mono HelloWorld.exe it runs no problems, calling from inside the C JIT interface dies. As i said this has worked in the past, for a very long time... and just started playing up. Any thoughts? I'm more than happy to post what ever code anyone might find relevant... I am hoping someone realizes a change made to the API and might point me in the direction of a fix. Thanks in advance - Justin -- View this message in context: http://www.nabble.com/GTK--Application.Init-throws-NullReferenceException-tf4709434.html#a13461119 Sent from the Mono - Gtk# mailing list archive at Nabble.com. From jan.hlodan at gmail.com Mon Oct 29 16:04:31 2007 From: jan.hlodan at gmail.com (Jan Hlodan) Date: Mon, 29 Oct 2007 21:04:31 +0100 Subject: [Gtk-sharp-list] problem with gnome-sharp In-Reply-To: <1193611260.806145.120850@22g2000hsm.googlegroups.com> References: <1193611260.806145.120850@22g2000hsm.googlegroups.com> Message-ID: Hello, I have problem with compiling "gnome-sharp". I have no ideas what now.... I followed this instruction: http://www.deepakg.com/blog/archives/39.htm but I got this: wewek at napsugaram:~/mono/gnome-sharp$ ./bootstrap-2.16 --prefix=/usr . . . configure: creating ./config.status config.status: creating AssemblyInfo.cs config.status: creating Makefile config.status: creating policy.config config.status: creating sources/Makefile config.status: creating art/Makefile config.status: creating art/art-sharp.dll.config config.status: creating art/art-sharp-2.0.pc config.status: creating gnome/Makefile config.status: creating gnome/gnome-sharp.dll.config config.status: creating gnome/gnome-sharp-2.0.pc config.status: creating gnome/glue/Makefile config.status: creating gnomevfs/Makefile config.status: creating gnomevfs/gnome-vfs-sharp.dll.config config.status: creating gnomevfs/gnome-vfs-sharp-2.0.pc config.status: creating gconf/Makefile config.status: creating gconf/doc/Makefile config.status: creating gconf/GConf/Makefile config.status: creating gconf/GConf/gconf-sharp.dll.config config.status: creating gconf/GConf/gconf-sharp-2.0.pc config.status: creating gconf/GConf.PropertyEditors/Makefile config.status: creating gconf/tools/Makefile config.status: creating gconf/tools/gconfsharp2-schemagen config.status: creating gtkhtml/Makefile config.status: creating gtkhtml/gtkhtml-sharp.dll.config config.status: creating gtkhtml/gtkhtml-sharp-2.0.pc config.status: creating rsvg/Makefile config.status: creating rsvg/rsvg-sharp.dll.config config.status: creating rsvg/rsvg-sharp-2.0.pc config.status: creating vte/Makefile config.status: creating vte/glue/Makefile config.status: creating vte/vte-sharp.dll.config config.status: creating vte/vte-sharp-2.0.pc config.status: creating sample/Makefile config.status: creating sample/gconf/Makefile config.status: creating sample/gnomevfs/Makefile config.status: creating sample/rsvg/Makefile config.status: creating config.h config.status: executing depfiles commands --- Configuration summary * Installation prefix = /usr * C# compiler: /usr/bin/mcs -debug -define:GTK_SHARP_2_6 - define:GTK_SHARP_2_8 -define:GNOME_SHARP_2_16 Optional assemblies included in the build: * art-sharp.dll: yes * gnomevfs-sharp.dll: yes * gnome-sharp.dll: yes * rsvg-sharp.dll: yes * gtkhtml-sharp.dll: yes * vte-sharp.dll: yes NOTE: if any of the above say 'no' you may install the corresponding development packages for them, rerun autogen.sh to include them in the build. gnome-sharp.dll requires libgnomecanvas, libgnome, libgnomeui, libgnomeprint, libgnomeprintui, and libpanelapplet. --- Now type `make' to compile wewek at napsugaram:~/mono/gnome-sharp$ make make all-recursive make[1]: Entering directory `/home/wewek/mono/gnome-sharp' Making all in sources make[2]: Entering directory `/home/wewek/mono/gnome-sharp/sources' make[2]: Nothing to be done for `all'. make[2]: Leaving directory `/home/wewek/mono/gnome-sharp/sources' Making all in art make[2]: Entering directory `/home/wewek/mono/gnome-sharp/art' cp ./art-api.raw art-api.xml chmod u+w art-api.xml /usr/bin/gapi2-fixup --api=art-api.xml --metadata=./Art.metadata -- symbols=./art-symbols.xml rm -f generated/* && \ /usr/bin/gapi2-codegen --generate art-api.xml \ -I:/usr/lib/pkgconfig/../../share/gapi-2.0/pango-api.xml -I:/ usr/lib/pkgconfig/../../share/gapi-2.0/atk-api.xml -I:/usr/lib/ pkgconfig/../../share/gapi-2.0/gdk-api.xml -I:/usr/lib/pkgconfig/../../ share/gapi-2.0/gtk-api.xml \ --outdir=generated --customdir=. --assembly-name=art- sharp \ --gluelib-name=artsharpglue-2 --glue-filename=glue/ generated.c \ --glue- includes= \ && touch generated-stamp Defaulting DestroyNotify param to 'call' scope in method PixBuf.art_pixbuf_new_rgb_dnotify Defaulting DestroyNotify param to 'call' scope in method PixBuf.art_pixbuf_new_rgba_dnotify Defaulting RenderAaCallback param to 'call' scope in method SVP.RenderAa Generation Summary: Enums: 10 Structs: 20 Boxed: 0 Opaques: 2 Interfaces: 0 Objects: 0 Callbacks: 2 Properties: 0 Signals: 0 Methods: 92 Constructors: 11 Throttled: 0 Total Nodes: 137 cp ../gtk-sharp.snk . cp ../AssemblyInfo.cs . /usr/bin/mcs -debug -define:GTK_SHARP_2_6 -define:GTK_SHARP_2_8 - define:GNOME_SHARP_2_16 -nowarn:0169,0612,0618 -unsafe -out:art- sharp.dll -target:library -r:/usr/lib/pkgconfig/../../lib/mono/gtk- sharp-2.0/pango-sharp.dll -r:/usr/lib/pkgconfig/../../lib/mono/gtk- sharp-2.0/atk-sharp.dll -r:/usr/lib/pkgconfig/../../lib/mono/gtk- sharp-2.0/gdk-sharp.dll -r:/usr/lib/pkgconfig/../../lib/mono/gtk- sharp-2.0/gtk-sharp.dll -r:/usr/lib/pkgconfig/../../lib/mono/gtk- sharp-2.0/glib-sharp.dll -r:/usr/lib/pkgconfig/../../lib/mono/1.0/ Mono.Cairo.dll generated/*.cs AssemblyInfo.cs AssemblyInfo.cs(7,11): error CS0234: The type or namespace name `IgnoreClassInitializers' does not exist in the namespace `GLib'. Are you missing an assembly reference? Compilation failed: 1 error(s), 0 warnings make[2]: *** [art-sharp.dll] Error 1 make[2]: Leaving directory `/home/wewek/mono/gnome-sharp/art' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/wewek/mono/gnome-sharp' make: *** [all] Error 2 Can you help me, please? I'm on Kubuntu 7.04 Thank you very much for help. wewek -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/gtk-sharp-list/attachments/20071029/e5f0a70b/attachment.html