From linux at famped.dk Tue Mar 4 09:09:34 2008 From: linux at famped.dk (Jesper K. Pedersen) Date: Tue, 4 Mar 2008 15:09:34 +0100 (CET) Subject: [Gtk-sharp-list] How do I control the text appearance of a Gtk.Entry widget ? Message-ID: <54811.87.50.254.86.1204639774.squirrel@webmail.famped.dk> I(newbie in Gtk#) am writing a small application where I need to "highlight" entry of data in a Gtk.Entry widget. Any ideas of how to best achieve that? My first guess is that there is some means of controlling the style of the entry but I am having trouble finding any examples of this) Any ideas are greatly appreciated From david at ritter.demon.co.uk Tue Mar 4 16:17:31 2008 From: david at ritter.demon.co.uk (David A Knight) Date: Tue, 04 Mar 2008 21:17:31 +0000 Subject: [Gtk-sharp-list] Gtk.TreePath double free / TreeModelImplementor Message-ID: <1204665451.7096.109.camel@ganymede,> I have recently installed gtk-sharp from svn to play with Gtk.TreeModelImplementor and have hit a slightly annoying problem, not sure if it is my code at fault or a problem with gtk-sharp. I have a Gtk.TreeModelImplementor which works with a List to provide a list view (seeing big memory savings where this works over a Gtk.ListStore). This seems to work great in some cases but in one instance I have a constant problem with a double from of a Gtk.TreePath: at (wrapper managed-to-native) Gtk.TreePath.gtk_tree_path_free (intptr) <0x0000b> at (wrapper managed-to-native) Gtk.TreePath.gtk_tree_path_free (intptr) <0xffffffff> at Gtk.TreePath.Free (intptr) [0x00000] in /home/david/Projects/mono/gtk-sharp/gtk/generated/TreePath.cs:160 at GLib.Opaque.set_Raw (intptr) [0x00027] in /home/david/Projects/mono/gtk-sharp/glib/Opaque.cs:79 at GLib.Opaque.Dispose () [0x00000] in /home/david/Projects/mono/gtk-sharp/glib/Opaque.cs:95 at GLib.Opaque.Finalize () [0x00000] in /home/david/Projects/mono/gtk-sharp/glib/Opaque.cs:90 at (wrapper runtime-invoke) GLib.ListBase.runtime_invoke_void (object,intptr,intptr,intptr) <0xffffffff> Has anyone else seen a similar problem? I've attached my TreeModelImplementor incase anyone can see anything wrong in that which could be causing this. David -------------- next part -------------- A non-text attachment was scrubbed... Name: GenericListModel.cs.gz Type: application/x-gzip Size: 1869 bytes Desc: not available Url : http://lists.ximian.com/pipermail/gtk-sharp-list/attachments/20080304/d9f67910/attachment.gz -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://lists.ximian.com/pipermail/gtk-sharp-list/attachments/20080304/d9f67910/attachment.bin From brad at langhorst.com Tue Mar 4 19:10:58 2008 From: brad at langhorst.com (Brad Langhorst) Date: Tue, 04 Mar 2008 19:10:58 -0500 Subject: [Gtk-sharp-list] Gtk.TreePath double free / TreeModelImplementor In-Reply-To: <1204665451.7096.109.camel@ganymede,> References: <1204665451.7096.109.camel@ganymede,> Message-ID: <1204675858.1075.80.camel@up> On Tue, 2008-03-04 at 21:17 +0000, David A Knight wrote: > I have recently installed gtk-sharp from svn to play with > Gtk.TreeModelImplementor and have hit a slightly annoying problem, not > sure if it is my code at fault or a problem with gtk-sharp. > > I have a Gtk.TreeModelImplementor which works with a List to provide > a list view (seeing big memory savings where this works over a > Gtk.ListStore). This seems to work great in some cases but in one > instance I have a constant problem with a double from of a Gtk.TreePath: I for one would love to see something like this get integrated. Sorry I can't spend any time checking it out at the moment... just wanted to offer my moral support. brad From mjamon at ntsp.nec.co.jp Tue Mar 4 22:23:21 2008 From: mjamon at ntsp.nec.co.jp (Marc Glenn) Date: Wed, 05 Mar 2008 11:23:21 +0800 Subject: [Gtk-sharp-list] A question on using TreeView Message-ID: <47CE1229.5030102@mnl.ntsp.nec.co.jp> Hello guys, I am using the TreeView with the TreeStore model. I would like to make the root node /"uncollapsable"/ since there is no need to collapse the root node in a TreeView. But i don't know how to do this. I tried setting TreeView.ShowExpanders = false; However, it removes the expanders for all the rows in the TreeView. I want to remove the expander of the root node only. Anyone know how i can do this. Thanks in advance. Marc Glenn From felipe.lessa at gmail.com Tue Mar 4 22:29:19 2008 From: felipe.lessa at gmail.com (Felipe Lessa) Date: Wed, 5 Mar 2008 00:29:19 -0300 Subject: [Gtk-sharp-list] A question on using TreeView In-Reply-To: <47CE1229.5030102@mnl.ntsp.nec.co.jp> References: <47CE1229.5030102@mnl.ntsp.nec.co.jp> Message-ID: You mean, http://www.go-mono.com/docs/index.aspx?tlink=5 at ecma%3a1418%23TreeView%2fE%2f3 ? -- Felipe. From felipe.lessa at gmail.com Tue Mar 4 22:31:31 2008 From: felipe.lessa at gmail.com (Felipe Lessa) Date: Wed, 5 Mar 2008 00:31:31 -0300 Subject: [Gtk-sharp-list] A question on using TreeView In-Reply-To: References: <47CE1229.5030102@mnl.ntsp.nec.co.jp> Message-ID: On Wed, Mar 5, 2008 at 12:29 AM, Felipe Lessa wrote: > You mean, http://www.go-mono.com/docs/index.aspx?tlink=5 at ecma%3a1418%23TreeView%2fE%2f3 > ? Oops, http://www.go-mono.com/docs/index.aspx?link=F%3aGtk.TreeView.TestCollapseRow -- Felipe. From mkestner at gmail.com Tue Mar 4 23:23:40 2008 From: mkestner at gmail.com (Mike Kestner) Date: Tue, 04 Mar 2008 22:23:40 -0600 Subject: [Gtk-sharp-list] A question on using TreeView In-Reply-To: <47CE1229.5030102@mnl.ntsp.nec.co.jp> References: <47CE1229.5030102@mnl.ntsp.nec.co.jp> Message-ID: <1204691020.25213.191.camel@t61p.site> On Wed, 2008-03-05 at 11:23 +0800, Marc Glenn wrote: > Hello guys, > > I am using the TreeView with the TreeStore model. > I would like to make the root node /"uncollapsable"/ since there is > no need to collapse the root node in a TreeView. Not sure I understand, but if you don't want a collapsable toplevel node, don't insert one. Just insert your real toplevel nodes into the view. You don't have to have a single root node. You can insert nodes with a null parent. -- Mike Kestner From brad at langhorst.com Wed Mar 5 17:42:27 2008 From: brad at langhorst.com (Brad Langhorst) Date: Wed, 05 Mar 2008 17:42:27 -0500 Subject: [Gtk-sharp-list] access violation Message-ID: <1204756947.1075.97.camel@up> PS: this is gtk-sharp 2.8.3 on windows (what's packaged with the most recent mono) http://monoport.com/7814 I have put in a GC.Collect(); right after the call to this function and it triggers the access violation every time. If I comment lines 8,9,10 and 14,15,16 I don't get the violation (or a working tree) if I leave them in i get the violation every time. here's what goes in the console... Exception while disposing a Gtk.TreeViewColumn in Gtk# 10890 [11] ERROR Sucker.Gui (null) - Unexpected error occurred: Attempted to read or write protected memory. This is often an indication that other memory is corrupt. System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt. at GLib.Object.Dispose() at Gtk.Object.Dispose() at GLib.Object.PerformQueuedUnrefs() I can't see a problem with this code... Those columns are being added to tvSolution which stays in scope during the whole form display. What can I do? For the moment I've moved the declaration for those two treeviewcolumns to the class level, which moves the problem out of this form to the calling form... sigh. Am i going to have to make these application GLOBAL? Maybe it's because I have not put anything into the tree yet? brad From mjamon at ntsp.nec.co.jp Wed Mar 5 20:26:59 2008 From: mjamon at ntsp.nec.co.jp (Marc Glenn) Date: Thu, 06 Mar 2008 09:26:59 +0800 Subject: [Gtk-sharp-list] A question on using TreeView In-Reply-To: <1204691020.25213.191.camel@t61p.site> References: <47CE1229.5030102@mnl.ntsp.nec.co.jp> <1204691020.25213.191.camel@t61p.site> Message-ID: <47CF4863.6030409@mnl.ntsp.nec.co.jp> Hello guys, Thanks to all who replied. I think I just overlooked it. The nodes can be inserted without a toplevel node. Thanks again. Marc Glenn From chuck.esterbrook at gmail.com Wed Mar 5 22:21:54 2008 From: chuck.esterbrook at gmail.com (Chuck Esterbrook) Date: Wed, 5 Mar 2008 19:21:54 -0800 Subject: [Gtk-sharp-list] Getting started on Mac Message-ID: <94cdd26f0803051921u31419b2ah51e7308ae65b3c84@mail.gmail.com> Hi, I'm on Mac OS X 10.4 where I'm trying to get a basic GTK# program going. I'm working off of http://www.mono-project.com/GtkSharpBeginnersGuide Here I go: $ mcs -pkg:gtk-sharp-2.0 hello.cs Package gtk-sharp-2.0 was not found in the pkg-config search path. Perhaps you should add the directory containing `gtk-sharp-2.0.pc' to the PKG_CONFIG_PATH environment variable No package 'gtk-sharp-2.0' found error CS8027: Error running pkg-config. Check the above output. The beginner's guide directs me to "Downloads" at: http://www.go-mono.com/mono-downloads/download.html There I'm told that the Mono package "Includes Mono, Cocoa#, Gtk#, MonoDevelop installs in /Library/Frameworks:" But I have Mono 1.2.6 already! And I can't find anything else on the Downloads page except "Cocoa# 0.9.4 source". $ mono --version Mono JIT compiler version 1.2.6 (tarball) Copyright (C) 2002-2007 Novell, Inc and Contributors. www.mono-project.com TLS: normal GC: Included Boehm (with typed GC) SIGSEGV: normal Notification: Thread + polling Architecture: x86 Disabled: none I tried "gacutil /l | grep -i gtk" and got nothing. I tried "gacutil /l | sort" and read through the list but nothing caught my eye except competing frameworks like cocoa-sharp and System.Windows.Forms. ;-) I also tried Spotlight for "gtk-sharp". Nothing. So I definitely don't have it. I also don't know where/how to get it. *** Is anyone using GTK# on the Mac? If so, what version of Mac, Mono and GTK#? How/where did you get it? Thanks, -Chuck From brad at langhorst.com Wed Mar 5 23:03:34 2008 From: brad at langhorst.com (Brad Langhorst) Date: Wed, 05 Mar 2008 23:03:34 -0500 Subject: [Gtk-sharp-list] access violation In-Reply-To: <1204756947.1075.97.camel@up> References: <1204756947.1075.97.camel@up> Message-ID: <1204776214.1075.107.camel@up> On Wed, 2008-03-05 at 17:42 -0500, Brad Langhorst wrote: > PS: this is gtk-sharp 2.8.3 on windows (what's packaged with the most > recent mono) After some help on IRC, I was able to find a 2.10.3 runtime package for gtk# that fixed my troubles. Actually it fixed all the lingering bugs that I was putting off working on - so that was quite pleasant. Not so pleasant that I needed help to find the 2.10.3 release, or that it's from a 3rd party. Why is the official copy so badly out of date? brad From bratsche at gnome.org Wed Mar 5 23:08:05 2008 From: bratsche at gnome.org (Cody Russell) Date: Wed, 05 Mar 2008 22:08:05 -0600 Subject: [Gtk-sharp-list] Getting started on Mac In-Reply-To: <94cdd26f0803051921u31419b2ah51e7308ae65b3c84@mail.gmail.com> References: <94cdd26f0803051921u31419b2ah51e7308ae65b3c84@mail.gmail.com> Message-ID: <1204776485.5227.4.camel@prometheus> Do you have pkg-config installed? If so, try running: pkg-config --modversion gtk-sharp-2.0 Presumably it will tell you that there is no package `gtk-sharp-2.0' found. Try searching for gtk-sharp-2.0.pc file under wherever things are installed (sorry, I don't use a Mac so I don't really know how it's setup). On a typical Linux system it would be at /usr/lib/pkgconfig/gtk-sharp-2.0.pc Assuming that file is in fact installed, try setting an environment variable PKG_CONFIG_PATH="$PKG_CONFIG_PATH:/usr/lib/pkgconfig" (obviously, change that directory to wherever it's installed on your Mac). / Cody On Wed, 2008-03-05 at 19:21 -0800, Chuck Esterbrook wrote: > Hi, > > I'm on Mac OS X 10.4 where I'm trying to get a basic GTK# program > going. I'm working off of > http://www.mono-project.com/GtkSharpBeginnersGuide > > Here I go: > $ mcs -pkg:gtk-sharp-2.0 hello.cs > Package gtk-sharp-2.0 was not found in the pkg-config search path. > Perhaps you should add the directory containing `gtk-sharp-2.0.pc' > to the PKG_CONFIG_PATH environment variable > No package 'gtk-sharp-2.0' found > error CS8027: Error running pkg-config. Check the above output. > > The beginner's guide directs me to "Downloads" at: > http://www.go-mono.com/mono-downloads/download.html > > There I'm told that the Mono package "Includes Mono, Cocoa#, Gtk#, > MonoDevelop installs in /Library/Frameworks:" > > But I have Mono 1.2.6 already! And I can't find anything else on the > Downloads page except "Cocoa# 0.9.4 source". > > $ mono --version > Mono JIT compiler version 1.2.6 (tarball) > Copyright (C) 2002-2007 Novell, Inc and Contributors. www.mono-project.com > TLS: normal > GC: Included Boehm (with typed GC) > SIGSEGV: normal > Notification: Thread + polling > Architecture: x86 > Disabled: none > > I tried "gacutil /l | grep -i gtk" and got nothing. I tried "gacutil > /l | sort" and read through the list but nothing caught my eye except > competing frameworks like cocoa-sharp and System.Windows.Forms. ;-) > > I also tried Spotlight for "gtk-sharp". Nothing. > > So I definitely don't have it. I also don't know where/how to get it. > > *** Is anyone using GTK# on the Mac? If so, what version of Mac, Mono > and GTK#? How/where did you get it? > > Thanks, > -Chuck > _______________________________________________ > Gtk-sharp-list maillist - Gtk-sharp-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/gtk-sharp-list From chuck.esterbrook at gmail.com Thu Mar 6 01:08:35 2008 From: chuck.esterbrook at gmail.com (Chuck Esterbrook) Date: Wed, 5 Mar 2008 22:08:35 -0800 Subject: [Gtk-sharp-list] Getting started on Mac In-Reply-To: <1204776485.5227.4.camel@prometheus> References: <94cdd26f0803051921u31419b2ah51e7308ae65b3c84@mail.gmail.com> <1204776485.5227.4.camel@prometheus> Message-ID: <94cdd26f0803052208j25ed25f7n1d2e98c123bc4fa3@mail.gmail.com> Hi Cody, Thanks for the help, but there is to '*gtk*' anywhere in my Mono install directory except: ./Versions/1.2.3.1/share/gtksourceview-1.0 I just found out where the previews are located so I think I'll give 1.9 preview 4 a try and see: http://mono.ximian.com/monobuild/preview/download-preview/ -Chuck On Wed, Mar 5, 2008 at 8:08 PM, Cody Russell wrote: > Do you have pkg-config installed? If so, try running: > pkg-config --modversion gtk-sharp-2.0 > > Presumably it will tell you that there is no package `gtk-sharp-2.0' > found. Try searching for gtk-sharp-2.0.pc file under wherever things > are installed (sorry, I don't use a Mac so I don't really know how it's > setup). On a typical Linux system it would be > at /usr/lib/pkgconfig/gtk-sharp-2.0.pc > > Assuming that file is in fact installed, try setting an environment > variable > PKG_CONFIG_PATH="$PKG_CONFIG_PATH:/usr/lib/pkgconfig" (obviously, change > that directory to wherever it's installed on your Mac). > > / Cody > > > > On Wed, 2008-03-05 at 19:21 -0800, Chuck Esterbrook wrote: > > Hi, > > > > I'm on Mac OS X 10.4 where I'm trying to get a basic GTK# program > > going. I'm working off of > > http://www.mono-project.com/GtkSharpBeginnersGuide > > > > Here I go: > > $ mcs -pkg:gtk-sharp-2.0 hello.cs > > Package gtk-sharp-2.0 was not found in the pkg-config search path. > > Perhaps you should add the directory containing `gtk-sharp-2.0.pc' > > to the PKG_CONFIG_PATH environment variable > > No package 'gtk-sharp-2.0' found > > error CS8027: Error running pkg-config. Check the above output. > > > > The beginner's guide directs me to "Downloads" at: > > http://www.go-mono.com/mono-downloads/download.html > > > > There I'm told that the Mono package "Includes Mono, Cocoa#, Gtk#, > > MonoDevelop installs in /Library/Frameworks:" > > > > But I have Mono 1.2.6 already! And I can't find anything else on the > > Downloads page except "Cocoa# 0.9.4 source". > > > > $ mono --version > > Mono JIT compiler version 1.2.6 (tarball) > > Copyright (C) 2002-2007 Novell, Inc and Contributors. www.mono-project.com > > TLS: normal > > GC: Included Boehm (with typed GC) > > SIGSEGV: normal > > Notification: Thread + polling > > Architecture: x86 > > Disabled: none > > > > I tried "gacutil /l | grep -i gtk" and got nothing. I tried "gacutil > > /l | sort" and read through the list but nothing caught my eye except > > competing frameworks like cocoa-sharp and System.Windows.Forms. ;-) > > > > I also tried Spotlight for "gtk-sharp". Nothing. > > > > So I definitely don't have it. I also don't know where/how to get it. > > > > *** Is anyone using GTK# on the Mac? If so, what version of Mac, Mono > > and GTK#? How/where did you get it? > > > > Thanks, > > -Chuck > > _______________________________________________ > > Gtk-sharp-list maillist - Gtk-sharp-list at lists.ximian.com > > http://lists.ximian.com/mailman/listinfo/gtk-sharp-list From chuck.esterbrook at gmail.com Thu Mar 6 11:38:48 2008 From: chuck.esterbrook at gmail.com (Chuck Esterbrook) Date: Thu, 6 Mar 2008 08:38:48 -0800 Subject: [Gtk-sharp-list] access violation In-Reply-To: <1204776214.1075.107.camel@up> References: <1204756947.1075.97.camel@up> <1204776214.1075.107.camel@up> Message-ID: <94cdd26f0803060838y51c45664qc231542cb789472d@mail.gmail.com> On Wed, Mar 5, 2008 at 8:03 PM, Brad Langhorst wrote: > On Wed, 2008-03-05 at 17:42 -0500, Brad Langhorst wrote: > > PS: this is gtk-sharp 2.8.3 on windows (what's packaged with the most > > recent mono) > > After some help on IRC, I was able to find a 2.10.3 runtime package for > gtk# that fixed my troubles. > > Actually it fixed all the lingering bugs that I was putting off working > on - so that was quite pleasant. > > Not so pleasant that I needed help to find the 2.10.3 release, or that > it's from a 3rd party. > > Why is the official copy so badly out of date? > > > brad Probably because that's what was current at the time of the last release. But check out "Mono 1.9 Downloads (Preview 4)" at: http://mono.ximian.com/monobuild/preview/download-preview/ It says gtk-sharp-2.10.4 You could take it for a test drive and give feedback before Mono 1.9 is finalized. Also from the Mono downloads page there is a link to "Other Downloads" and there is a "Standalone Gtk# Installer for Microsoft .NET Framework" if that's of any interest to you. HTH, -Chuck From mkestner at gmail.com Thu Mar 6 12:26:36 2008 From: mkestner at gmail.com (Mike Kestner) Date: Thu, 06 Mar 2008 11:26:36 -0600 Subject: [Gtk-sharp-list] access violation In-Reply-To: <94cdd26f0803060838y51c45664qc231542cb789472d@mail.gmail.com> References: <1204756947.1075.97.camel@up> <1204776214.1075.107.camel@up> <94cdd26f0803060838y51c45664qc231542cb789472d@mail.gmail.com> Message-ID: <1204824396.25213.212.camel@t61p.site> On Thu, 2008-03-06 at 08:38 -0800, Chuck Esterbrook wrote: > Probably because that's what was current at the time of the last release. > > But check out "Mono 1.9 Downloads (Preview 4)" at: > http://mono.ximian.com/monobuild/preview/download-preview/ > > It says gtk-sharp-2.10.4 > > You could take it for a test drive and give feedback before Mono 1.9 > is finalized. > > Also from the Mono downloads page there is a link to "Other Downloads" > and there is a "Standalone Gtk# Installer for Microsoft .NET > Framework" if that's of any interest to you. My guess is that's the link he's saying is out of date. The installers paco was maintaining on novell forge have not been updated in a while. The primary source for standalone installers at this point is: http://sourceforge.net/project/showfiles.php?group_id=74626&package_id=223067 The folks at Medsphere are doing an outstanding job of packaging for win32, and are no more of a "3rd party" provider than the novell forge project was. Those dudes are 1st party. ;-) I will talk to Wade about pointing our download page at that page instead of the current link. -- Mike Kestner From brad at langhorst.com Thu Mar 6 12:47:04 2008 From: brad at langhorst.com (Brad Langhorst) Date: Thu, 06 Mar 2008 12:47:04 -0500 Subject: [Gtk-sharp-list] access violation In-Reply-To: <1204824396.25213.212.camel@t61p.site> References: <1204756947.1075.97.camel@up> <1204776214.1075.107.camel@up> <94cdd26f0803060838y51c45664qc231542cb789472d@mail.gmail.com> <1204824396.25213.212.camel@t61p.site> Message-ID: <1204825624.1075.123.camel@up> On Thu, 2008-03-06 at 11:26 -0600, Mike Kestner wrote: > On Thu, 2008-03-06 at 08:38 -0800, Chuck Esterbrook wrote: > > > Probably because that's what was current at the time of the last release. > > > > But check out "Mono 1.9 Downloads (Preview 4)" at: > > http://mono.ximian.com/monobuild/preview/download-preview/ chuck: Thanks I didn't find that before, probably because I was looking for something stable. Now that I have a working system I think I'll stick with it. > My guess is that's the link he's saying is out of date. The installers > paco was maintaining on novell forge have not been updated in a while. > > The primary source for standalone installers at this point is: > > http://sourceforge.net/project/showfiles.php?group_id=74626&package_id=223067 > > The folks at Medsphere are doing an outstanding job of packaging for > win32, and are no more of a "3rd party" provider than the novell forge > project was. Those dudes are 1st party. ;-) > > I will talk to Wade about pointing our download page at that page > instead of the current link. > Thanks for the clarification - that makes me feel a bit more confident. Even if that sdk package can't tell when .net1.1 is installed (and cares). I hope I didn't come off too whiney... I'm happier with gtk now with a few more days of experience and some sleep. I am keeping a list of "annoyances" and my workarounds that I might post sometime soon. Brad From chuck.esterbrook at gmail.com Thu Mar 6 13:03:46 2008 From: chuck.esterbrook at gmail.com (Chuck Esterbrook) Date: Thu, 6 Mar 2008 10:03:46 -0800 Subject: [Gtk-sharp-list] access violation In-Reply-To: <1204824396.25213.212.camel@t61p.site> References: <1204756947.1075.97.camel@up> <1204776214.1075.107.camel@up> <94cdd26f0803060838y51c45664qc231542cb789472d@mail.gmail.com> <1204824396.25213.212.camel@t61p.site> Message-ID: <94cdd26f0803061003s99936c8yac257901ee1a2dc9@mail.gmail.com> On Thu, Mar 6, 2008 at 9:26 AM, Mike Kestner wrote: > On Thu, 2008-03-06 at 08:38 -0800, Chuck Esterbrook wrote: > > Probably because that's what was current at the time of the last release. > > > > But check out "Mono 1.9 Downloads (Preview 4)" at: > > http://mono.ximian.com/monobuild/preview/download-preview/ > > > > It says gtk-sharp-2.10.4 > > > > You could take it for a test drive and give feedback before Mono 1.9 > > is finalized. > > > > Also from the Mono downloads page there is a link to "Other Downloads" > > and there is a "Standalone Gtk# Installer for Microsoft .NET > > Framework" if that's of any interest to you. > > My guess is that's the link he's saying is out of date. The installers > paco was maintaining on novell forge have not been updated in a while. He quoted this: > PS: this is gtk-sharp 2.8.3 on windows (what's packaged with the most > recent mono) And the page I'm referring to says "GTK# 2.10 Installer:". So I don't think he saw that page. > The primary source for standalone installers at this point is: > > http://sourceforge.net/project/showfiles.php?group_id=74626&package_id=223067 > > The folks at Medsphere are doing an outstanding job of packaging for > win32, and are no more of a "3rd party" provider than the novell forge > project was. Those dudes are 1st party. ;-) > > I will talk to Wade about pointing our download page at that page > instead of the current link. Yeah it's getting confusing... -Chuck From chuck.esterbrook at gmail.com Thu Mar 6 13:07:13 2008 From: chuck.esterbrook at gmail.com (Chuck Esterbrook) Date: Thu, 6 Mar 2008 10:07:13 -0800 Subject: [Gtk-sharp-list] access violation In-Reply-To: <1204825624.1075.123.camel@up> References: <1204756947.1075.97.camel@up> <1204776214.1075.107.camel@up> <94cdd26f0803060838y51c45664qc231542cb789472d@mail.gmail.com> <1204824396.25213.212.camel@t61p.site> <1204825624.1075.123.camel@up> Message-ID: <94cdd26f0803061007rfb033b7x279e6f3142f3560@mail.gmail.com> On Thu, Mar 6, 2008 at 9:47 AM, Brad Langhorst wrote: > I hope I didn't come off too whiney... I'm happier with gtk now with a > few more days of experience and some sleep. I am keeping a list of > "annoyances" and my workarounds that I might post sometime soon. I think every open source project needs these kinds of inquiries and reports. Without them, the project won't improve in those areas. Also, if you're having a problem, it's likely that in the future others will have that same problem--until it's addressed. I'd be very interested in seeing your beginner notes on GTK#. I'm a beginner with it as well. -Chuck From fut_nis at d3.dion.ne.jp Thu Mar 6 06:07:15 2008 From: fut_nis at d3.dion.ne.jp (Nishio Futoshi) Date: Thu, 6 Mar 2008 20:07:15 +0900 Subject: [Gtk-sharp-list] bad pkgconfig path (gnome-desktop-sharp-2.20.0) Message-ID: <20080306200715.45e05b4b.fut_nis@d3.dion.ne.jp> Hi. There is a wrong path in gtksourceview/gtksourceview2-sharp.pc.in with gnome-desktop-sharp-2.20.0 patch was below Thanks. --- gnome-desktop-sharp-2.20.0/gtksourceview/gtksourceview2-sharp.pc.in.old 2008-03-06 19:52:52.000000000 +0900 +++ gnome-desktop-sharp-2.20.0/gtksourceview/gtksourceview2-sharp.pc.in 2008-03-06 19:53:34.000000000 +0900 @@ -7,4 +7,4 @@ Description: GtkSourceView# - gtksourceview .NET Binding Version: @VERSION@ Requires: gtk-sharp-2.0 -Libs: -r:${prefix}/lib/mono/gtksourceview2-sharp/gtksourceview2-sharp.dll +Libs: -r:${prefix}/lib/mono/gtksourceview2-sharp-2.0/gtksourceview2-sharp.dll -- Nishio Futoshi From m.j.hutchinson at gmail.com Sat Mar 8 18:22:54 2008 From: m.j.hutchinson at gmail.com (Michael Hutchinson) Date: Sat, 8 Mar 2008 18:22:54 -0500 Subject: [Gtk-sharp-list] How do I control the text appearance of a Gtk.Entry widget ? In-Reply-To: <54811.87.50.254.86.1204639774.squirrel@webmail.famped.dk> References: <54811.87.50.254.86.1204639774.squirrel@webmail.famped.dk> Message-ID: On Tue, Mar 4, 2008 at 9:09 AM, Jesper K. Pedersen wrote: > I(newbie in Gtk#) am writing a small application where I need to > "highlight" entry of data in a Gtk.Entry widget. > > Any ideas of how to best achieve that? > > My first guess is that there is some means of controlling the style of the > entry but I am having trouble finding any examples of this) > > Any ideas are greatly appreciated http://go-mono.com/docs/monodoc.ashx?link=M%3aGtk.Widget.ModifyBg(Gtk.StateType%2cGdk.Color) (though it might be ModifyBase, can't remember which style/state is used for the background of the Entry) http://ometer.com/gtk-colors.html Note also that setting styles will only affect the things that that widget actually draws, e.g. containers don't draw backgrounds. -- Michael Hutchinson http://mjhutchinson.com From m.j.hutchinson at gmail.com Sat Mar 8 18:25:34 2008 From: m.j.hutchinson at gmail.com (Michael Hutchinson) Date: Sat, 8 Mar 2008 18:25:34 -0500 Subject: [Gtk-sharp-list] About version Gtk# 2.10.x, but deploy into Gtk#2.8 ? In-Reply-To: References: Message-ID: On Wed, Feb 27, 2008 at 9:58 AM, Ruben Guinez wrote: > Hi. > I'm in process to deploy my Gtk# app from openSUSE 10.2 32 Bit to SLES > 10 x86_64. With the help of Michael Hutchtinton (mono team) now, I > know about of "Add Ins" control version of GTK#. Then I target my > deploy ok. But, when I try to run my app into SLES I get this message: > > > (:15918): Gtk-WARNING **: Locale not supported by C library. > Using the fallback 'C' locale. > > (:15918): Gtk-WARNING **: cannot open display: > > > Please...., anybody know what's wrong....? > Something very strange is up with the X environment. It looks like $DISPLAY is blank. Does this happen with any other GTK or GTK# apps? -- Michael Hutchinson http://mjhutchinson.com From chuck.esterbrook at gmail.com Sat Mar 8 23:05:23 2008 From: chuck.esterbrook at gmail.com (Chuck Esterbrook) Date: Sat, 8 Mar 2008 20:05:23 -0800 Subject: [Gtk-sharp-list] Getting started on Mac In-Reply-To: <94cdd26f0803052208j25ed25f7n1d2e98c123bc4fa3@mail.gmail.com> References: <94cdd26f0803051921u31419b2ah51e7308ae65b3c84@mail.gmail.com> <1204776485.5227.4.camel@prometheus> <94cdd26f0803052208j25ed25f7n1d2e98c123bc4fa3@mail.gmail.com> Message-ID: <94cdd26f0803082005w4e057a71he81c8c6f5aa45b34@mail.gmail.com> On Wed, Mar 5, 2008 at 10:08 PM, Chuck Esterbrook wrote: > Hi Cody, > > Thanks for the help, but there is to '*gtk*' anywhere in my Mono > install directory except: > > ./Versions/1.2.3.1/share/gtksourceview-1.0 > > I just found out where the previews are located so I think I'll give > 1.9 preview 4 a try and see: > http://mono.ximian.com/monobuild/preview/download-preview/ > > -Chuck Mono 1.9 Preview 4 did the trick. And all my software is running as stable as before. I would encourage users of Mono 1.2.x to give it a try both for the benefits of the newer versions of various packages as well as to test and give feedback to Novell before they finalize it: http://mono.ximian.com/monobuild/preview/download-preview/ -Chuck -- http://cobra-language.com/ From chuck.esterbrook at gmail.com Sat Mar 8 23:07:19 2008 From: chuck.esterbrook at gmail.com (Chuck Esterbrook) Date: Sat, 8 Mar 2008 20:07:19 -0800 Subject: [Gtk-sharp-list] Getting started on Mac In-Reply-To: <94cdd26f0803082005w4e057a71he81c8c6f5aa45b34@mail.gmail.com> References: <94cdd26f0803051921u31419b2ah51e7308ae65b3c84@mail.gmail.com> <1204776485.5227.4.camel@prometheus> <94cdd26f0803052208j25ed25f7n1d2e98c123bc4fa3@mail.gmail.com> <94cdd26f0803082005w4e057a71he81c8c6f5aa45b34@mail.gmail.com> Message-ID: <94cdd26f0803082007i6e1fde3coc4d51a8724739a70@mail.gmail.com> On Sat, Mar 8, 2008 at 8:05 PM, Chuck Esterbrook wrote: > On Wed, Mar 5, 2008 at 10:08 PM, Chuck Esterbrook > wrote: > > Hi Cody, > > > > Thanks for the help, but there is to '*gtk*' anywhere in my Mono > > install directory except: > > > > ./Versions/1.2.3.1/share/gtksourceview-1.0 > > > > I just found out where the previews are located so I think I'll give > > 1.9 preview 4 a try and see: > > http://mono.ximian.com/monobuild/preview/download-preview/ > > > > -Chuck > > Mono 1.9 Preview 4 did the trick. And all my software is running as > stable as before. > > I would encourage users of Mono 1.2.x to give it a try both for the > benefits of the newer versions of various packages as well as to test > and give feedback to Novell before they finalize it: > > > > http://mono.ximian.com/monobuild/preview/download-preview/ > > -Chuck > -- > http://cobra-language.com/ Woops. I didn't mean to include my sig with the message because Cobra is a pre-1.0 language with some growing pains. Including that the last release chokes on the gtk-sharp-2.0.dll. If you're interested in Cobra, wait 1 - 2 weeks for the next release which will fix related problems and include a small GTK sample. -Chuck From linux at famped.dk Sun Mar 9 04:10:22 2008 From: linux at famped.dk (Jesper K. Pedersen) Date: Sun, 9 Mar 2008 09:10:22 +0100 Subject: [Gtk-sharp-list] How do I control the text appearance of a Gtk.Entry widget ? In-Reply-To: References: <54811.87.50.254.86.1204639774.squirrel@webmail.famped.dk> Message-ID: <20080309091022.71dfc504@io.solnet> On Sat, 8 Mar 2008 18:22:54 -0500 "Michael Hutchinson" wrote: > On Tue, Mar 4, 2008 at 9:09 AM, Jesper K. Pedersen > wrote: > > I(newbie in Gtk#) am writing a small application where I need to > > "highlight" entry of data in a Gtk.Entry widget. > > > > Any ideas of how to best achieve that? > > > > My first guess is that there is some means of controlling the style > > of the entry but I am having trouble finding any examples of this) > > > > Any ideas are greatly appreciated > > http://go-mono.com/docs/monodoc.ashx?link=M%3aGtk.Widget.ModifyBg(Gtk.StateType%2cGdk.Color) > (though it might be ModifyBase, can't remember which style/state is > used for the background of the Entry) > > http://ometer.com/gtk-colors.html > > Note also that setting styles will only affect the things that that > widget actually draws, e.g. containers don't draw backgrounds. > I am sorry - I should have been much more specific about my needs. The highlighting by color I already got working, but I was looking for a way to change the text size of the entry so it was larger than normal. I did also manage after several hours of trial and error figure out that it is somewhat cumbersome changing size of the displayed font in the entry. <-- excerpt from my code --> Gtk.Style entstyle = entry_winWoDetail_wo.Style; entstyle.FontDescription.Size = (int) ( entstyle.FontDescription.Size * Pango.Scale.Large ); entry_winWoDetail_wo.ModifyFont(entstyle.FontDescription); entry_winWoDetail_ac.ModifyFont(entstyle.FontDescription); entry_winWoDetail_description.ModifyFont(entstyle.FontDescription); entry_winWoDetail_opened.ModifyFont(entstyle.FontDescription); From brad at langhorst.com Sun Mar 9 11:05:20 2008 From: brad at langhorst.com (Brad Langhorst) Date: Sun, 09 Mar 2008 11:05:20 -0400 Subject: [Gtk-sharp-list] How do I control the text appearance of a Gtk.Entry widget ? In-Reply-To: <20080309091022.71dfc504@io.solnet> References: <54811.87.50.254.86.1204639774.squirrel@webmail.famped.dk> <20080309091022.71dfc504@io.solnet> Message-ID: <1205075120.9832.14.camel@up> On Sun, 2008-03-09 at 09:10 +0100, Jesper K. Pedersen wrote: > I did also manage after several hours of trial and error figure out > that it is somewhat cumbersome changing size of the displayed font in > the entry. > > <-- excerpt from my code --> > Gtk.Style entstyle = entry_winWoDetail_wo.Style; > > entstyle.FontDescription.Size = (int) ( entstyle.FontDescription.Size * > Pango.Scale.Large ); > entry_winWoDetail_wo.ModifyFont(entstyle.FontDescription); > entry_winWoDetail_ac.ModifyFont(entstyle.FontDescription); > entry_winWoDetail_description.ModifyFont(entstyle.FontDescription); > entry_winWoDetail_opened.ModifyFont(entstyle.FontDescription); I understand what you mean by trial and error, I've been experiencing that myself. I'm glad to hear that I'm not the only one who finds Gtk un-intuitive... it is getting better for me now. Keep in mind that you can also use the "usemarkup" feature on some controls for a bit of text formatting, but only for non-dynamic stuff I think (not gtkEntry) I've found that looking at other applications is helpful. Especially I use the demo apps and the f-spot (the photo editor). best wishes! brad From linux at famped.dk Sun Mar 9 18:04:10 2008 From: linux at famped.dk (Jesper K. Pedersen) Date: Sun, 9 Mar 2008 23:04:10 +0100 Subject: [Gtk-sharp-list] How to get Gtk.Calendar to display with monday as first day of week? Message-ID: <20080309230410.17bf8e00@io.solnet> It seems like it is a problem getting the gtk calendar object to display the week with monday as being the first day of the week. Apparently the calendar widget rely on the system's locale and not what you request by the object (like setting the DisplayOptions to include WeekStartMonday - or doing it through Glade if you make your gui that way) Have anyone found a way to circumvent this problem ? (should it be considered a bug in the gtk.calendar to be dependant on the system's locale?) Any hints are greatly appreciated. Thanks Jesper KP From monouser at gmail.com Mon Mar 10 19:08:31 2008 From: monouser at gmail.com (Darwin Reynoso) Date: Mon, 10 Mar 2008 19:08:31 -0400 Subject: [Gtk-sharp-list] Gtk.InputDialog Message-ID: Hi, Does anybody know how to use the inputdialog. this is how i tried it Gtk.InputDialog inputbox = new InputDialog(); but it doesn't work when i try inputbox.run(); Please help From brad at langhorst.com Sat Mar 8 19:35:45 2008 From: brad at langhorst.com (Brad Langhorst) Date: Sat, 08 Mar 2008 19:35:45 -0500 Subject: [Gtk-sharp-list] Gtk.InputDialog In-Reply-To: References: Message-ID: <1205022945.9832.61.camel@up> On Mon, 2008-03-10 at 19:08 -0400, Darwin Reynoso wrote: > Hi, > Does anybody know how to use the inputdialog. > > this is how i tried it > > Gtk.InputDialog inputbox = new InputDialog(); > > but it doesn't work when i try inputbox.run(); I don't think inputdialog is what you think it is... You'll need to make your own dialog if you want to acquire user input. brad From monouser at gmail.com Mon Mar 10 19:42:19 2008 From: monouser at gmail.com (Darwin Reynoso) Date: Mon, 10 Mar 2008 19:42:19 -0400 Subject: [Gtk-sharp-list] Gtk.InputDialog In-Reply-To: <1205022945.9832.61.camel@up> References: <1205022945.9832.61.camel@up> Message-ID: that's what i thought i will have to implement my own. anyway thanks On Sat, Mar 8, 2008 at 8:35 PM, Brad Langhorst wrote: > > On Mon, 2008-03-10 at 19:08 -0400, Darwin Reynoso wrote: > > Hi, > > Does anybody know how to use the inputdialog. > > > > this is how i tried it > > > > Gtk.InputDialog inputbox = new InputDialog(); > > > > but it doesn't work when i try inputbox.run(); > I don't think inputdialog is what you think it is... > You'll need to make your own dialog if you want to acquire user input. > > > brad > > From elmar at haneke.de Tue Mar 11 10:27:09 2008 From: elmar at haneke.de (Elmar Haneke) Date: Tue, 11 Mar 2008 15:27:09 +0100 Subject: [Gtk-sharp-list] Gdk.Display.Beep Message-ID: <47D696BD.7030102@haneke.de> Hi, I cannot see or hear an notification on Beep(). What might be going wrong? Elmar From monouser at gmail.com Thu Mar 13 15:01:25 2008 From: monouser at gmail.com (Darwin Reynoso) Date: Thu, 13 Mar 2008 15:01:25 -0400 Subject: [Gtk-sharp-list] Command line Message-ID: Hi, does anybody knows the current command line to compile a gtk file i try mcs myproj.cs -pkg:gtk-sharp but it doesn't work thanks From cesar.nataren at gmail.com Thu Mar 13 15:04:35 2008 From: cesar.nataren at gmail.com (Cesar Octavio Lopez Nataren) Date: Thu, 13 Mar 2008 12:04:35 -0700 Subject: [Gtk-sharp-list] Command line In-Reply-To: References: Message-ID: <47D97AC3.5070600@gmail.com> Try using -pkg:gtk-sharp-2.0. c?sar Darwin Reynoso wrote: > Hi, > does anybody knows the current command line to compile a gtk file > i try mcs myproj.cs -pkg:gtk-sharp but it doesn't work > > thanks > _______________________________________________ > Gtk-sharp-list maillist - Gtk-sharp-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/gtk-sharp-list > > From gtk-sharp at indicium.za.net Thu Mar 13 15:23:53 2008 From: gtk-sharp at indicium.za.net (Walter Kempf) Date: Thu, 13 Mar 2008 21:23:53 +0200 Subject: [Gtk-sharp-list] How do I control the text appearance of a Gtk.Entry widget ? In-Reply-To: <1205075120.9832.14.camel@up> References: <54811.87.50.254.86.1204639774.squirrel@webmail.famped.dk> <20080309091022.71dfc504@io.solnet> <1205075120.9832.14.camel@up> Message-ID: <47D97F49.4020003@indicium.za.net> Hi, In my experience I find RC files much easier to work with. Not to mention no compilation needed while debugging/getting it just right. Gtk.Rc.Parse("rcfile.gtkrc"); Gtk.Rc.ResetStyles( Gtk.Settings.GetForScreen(Gdk.Screen.Default) ); Now if only I could find a complete reference for RC files. :/ Brad Langhorst wrote: > On Sun, 2008-03-09 at 09:10 +0100, Jesper K. Pedersen wrote: > > >> I did also manage after several hours of trial and error figure out >> that it is somewhat cumbersome changing size of the displayed font in >> the entry. >> >> <-- excerpt from my code --> >> Gtk.Style entstyle = entry_winWoDetail_wo.Style; >> >> entstyle.FontDescription.Size = (int) ( entstyle.FontDescription.Size * >> Pango.Scale.Large ); >> entry_winWoDetail_wo.ModifyFont(entstyle.FontDescription); >> entry_winWoDetail_ac.ModifyFont(entstyle.FontDescription); >> entry_winWoDetail_description.ModifyFont(entstyle.FontDescription); >> entry_winWoDetail_opened.ModifyFont(entstyle.FontDescription); >> > > I understand what you mean by trial and error, I've been experiencing > that myself. I'm glad to hear that I'm not the only one who finds Gtk > un-intuitive... it is getting better for me now. > > Keep in mind that you can also use the "usemarkup" feature on some > controls for a bit of text formatting, but only for non-dynamic stuff I > think (not gtkEntry) > > > I've found that looking at other applications is helpful. Especially I > use the demo apps and the f-spot (the photo editor). > > best wishes! > > brad > > > > > > > _______________________________________________ > Gtk-sharp-list maillist - Gtk-sharp-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/gtk-sharp-list > > > From monouser at gmail.com Thu Mar 13 17:43:15 2008 From: monouser at gmail.com (Darwin Reynoso) Date: Thu, 13 Mar 2008 17:43:15 -0400 Subject: [Gtk-sharp-list] Command line In-Reply-To: <47D97AC3.5070600@gmail.com> References: <47D97AC3.5070600@gmail.com> Message-ID: thanks for your reply i'll give it a try On Thu, Mar 13, 2008 at 3:04 PM, Cesar Octavio Lopez Nataren wrote: > Try using -pkg:gtik-sharp-2.0. > > c?sar > > > > Darwin Reynoso wrote: > > Hi, > > does anybody knows the current command line to compile a gtk file > > i try mcs myproj.cs -pkg:gtk-sharp but it doesn't work > > > > thanks > > _______________________________________________ > > Gtk-sharp-list maillist - Gtk-sharp-list at lists.ximian.com > > http://lists.ximian.com/mailman/listinfo/gtk-sharp-list > > > > > > From linux at famped.dk Sun Mar 16 17:23:53 2008 From: linux at famped.dk (Jesper K. Pedersen) Date: Sun, 16 Mar 2008 22:23:53 +0100 Subject: [Gtk-sharp-list] Switching focus on objects as pressing "tab" key ? Message-ID: <20080316222353.02075b46@io.solnet> In connection with working on a small application where I need to automate entry of data with a barcode reader I need to be able to switch between gtk.entry objects on performing they keycode "return" (activate) event. I had hoped there were either a way to "inject" a keycode in the gtk key event system or a simple way to switch to the next gtk.entry object. Any ideas? Thank's Jesper K. Pedersen From brad at langhorst.com Sun Mar 16 17:26:08 2008 From: brad at langhorst.com (Brad Langhorst) Date: Sun, 16 Mar 2008 17:26:08 -0400 Subject: [Gtk-sharp-list] Switching focus on objects as pressing "tab" key ? In-Reply-To: <20080316222353.02075b46@io.solnet> References: <20080316222353.02075b46@io.solnet> Message-ID: <1205702768.7551.73.camel@up> On Sun, 2008-03-16 at 22:23 +0100, Jesper K. Pedersen wrote: > In connection with working on a small application where I need to > automate entry of data with a barcode reader I need to be able to > switch between gtk.entry objects on performing they keycode > "return" (activate) event. > > I had hoped there were either a way to "inject" a keycode in the gtk > key event system or a simple way to switch to the next gtk.entry object. > maybe you want entry.grabfocus ? brad From linux at famped.dk Mon Mar 17 03:02:38 2008 From: linux at famped.dk (Jesper K. Pedersen) Date: Mon, 17 Mar 2008 08:02:38 +0100 Subject: [Gtk-sharp-list] Switching focus on objects as pressing "tab" key ? In-Reply-To: <1205702768.7551.73.camel@up> References: <20080316222353.02075b46@io.solnet> <1205702768.7551.73.camel@up> Message-ID: <20080317080238.5b85ef27@io.solnet> On Sun, 16 Mar 2008 17:26:08 -0400 Brad Langhorst wrote: > On Sun, 2008-03-16 at 22:23 +0100, Jesper K. Pedersen wrote: > > In connection with working on a small application where I need to > > automate entry of data with a barcode reader I need to be able to > > switch between gtk.entry objects on performing they keycode > > "return" (activate) event. > > > > I had hoped there were either a way to "inject" a keycode in the gtk > > key event system or a simple way to switch to the next gtk.entry > > object. > > > > maybe you want entry.grabfocus ? > The problem with using entry.grabfocus is that you will need to hardcode the next entry that needs the focus. I had hoped there were away to ask gtk to switch to next focus point - in the same manner as you press the tabulate key. but thank's for the input JesperKP From peter at peterjohanson.com Mon Mar 17 11:43:09 2008 From: peter at peterjohanson.com (Peter Johanson) Date: Mon, 17 Mar 2008 08:43:09 -0700 Subject: [Gtk-sharp-list] Switching focus on objects as pressing "tab" key ? In-Reply-To: <20080316222353.02075b46@io.solnet> References: <20080316222353.02075b46@io.solnet> Message-ID: <20080317154308.GP15083@butchest.cubesearch.com> On Sun, Mar 16, 2008 at 10:23:53PM +0100, Jesper K. Pedersen wrote: > > I had hoped there were either a way to "inject" a keycode in the gtk > key event system or a simple way to switch to the next gtk.entry object. Try looking at Gtk.Widget.ChildFocus (DirectionType). See: http://go-mono.com/docs/monodoc.ashx?link=M%3aGtk.Widget.ChildFocus(Gtk.DirectionType) It's usually for actual custom widget implementations, but may work for what you need. -pete From linux at famped.dk Mon Mar 17 14:01:20 2008 From: linux at famped.dk (Jesper K. Pedersen) Date: Mon, 17 Mar 2008 19:01:20 +0100 Subject: [Gtk-sharp-list] Switching focus on objects as pressing "tab" key ? In-Reply-To: <20080317154308.GP15083@butchest.cubesearch.com> References: <20080316222353.02075b46@io.solnet> <20080317154308.GP15083@butchest.cubesearch.com> Message-ID: <20080317190120.4e4b5def@io.solnet> On Mon, 17 Mar 2008 08:43:09 -0700 Peter Johanson wrote: > On Sun, Mar 16, 2008 at 10:23:53PM +0100, Jesper K. Pedersen wrote: > > > > I had hoped there were either a way to "inject" a keycode in the gtk > > key event system or a simple way to switch to the next gtk.entry > > object. > > Try looking at Gtk.Widget.ChildFocus (DirectionType). See: > > http://go-mono.com/docs/monodoc.ashx?link=M%3aGtk.Widget.ChildFocus(Gtk.DirectionType) > > It's usually for actual custom widget implementations, but may work > for what you need. > And that works like a charm - basically setting all the entry's activated eventhandler to a single function that does the ChildFocus(DirectionType.TabForward) method. Thank you for the assistance. Best regards Jesper KP From monouser at gmail.com Thu Mar 20 10:02:09 2008 From: monouser at gmail.com (Darwin Reynoso) Date: Thu, 20 Mar 2008 10:02:09 -0400 Subject: [Gtk-sharp-list] Menu Item Message-ID: Hi, can someone give a hint on how to implement the followings Edit |__Cut |__Copy |__Paste |__Delete |__Find |__Find Next From bratsche at gnome.org Thu Mar 20 20:53:40 2008 From: bratsche at gnome.org (Cody Russell) Date: Thu, 20 Mar 2008 19:53:40 -0500 Subject: [Gtk-sharp-list] Menu Item In-Reply-To: References: Message-ID: <1206060820.926.16.camel@prometheus> Try looking in the samples that are provided with the gtk-sharp source. On Thu, 2008-03-20 at 10:02 -0400, Darwin Reynoso wrote: > > Hi, > can someone give a hint on how to implement the followings > > Edit > |__Cut > |__Copy > |__Paste > |__Delete > |__Find > |__Find Next From monouser at gmail.com Fri Mar 21 21:49:12 2008 From: monouser at gmail.com (Darwin Reynoso) Date: Fri, 21 Mar 2008 18:49:12 -0700 Subject: [Gtk-sharp-list] Menu Item In-Reply-To: <1206060820.926.16.camel@prometheus> References: <1206060820.926.16.camel@prometheus> Message-ID: thanks On Thu, Mar 20, 2008 at 5:53 PM, Cody Russell wrote: > Try looking in the samples that are provided with the gtk-sharp source. > > > > On Thu, 2008-03-20 at 10:02 -0400, Darwin Reynoso wrote: > > > > Hi, > > can someone give a hint on how to implement the followings > > > > Edit > > |__Cut > > |__Copy > > |__Paste > > |__Delete > > |__Find > > |__Find Next > > From jestin.stoffel at gmail.com Sat Mar 22 23:02:40 2008 From: jestin.stoffel at gmail.com (Jestin Stoffel) Date: Sat, 22 Mar 2008 22:02:40 -0500 Subject: [Gtk-sharp-list] printing multiple pages with Gtk# Message-ID: <1206241361.7160.162.camel@studio> About a month ago there was some discussion about printing in gtk-sharp, and I have recently had a need to give it a try. One of my problems is that I want to print the content of a widget that will most likely have multiple pages. To set the number of pages, I need to reference my Gtk.PrintOperation object from my BeginPrintHandler (as the Gtk documentation suggests). The problem is, that my object is out of scope. Here's an example: protected virtual void OnPrintButtonClicked (object sender, System.EventArgs e) { Gtk.PrintOperation Op = new PrintOperation(); Op.Unit = Gtk.Unit.Pixel; Op.BeginPrint += new BeginPrintHandler(OnBeginPrint); Op.DrawPage += new DrawPageHandler(OnDrawPage); Res = Op.Run(Gtk.PrintOperationAction.PrintDialog, this); } public void OnBeginPrint(object sender, Gtk.BeginPrintArgs Args) { int nSize = SomeSizeCalculationFunction(); int nPages = nSize / (int)Args.Context.Height; if(nSize % Args.Context.Height > 0) { nPages++; } Op.NPages = nPages; // OUT OF SCOPE } This can be easily solved by making Op global, but isn't there a way to include Op in the Gtk.BeginPrintArgs object? Right now the only thing it contains is the PrintContext, which is also needed, but is only one factor in the page count calculation. This isn't a problem in C, because the parameters passed to a BeginPrint signal handler include the PrintOperation pointer. I just thought that maybe the C# handler should match. --Jestin From mkestner at gmail.com Sat Mar 22 23:35:02 2008 From: mkestner at gmail.com (Mike Kestner) Date: Sat, 22 Mar 2008 22:35:02 -0500 Subject: [Gtk-sharp-list] printing multiple pages with Gtk# In-Reply-To: <1206241361.7160.162.camel@studio> References: <1206241361.7160.162.camel@studio> Message-ID: <1206243303.22193.30.camel@t61p.site> On Sat, 2008-03-22 at 22:02 -0500, Jestin Stoffel wrote: > public void OnBeginPrint(object sender, Gtk.BeginPrintArgs Args) > { > int nSize = SomeSizeCalculationFunction(); > > int nPages = nSize / (int)Args.Context.Height; > > if(nSize % Args.Context.Height > 0) > { > nPages++; > } ----> PrintOperation Op = sender as PrintOperation; > > Op.NPages = nPages; // OUT OF SCOPE > } -- Mike Kestner From elmar at haneke.de Tue Mar 25 11:29:56 2008 From: elmar at haneke.de (Elmar Haneke) Date: Tue, 25 Mar 2008 16:29:56 +0100 Subject: [Gtk-sharp-list] gtk-sharp 2.12 windows binary Message-ID: <47E91A74.50300@haneke.de> Where can I get an Windows-Binary of gtk-sharp v2.12? Elmar From david_cantin at videotron.ca Wed Mar 26 00:06:24 2008 From: david_cantin at videotron.ca (David Cantin) Date: Wed, 26 Mar 2008 00:06:24 -0400 Subject: [Gtk-sharp-list] Problem with drag and drop in a reorderable TreeView Message-ID: <1206504384.1530.24.camel@ubuntu-tower> Hi I want a TreeView to be always ordered and also allow the user to move rows from a "folder" to an other. The problem is : - If I set a TreeSortable.DefaultSortFunc, it seem that the TreeView is not accepting drop's anymore. Are TreeSortable.DefaultSortFunc and TreeView.Reorderable attribute incompatible ? I have attached an example that show what I'm trying to do. ### use case 1 with the two lines commented (see attached the file): 1) With the mouse, drag and drop the row named "Item 4" directly (not just before or just after) on "Group 2" Expected results : - The row "Item 4" is now under "Group 2" and correctly ordered between "Item 1" and "Item 5" Actual result : - The row "Item 4" is now the top most row in "Group 2" ### use case with the two lines uncommented (see attached the file): 1) With the mouse, drag and drop the row named "Item 4" directly (not just before or just after) on "Group 2" Expected results : - The row "Item 4" is now under "Group 2" and correctly ordered between "Item 1" and "Item 5" Actual result : - The drop seem to be refused the dragged row stay at the original position in "Group 1" David -------------- next part -------------- A non-text attachment was scrubbed... Name: SampleTreeView.cs Type: text/x-csharp Size: 1377 bytes Desc: not available Url : http://lists.ximian.com/pipermail/gtk-sharp-list/attachments/20080326/8351b249/attachment.bin From david_cantin at videotron.ca Wed Mar 26 09:34:35 2008 From: david_cantin at videotron.ca (David Cantin) Date: Wed, 26 Mar 2008 09:34:35 -0400 Subject: [Gtk-sharp-list] Problem with drag and drop in a reorderable TreeView Message-ID: <1206538475.1530.27.camel@ubuntu-tower> Hi (this is a re-post, the first one didn't reach the list..) I want a TreeView to be always ordered and also allow the user to move rows from a "folder" to an other. The problem is : - If I set a TreeSortable.DefaultSortFunc, it seem that the TreeView is not accepting drop's anymore. Are TreeSortable.DefaultSortFunc and TreeView.Reorderable attribute incompatible ? I have attached an example that show what I'm trying to do. ### use case 1 with the two lines commented (see attached the file): 1) With the mouse, drag and drop the row named "Item 4" directly (not just before or just after) on "Group 2" Expected results : - The row "Item 4" is now under "Group 2" and correctly ordered between "Item 1" and "Item 5" Actual result : - The row "Item 4" is now the top most row in "Group 2" ### use case with the two lines uncommented (see attached the file): 1) With the mouse, drag and drop the row named "Item 4" directly (not just before or just after) on "Group 2" Expected results : - The row "Item 4" is now under "Group 2" and correctly ordered between "Item 1" and "Item 5" Actual result : - The drop seem to be refused the dragged row stay at the original position in "Group 1" David -------------- next part -------------- A non-text attachment was scrubbed... Name: SampleTreeView.cs Type: text/x-csharp Size: 1377 bytes Desc: not available Url : http://lists.ximian.com/pipermail/gtk-sharp-list/attachments/20080326/d59fbc78/attachment.bin From adam at morrison-ind.com Mon Mar 24 16:34:20 2008 From: adam at morrison-ind.com (Adam Tauno Williams) Date: Mon, 24 Mar 2008 16:34:20 -0400 Subject: [Gtk-sharp-list] Forcing a resize in nested widgets Message-ID: <1206390860.4910.41.camel@WM_ADAM1.morrison.iserv.net> I have a widget (TaskAnnotationForm : Gtk.Bin) designed in Stetic in a MonoDevelop project. Another widget (TaskHistoryForm : Gtk.Bin) basically contains a ScrolledWindow whose Viewport contains a Gtk.VBox of TaskAnnotationForm widgets. Basically it is given a task objects and displays all the annotations made upon the task, there can be many annotations . That works, but I have one problem. The comment field (Gtk.TextView) of the TaskAnnotationForm widgets does not expand. It displays one line of text, or even a partial line of text, and the scroll area does not expand UNTIL you click anywhere in the window - then the widgets size themselves correctly. Once you click inside the window everything is sized correctly. I've set "comment.ResizeMode = ResizeMode.Immediate;" in TaskAnnotationForm and I invoke "viewport.ResizeChildren();" after adding all TaskAnnotationForm to the viewport's VBox. But I can't get the widgets to resize. Method to fill the TaskHistoryForm looks like - public void Fill(Entity _entity) { VBox history; Whitemice.ZOGI.Task task; if (_entity is Whitemice.ZOGI.Task) task = (_entity as Whitemice.ZOGI.Task); else throw new Exception("Inappropriate entity provided to form"); history = new VBox(); history.Spacing = 2; task.Notations.Sort(); foreach(TaskNotation a in task.Notations) history.PackStart(new TaskAnnotationForm(a), true, true, 2); if (!(viewport.Child == null)) viewport.Remove(viewport.Child); viewport.Child = history; viewport.ShowAll(); viewport.ResizeChildren(); } The constructor of TaskAnnotationForm is - public TaskAnnotationForm(TaskNotation _annotation) { this.Build(); id.Text = "Annotation#" + _annotation.ObjectId.ToString(); action.Text = _annotation.Action.ToString(); actor.Text = _annotation.ActorName; date.Text = _annotation.Date.ToString("yyyy-MM-dd HH:mm"); comment.Buffer.Text = _annotation.Comment; comment.ResizeMode = ResizeMode.Immediate; } From mjamon at ntsp.nec.co.jp Wed Mar 26 10:29:10 2008 From: mjamon at ntsp.nec.co.jp (Marc Glenn) Date: Wed, 26 Mar 2008 22:29:10 +0800 Subject: [Gtk-sharp-list] TreeView.ActivateRow() does not work Message-ID: <47EA5DB6.5040403@mnl.ntsp.nec.co.jp> Hello guys, I am trying to simulate a double-click on row of a TreeView object. I used the TreeView.ActivateRow() function but it does not do anything. I tried using the function TreeView.SetCursor() and it works fine. The parameters of the two functions are almost identical and so it proves that the parameters I used contains valid data. I don't understand why ActivateRow() does not work. Attached is my code. I am using mono-1.2.5.1 gtk-sharp-2.10 on windows Need help. Thanks, Marc Glenn -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: TreeViewExample.cs Url: http://lists.ximian.com/pipermail/gtk-sharp-list/attachments/20080326/b99b75ba/attachment.pl From mjamon at ntsp.nec.co.jp Wed Mar 26 21:57:38 2008 From: mjamon at ntsp.nec.co.jp (Marc Glenn) Date: Thu, 27 Mar 2008 09:57:38 +0800 Subject: [Gtk-sharp-list] TreeView.ActivateRow() does not work Message-ID: <47EAFF12.8090701@mnl.ntsp.nec.co.jp> Hello guys, I am trying to simulate a double-click on row of a TreeView object. I used the TreeView.ActivateRow() function but it does not do anything. I tried using the function TreeView.SetCursor() and it works fine. The parameters of the two functions are almost identical and so it proves that the parameters I used contains valid data. I don't understand why ActivateRow() does not work. Attached is my code. I am using mono-1.2.5.1 gtk-sharp-2.10 on windows Need help. Thanks, Marc Glenn -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: TreeViewExample.cs Url: http://lists.ximian.com/pipermail/gtk-sharp-list/attachments/20080327/0b98a15e/attachment-0001.pl From monouser at gmail.com Thu Mar 27 08:28:44 2008 From: monouser at gmail.com (Darwin Reynoso) Date: Thu, 27 Mar 2008 08:28:44 -0400 Subject: [Gtk-sharp-list] Toolbar Message-ID: Hi, does anybody knows how to add a combobox to a toolbox? thanks From christian_hoff at gmx.net Thu Mar 27 09:29:27 2008 From: christian_hoff at gmx.net (Christian Hoff) Date: Thu, 27 Mar 2008 14:29:27 +0100 Subject: [Gtk-sharp-list] Bugs in TreeModelFilter.custom and TreeModelAdapter.custom Message-ID: <47EBA137.9060106@gmx.net> Hi, I have figured out two related bugs in the TreeModelFilter and TreeModelAdapter classes of Gtk#. Since the SetValue(iter, column, value) methods are not members of the underlying Gtk+ TreeModel class, they have been added in the Gtk# implementation(in TreeModel.custom). This makes sense because the two main implementors of this interface - TreeStore and ListStore - both provide these methods. But the TreeModelFilter(which also extends these interfaces) does NOT implement these SetValue methods. That's why Gtk# has to call the SetValue method of the child model whenever this method is called in the TreeModelFilter. Currently Gtk# assumes that there is a SetValue method for the TreeModelFilter(something like tree_model_filter_set_value) and calls it everytime: public void SetValue (Gtk.TreeIter iter, int column, object value) { SetValue (iter, column, new GLib.Value (value)); } But this function is calling itself since a GLib.Value is also an object. This finally leads to a stack overflow when calling this method from a Gtk.TreeModelFilter. I have fixed this error via calling the SetValue method of the child model: this.Model.SetValue(this.ConvertIterToChildIter(iter), column, value); There is just one case when this solution won't work: When using a ModifyFunc that replaces the original columns in the child model(then the column number in the filter cannot be converted into an "original" column number in the child model). But as I already reported(maybe a bit angrily) the ModifyFunc won't work anyway with Gtk#(or at least it has not worked half a year ago). Maybe a check should be implemented whether the user has set up a ModifyFunc on the filter and then, if so, throw an exception. The second similar bug affects the TreeModelAdapter. Calling the SetValue methods will also result in a stack overflow due to the same reason. But this time the adapter has to pass the call to SetValue method of the implementor class. I implemented this functionality using reflection and the Invoke() method of the MethodInfo class. A better or more faster solution is in my opinion not possible. I have attached two patches for the mentioned problems, both are tested and work for me; I would be great if you commit them or post me a little feedback. Christian Hoff -------------- next part -------------- A non-text attachment was scrubbed... Name: TreeModelAdapter.custom.patch Type: text/x-diff Size: 3602 bytes Desc: not available Url : http://lists.ximian.com/pipermail/gtk-sharp-list/attachments/20080327/5dbc5274/attachment.bin -------------- next part -------------- A non-text attachment was scrubbed... Name: TreeModelFilter.custom.patch Type: text/x-diff Size: 998 bytes Desc: not available Url : http://lists.ximian.com/pipermail/gtk-sharp-list/attachments/20080327/5dbc5274/attachment-0001.bin From mlgs at arsis.net Thu Mar 27 23:26:35 2008 From: mlgs at arsis.net (mlgs at arsis.net) Date: Fri, 28 Mar 2008 04:26:35 +0100 (CET) Subject: [Gtk-sharp-list] Gtk# Databindings Message-ID: <37340.193.77.149.154.1206674795.squirrel@user.arsis.net> Gtk.DataBindings v0.98.4.1 are out, suggested version is as always svn. Now site has somehow quick tutorials on specifics and as most important... there are screencasts (7 of them) how to work with Gtk.DataBindings and System.Data.Bindings which were separated out of Gtk.DataBindings somewhere along the way. System.Data.Bindings are pluggable data-gui or data-anything live transfer engine and I plan to use them forward in next project which will probably be reporting engine. Site is http://gtk-databind.sourceforge.net And one more thing, for everyone interested in speeding up creation of database bindings (which have come quite long way), there is need for special CellRenderer classes. So, if you think you need it, you have time and knowledge, this is a way help. I'm always on IRC #mono and #monodevelop as mm, so feel free to contact me there, but e-mail I don't read (but if you think once every 5 months is fast you're welcome to contact me over e-mail:) mm From christian_hoff at gmx.net Fri Mar 28 04:39:40 2008 From: christian_hoff at gmx.net (Christian Hoff) Date: Fri, 28 Mar 2008 09:39:40 +0100 Subject: [Gtk-sharp-list] Example applications for bugs Message-ID: <47ECAECC.1020801@gmx.net> Hi, I have now written two small example applications for the bugs. Both will result in a stack overflow when executing them. Hope that helps fixing the problems... I also included my patchfiles again. However, I have come to the conclusion that the better way of fixing the bug with the TreeModelAdapter would be modifying GAPI so that it does not only create a wrapper/adapter for the methods of the original GInterface but also for the ones that are manually added by the .custom files. But since I didn't ever have a look at GAPI and assume it is quiet complex, one of the developers that are more familiar with the codegenerator may do that. But these bugs really need to be fixed; I have provided sample apps and bug fixes, that is all I can do for now. And when Gtk# 2.12 is released - and everyone wants write editable custom TreeModels - it will be too late... I really don't want to make you work instead of mine but as I am not really familiar with the Gtk# code all I can do is to report the bugs I found and maybe provide a rudimentary fix for them. Sorry if the tone of the mail was like "FIX this bug! And the sooner, the best!!!". I understand that you are all(?) hobby developers and work on this implementation for no charge. I really admire what you have done so far :-) . So if you say you don't like some aspects of my bugfix I will try to overwrite them and maybe even have a look at GAPI. But I am not the one who decides what is committed and what isn't so I need your response... Christian Hoff -------------- next part -------------- A non-text attachment was scrubbed... Name: bug-demo-apps.tar.gz Type: application/gzip Size: 14597 bytes Desc: not available Url : http://lists.ximian.com/pipermail/gtk-sharp-list/attachments/20080328/d1d4c725/attachment-0001.bin From esqueleto at tusofona.com Fri Mar 28 13:24:52 2008 From: esqueleto at tusofona.com (Paulo Aboim Pinto) Date: Fri, 28 Mar 2008 17:24:52 +0000 Subject: [Gtk-sharp-list] Problem installing 2.10.4 version of GTK-SHARP Message-ID: <10b6506f0803281024u49fd1aamb2f3744615b9e917@mail.gmail.com> hello people I'm trying to install the 2.10.4 version of GTK-Sharp and I'm getting this errors make[3]: Entering directory `/home/esqueleto/myTrash/MonoInstall/Mono 1.9 /gtk-sharp-2.10.4/gdk' /usr/bin/mcs -define:GTK_SHARP_2_6 -define:GTK_SHARP_2_8 -define:GTK_SHARP_2_10 -nowarn:0169,0612,0618 -unsafe -out:gdk-sharp.dll-target:library /r:../glib/glib- sharp.dll /r:../pango/pango-sharp.dll-r:/usr/lib/pkgconfig/../../lib/mono/1.0/Mono.Cairo.dll generated/*.cs ./EventButton.cs ./EventClient.cs ./EventConfigure.cs ./EventCrossing.cs ./Event.cs ./EventDND.cs ./EventExpose.cs ./EventFocus.cs ./EventGrabBroken.cs ./EventKey.cs ./EventMotion.cs ./EventProperty.cs ./EventProximity.cs ./EventScroll.cs ./EventSelection.cs ./EventSetting.cs ./EventVisibility.cs ./EventWindowState.cs ./Key.cs ./Size.cs ./TextProperty.cs AssemblyInfo.cs generated/PangoHelper.cs(17,76): error CS0039: Cannot convert type `GLib.Object' to `Pango.Context' via a built-in conversion generated/PangoHelper.cs(52,76): error CS0039: Cannot convert type `GLib.Object' to `Pango.Context' via a built-in conversion generated/PangoRenderer.cs(14,61): error CS1502: The best overloaded method match for `Pango.Renderer.Renderer(GLib.GType)' has some invalid arguments /home/esqueleto/myTrash/MonoInstall/Mono 1.9/gtk-sharp-2.10.4/pango/pango- sharp.dll (Location of the symbol related to previous error) generated/PangoRenderer.cs(14,61): error CS1503: Argument 1: Cannot convert type `GLib.GType' to `GLib.GType' generated/PangoRenderer.cs(14,61): (equally named types possibly from different assemblies in previous error) /home/esqueleto/myTrash/MonoInstall/Mono 1.9/gtk-sharp-2.10.4/glib/glib- sharp.dll (Location of the symbol related to previous error) /usr/lib/mono/gac/glib-sharp/2.12.0.0__35e10195dab3c99f/glib-sharp.dll(Location of the symbol related to previous error) generated/PangoRenderer.cs(29,33): error CS1502: The best overloaded method match for `GLib.Object.CreateNativeObject(string[], GLib.Value[])' has some invalid arguments /usr/lib/mono/gac/glib-sharp/2.12.0.0__35e10195dab3c99f/glib-sharp.dll(Location of the symbol related to previous error) generated/PangoRenderer.cs(29,33): error CS1503: Argument 2: Cannot convert type `GLib.Value[]' to `GLib.Value[]' generated/PangoRenderer.cs(29,33): (equally named types possibly from different assemblies in previous error) /home/esqueleto/myTrash/MonoInstall/Mono 1.9/gtk-sharp-2.10.4/glib/glib- sharp.dll (Location of the symbol related to previous error) /usr/lib/mono/gac/glib-sharp/2.12.0.0__35e10195dab3c99f/glib-sharp.dll(Location of the symbol related to previous error) Compilation failed: 6 error(s), 0 warnings make[3]: *** [gdk-sharp.dll] Error 1 make[3]: Leaving directory `/home/esqueleto/myTrash/MonoInstall/Mono 1.9 /gtk-sharp-2.10.4/gdk' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/home/esqueleto/myTrash/MonoInstall/Mono 1.9 /gtk-sharp-2.10.4/gdk' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/esqueleto/myTrash/MonoInstall/Mono 1.9 /gtk-sharp-2.10.4' make: *** [all] Error 2 I've found this on the Mono WebSite (http://www.mono-project.com/GtkSharp) saying that this error is when we are trying to install a older version. The problem is when I'm trying to install Gnome-Sharp 2.16.1 I get this: checking for GTKSHARP... Requested 'gtk-sharp-2.0 >= 2.10.3' but version of Gtk is 2.8.5 configure: error: Package requirements (gtk-sharp-2.0 >= 2.10.3) were not met: Can anyone can point some light? Regards Paulo Aboim Pinto Odivelas - Portugal -- Have income spending 5 minutes a day Click here: http://bux.to/?r=esqueleto -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/gtk-sharp-list/attachments/20080328/39a634fc/attachment.html From dcraven at gmail.com Fri Mar 28 18:55:23 2008 From: dcraven at gmail.com (Dennis Craven) Date: Fri, 28 Mar 2008 18:55:23 -0400 Subject: [Gtk-sharp-list] Gtk.ComboBoxEntry issues with setting text... Message-ID: <378f6a20803281555l2f39828eta67d24fd35ae8b3@mail.gmail.com> Hi list, I'm trying to use a ComboBoxEntry to show a list of strings. The model is of type ListStore. Once realized, the associated menu of available text selections drops down as expected, but when one is chosen, the given text does not appear in the ComboBoxEntry.Entry and the following assertion appears in the console: Gtk-CRITICAL **: gtk_entry_set_text: assertion `text != NULL' failed The relevant (I think) code goes like this: // projectStore is a valid ListStore, containing custom objects // of type Project. These have a Name property that is of type string. ListStore projectStore = db.GetListStore(); projectComboBoxEntry = new ComboBoxEntry (); CellRendererText projectCellRenderer = new CellRendererText (); projectComboBoxEntry.PackStart (projectCellRenderer, true); projectComboBoxEntry.SetCellDataFunc (projectCellRenderer, new Gtk.CellLayoutDataFunc (ProjectComboBoxEntryDataFunc)); projectComboBoxEntry.Model = projectStore; projectComboBoxEntry.Show (); // This is the CellDataFunc void ProjectComboBoxEntryDataFunc (CellLayout layout, CellRenderer renderer, TreeModel model, TreeIter iter) { Gtk.CellRendererText crt = renderer as Gtk.CellRendererText; Project project = model.GetValue (iter, 0) as Project; crt.Text = string.Format ("{0}", project.Name); } I don't see what the problem with this code could be. If I use a ComboBox with identical code, it works fine. Any pointers will be appreciated. ~djc From peter at peterjohanson.com Fri Mar 28 19:05:19 2008 From: peter at peterjohanson.com (Peter Johanson) Date: Fri, 28 Mar 2008 16:05:19 -0700 Subject: [Gtk-sharp-list] Gtk.ComboBoxEntry issues with setting text... In-Reply-To: <378f6a20803281555l2f39828eta67d24fd35ae8b3@mail.gmail.com> References: <378f6a20803281555l2f39828eta67d24fd35ae8b3@mail.gmail.com> Message-ID: <20080328230519.GG27839@butchest.cubesearch.com> On Fri, Mar 28, 2008 at 06:55:23PM -0400, Dennis Craven wrote: > Hi list, > > I'm trying to use a ComboBoxEntry to show a list of strings. The model > is of type ListStore. Once realized, the associated menu of available > text > selections drops down as expected, but when one is chosen, the given > text does not appear in the ComboBoxEntry.Entry and the following > assertion appears in the console: > > Gtk-CRITICAL **: gtk_entry_set_text: assertion `text != NULL' failed See here: http://library.gnome.org/devel/gtk/stable/GtkComboBoxEntry.html#id3858868 In particular, when using a Gtk.ComboBoxEntry, you must *always* have a text column, and have the TextColumn property set to the column number for the text column it should use. -pete From mlgs at arsis.net Sat Mar 29 13:07:05 2008 From: mlgs at arsis.net (mm) Date: Sat, 29 Mar 2008 18:07:05 +0100 Subject: [Gtk-sharp-list] Gtk# DataBindings 0.98.4.2 Message-ID: <1206810425.11252.6.camel@portabl.egocentrix.net> Gtk.DataBindings 0.98.4.2 released API break. Since it was noted that use of "_" character is not suggested in .Net, I removed them all from every part of this package. Another changes (since API was already broken, there were few things I wanted to do for a long time, but didn't want to break API). Moved CachedProperty into System.Data.Bindings.Cached Moved all collection classes into System.Data.Bindings.Collections One very notable change is renaming Notificator.Notify_ObjectChanged into Notificator.ObjectChangedNotification and Notificator.Notify_ReloadObject into Notificator.ReloadObjectNotification There are still few more outstanding rearrangements left, but from this moment on none will pose any change needed for use of Gtk.DataBindings in your application. But if anyone is subclassing Adaptor and ControlAdaptor for some specific type of client, there are few simplifying changes still on the table which might slightly break your API in about 5 lines per subclass. I will be changing screencasts in future based on the feedback I got so far. Like I type too slow (I usually type faster) when I tryed not to be too fast, show result first or at least as separate screencast so one knows what he is looking at, etc. as always you can contact me on irc #mono and #monodevelop if you have any question, suggestion. Bugs not (there is a tracker on sourceforge for that) mm From mkestner at gmail.com Mon Mar 31 15:05:08 2008 From: mkestner at gmail.com (Mike Kestner) Date: Mon, 31 Mar 2008 14:05:08 -0500 Subject: [Gtk-sharp-list] Gnome.Print Message-ID: <1206990308.11932.152.camel@t61p.site> Those who follow desktop-devel-list have probably seen that GNOME is currently discussion the removal of libgnomeprint* from the desktop release. This has consequences to gnome-sharp. I'd like to start a discussion about possible methods of going forward in the light of this change. We currently have a dependency on libgnomeprint* for gnome-sharp.dll, since it exposes Gnome printing API. I can see a few possible approaches, all of which stink in one way or another. ;-) 1) We remove the gnomeprint bindings from gnome-sharp.dll, breaking stability for the assembly, but allowing it to build with its GNOME platform library dependencies still in place. This would require dropping of existing policy assemblies and starting over fresh with the upcoming release of gnome-sharp.dll, version 2.24.0.0. The existing Gnome.Print* bindings would be spun out into a new gnome-print-sharp.dll in a standalone module with its own .pc file. While this would break runtime compat, the only change required to get apps building again would probably be the addition of a gnome-print-sharp-2.0 entry to configure.in files or -pkg: switches, and of course, the installation of the new module. This is the "bite the bullet" solution. 2) Maintain stability by leaving the gnomeprint* dependency in gnome-sharp.dll. I don't think this choice will be appreciated by the GNOME folks, and would put pressure on Tomboy, because it depends on gnome-sharp.dll. Any gnome build which included Tomboy would therefore still require libgnomeprint* and I doubt the gnome folks will be pleased with us. This is probably a non-starter, but I mention it for completeness. This is the "bury our heads in the sand" solution. 3) Maintain stability by importing libgnomeprint* into gnome-sharp and producing "glue" libraries from the sources. This could be a pain in the rear to pull off, especially if name mangling is required to avoid potential type clashes from ld. We also probably pick up an ongoing maintenance headache for bugs in the underlying C code, and we all know us C# hackers aren't excited about hacking C code. ;-) This is the "Mike you screwed up so you should be flogged, then drawn and quartered" solution. I see option 1 and 3 as being the most likely approaches. Gnome.Print's inclusion in gnome-sharp.dll was a mistake in the first place, and I'm willing to go through the pain of option 3 in order to maintain the compatibility that we've advertised. On the other hand, I'd rather not take on that burden if the users are willing to accept option 1. I think option 1 is probably the "cleanest" solution of the 3 within the context of the underlying GNOME API guarantees, though the stability break to gnome-sharp.dll is embarrassing to me as a maintainer. I would appreciate any feedback. We have a little time to make a decision, since we are early in this GNOME cycle. But based on the feedback to my posts on d-d-l, I think we're most likely going to have to fix this lurking dependency bug in this upcoming release. -- Mike Kestner From bratsche at gnome.org Mon Mar 31 15:24:28 2008 From: bratsche at gnome.org (Cody Russell) Date: Mon, 31 Mar 2008 14:24:28 -0500 Subject: [Gtk-sharp-list] Gnome.Print In-Reply-To: <1206990308.11932.152.camel@t61p.site> References: <1206990308.11932.152.camel@t61p.site> Message-ID: <1206991468.28543.19.camel@prometheus> On Mon, 2008-03-31 at 14:05 -0500, Mike Kestner wrote: > > 2) Maintain stability by leaving the gnomeprint* dependency in > gnome-sharp.dll. I don't think this choice will be appreciated by the > GNOME folks, and would put pressure on Tomboy, because it depends on > gnome-sharp.dll. Any gnome build which included Tomboy would > therefore > still require libgnomeprint* and I doubt the gnome folks will be > pleased > with us. This is probably a non-starter, but I mention it for > completeness. This is the "bury our heads in the sand" solution. It seems like it would be trivial to switch Tomboy from Gnome printing to Gtk printing, right? Are there a lot of other apps out there depending on Gnome.Print other than Tomboy? If option #1 is taken, and you break stability, that might also be seen as an opportunity to make other changes that otherwise couldn't be made. (No, I don't have specific suggestions, just pointing out the obvious food for thought.) From slomo at circular-chaos.org Mon Mar 31 15:25:42 2008 From: slomo at circular-chaos.org (Sebastian =?ISO-8859-1?Q?Dr=F6ge?=) Date: Mon, 31 Mar 2008 21:25:42 +0200 Subject: [Gtk-sharp-list] Gnome.Print In-Reply-To: <1206990308.11932.152.camel@t61p.site> References: <1206990308.11932.152.camel@t61p.site> Message-ID: <1206991542.9579.102.camel@asgard.lan> On Mo, 2008-03-31 at 14:05 -0500, Mike Kestner wrote: > Those who follow desktop-devel-list have probably seen that GNOME is > currently discussion the removal of libgnomeprint* from the desktop > release. This has consequences to gnome-sharp. > > I'd like to start a discussion about possible methods of going forward > in the light of this change. We currently have a dependency on > libgnomeprint* for gnome-sharp.dll, since it exposes Gnome printing API. > I can see a few possible approaches, all of which stink in one way or > another. ;-) > > 1) We remove the gnomeprint bindings from gnome-sharp.dll, breaking > stability for the assembly, but allowing it to build with its GNOME > platform library dependencies still in place. This would require > dropping of existing policy assemblies and starting over fresh with the > upcoming release of gnome-sharp.dll, version 2.24.0.0. > > The existing Gnome.Print* bindings would be spun out into a new > gnome-print-sharp.dll in a standalone module with its own .pc file. > While this would break runtime compat, the only change required to get > apps building again would probably be the addition of a > gnome-print-sharp-2.0 entry to configure.in files or -pkg: switches, and > of course, the installation of the new module. This is the "bite the > bullet" solution. > > 2) Maintain stability by leaving the gnomeprint* dependency in > gnome-sharp.dll. I don't think this choice will be appreciated by the > GNOME folks, and would put pressure on Tomboy, because it depends on > gnome-sharp.dll. Any gnome build which included Tomboy would therefore > still require libgnomeprint* and I doubt the gnome folks will be pleased > with us. This is probably a non-starter, but I mention it for > completeness. This is the "bury our heads in the sand" solution. > > 3) Maintain stability by importing libgnomeprint* into gnome-sharp and > producing "glue" libraries from the sources. This could be a pain in > the rear to pull off, especially if name mangling is required to avoid > potential type clashes from ld. We also probably pick up an ongoing > maintenance headache for bugs in the underlying C code, and we all know > us C# hackers aren't excited about hacking C code. ;-) This is the > "Mike you screwed up so you should be flogged, then drawn and quartered" > solution. > > I see option 1 and 3 as being the most likely approaches. Gnome.Print's > inclusion in gnome-sharp.dll was a mistake in the first place, and I'm > willing to go through the pain of option 3 in order to maintain the > compatibility that we've advertised. On the other hand, I'd rather not > take on that burden if the users are willing to accept option 1. I > think option 1 is probably the "cleanest" solution of the 3 within the > context of the underlying GNOME API guarantees, though the stability > break to gnome-sharp.dll is embarrassing to me as a maintainer. > > I would appreciate any feedback. We have a little time to make a > decision, since we are early in this GNOME cycle. But based on the > feedback to my posts on d-d-l, I think we're most likely going to have > to fix this lurking dependency bug in this upcoming release. I'd go with 1) and provide gnome-print bindings in gnome-desktop-sharp until every user (i.e. tomboy and...?) finally have ported and then remove it from gnome-desktop-sharp too. Also, while you're breaking API anyway please remove all other desktop components from gnome-sharp if there are still any and move them to gnome-desktop-sharp :) Breaking API is not nice but in this case makes sense IMHO... and afterwards we can guarantuee API stability until 3.0 next decade or next century :) -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: Dies ist ein digital signierter Nachrichtenteil Url : http://lists.ximian.com/pipermail/gtk-sharp-list/attachments/20080331/a48bd94b/attachment-0001.bin From rothflorian at gmx.de Mon Mar 31 15:42:26 2008 From: rothflorian at gmx.de (Florian Roth) Date: Mon, 31 Mar 2008 21:42:26 +0200 Subject: [Gtk-sharp-list] Start editing with one click in a TreeView Message-ID: <20080331194226.113670@gmx.net> Hi, I'm currently working with a TreeView which has three colums. The last column is editable and uses a CellRendererText therefor. Now I want to make this cell column to start editing as soon as i click on it. I already tried severals things. First a tried to use a ButtonPress event an then somehow toggle the editing. This didn't work because no ButtonPress events were recieved. Then I tried it with the OnCursorChanged method of the tree view. This event works and I even can check which column the user clicked on with the GetCursor(out path, out column) method. But I have absolutly no idea how to start the editing now. I played around with the Activate method of the renderer, but this didn't work. I hope someone here can help me. Regards, Florian Roth -- GMX startet ShortView.de. Hier findest Du Leute mit Deinen Interessen! Jetzt dabei sein: http://www.shortview.de/?mc=sv_ext_mf at gmx From mkestner at gmail.com Mon Mar 31 16:54:48 2008 From: mkestner at gmail.com (Mike Kestner) Date: Mon, 31 Mar 2008 15:54:48 -0500 Subject: [Gtk-sharp-list] Gnome.Print In-Reply-To: <1206991468.28543.19.camel@prometheus> References: <1206990308.11932.152.camel@t61p.site> <1206991468.28543.19.camel@prometheus> Message-ID: <1206996888.11932.205.camel@t61p.site> On Mon, 2008-03-31 at 14:24 -0500, Cody Russell wrote: > It seems like it would be trivial to switch Tomboy from Gnome printing > to Gtk printing, right? Are there a lot of other apps out there > depending on Gnome.Print other than Tomboy? Sandy from Tomboy has already chimed in on d-d-l to say they'll port, and Sebastian has agreed to help them, since he just went through it for F-spot. > If option #1 is taken, and you break stability, that might also be seen > as an opportunity to make other changes that otherwise couldn't be made. > (No, I don't have specific suggestions, just pointing out the obvious > food for thought.) Right now, gnome-sharp is a burial ground. I think the only things which are not deprecated at this point are Gnome.Program and Gnome.PanelApplet, which ironically should probably be split out as well, since libpanelapplet is in the desktop release. So I'll add to the proposal moving Gnome.PanelApplet to gnome-desktop-sharp as gnome-panel-sharp.dll, if we choose the "bite the bullet" option. -- Mike Kestner From miguel at ximian.com Mon Mar 31 17:01:42 2008 From: miguel at ximian.com (Miguel de Icaza) Date: Mon, 31 Mar 2008 17:01:42 -0400 Subject: [Gtk-sharp-list] Gnome.Print In-Reply-To: <1206990308.11932.152.camel@t61p.site> References: <1206990308.11932.152.camel@t61p.site> Message-ID: <1206997302.16799.7.camel@linux.site> > 2) Maintain stability by leaving the gnomeprint* dependency in > gnome-sharp.dll. I don't think this choice will be appreciated by the > GNOME folks, and would put pressure on Tomboy, because it depends on > gnome-sharp.dll. Any gnome build which included Tomboy would therefore > still require libgnomeprint* and I doubt the gnome folks will be pleased > with us. This is probably a non-starter, but I mention it for > completeness. This is the "bury our heads in the sand" solution. Actually, am not sure that this is out of the question. On the thread at d-d-l people seemed to suggest that distributions will continue (or can continue) to ship this library. We could just continue to depend on it. Besides, it is a runtime dependency, not a compile-time dependency, so we could just make it a requirement in the packaging that this is available, while we move people to another library. In the meantime, it makes sense to continue with our migration to independent libraries, to avoid these situations in the future. From martin at opengeomap.org Mon Mar 31 17:09:26 2008 From: martin at opengeomap.org (=?ISO-8859-1?Q?=22Mart=EDn_RV_=28OPENGeoMap=29=22?=) Date: Mon, 31 Mar 2008 23:09:26 +0200 Subject: [Gtk-sharp-list] VALA and GTK# Message-ID: <47F15306.3020207@opengeomap.org> Hi all: I am an GTK fanatic and i would like know the posible future compatibilities between (C-Gobject-VALA-c#) and GTK#. the c# language in VALA is very similar to c#, with a little differences . http://live.gnome.org/Vala/GTKSample Regards.