From christian_hoff at gmx.net Tue Apr 1 01:26:54 2008 From: christian_hoff at gmx.net (Christian Hoff) Date: Tue, 01 Apr 2008 07:26:54 +0200 Subject: [Gtk-sharp-list] Start editing with one click in a TreeView In-Reply-To: <20080331194226.113670@gmx.net> References: <20080331194226.113670@gmx.net> Message-ID: <47F1C79E.3050408@gmx.net> Florian Roth schrieb: > 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 > Have a look at http://www.mono-project.com/GtkSharp_TreeView_Tutorial#Editable_Text_Cells You are right, catching a mouse click with the Activate() method won't work because it cannot be overridden. This can be really annoying when you want to write custom CellRenderers. I will try to extend the Gtk.metadata file to provide a virtual method OnActivate() which can then be used to catch these clicks. Christian Hoff From bratsche at gnome.org Tue Apr 1 12:49:38 2008 From: bratsche at gnome.org (Cody Russell) Date: Tue, 01 Apr 2008 11:49:38 -0500 Subject: [Gtk-sharp-list] Gnome.Print In-Reply-To: <1206996888.11932.205.camel@t61p.site> References: <1206990308.11932.152.camel@t61p.site> <1206991468.28543.19.camel@prometheus> <1206996888.11932.205.camel@t61p.site> Message-ID: <1207068578.1767.11.camel@prometheus> On Mon, 2008-03-31 at 15:54 -0500, Mike Kestner 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. I've been switching us over to using Gtk print at Medsphere recently, so I'd also be happy to help out with this in Tomboy if it would be useful. I've also got a patch in Bugzilla to improve GTK printing on Win32 by using the new cairo_win32_printing_surface. But this will require a new version of Cairo, so I don't think I can commit it to gtk-2-12 branch. It'll probably have to be only for trunk. From mtausig at fsmat.at Wed Apr 2 06:27:15 2008 From: mtausig at fsmat.at (Mathias Tausig) Date: Wed, 2 Apr 2008 12:27:15 +0200 (CEST) Subject: [Gtk-sharp-list] Crossplatform gtk# app Message-ID: <64554.195.64.3.50.1207132035.squirrel@fsmat.at> Hy! I would like to develop a crossplatform (that is linux and windows) application which uses gtk# using mono. Is there some way of sparing the windows users the hassle of installing the gtk# assemblies by somehow "statically linking" the neccesary assemblies into my application? cheers mathias From m.j.hutchinson at gmail.com Wed Apr 2 09:25:06 2008 From: m.j.hutchinson at gmail.com (Michael Hutchinson) Date: Wed, 2 Apr 2008 09:25:06 -0400 Subject: [Gtk-sharp-list] Crossplatform gtk# app In-Reply-To: <64554.195.64.3.50.1207132035.squirrel@fsmat.at> References: <64554.195.64.3.50.1207132035.squirrel@fsmat.at> Message-ID: On Wed, Apr 2, 2008 at 6:27 AM, Mathias Tausig wrote: > Hy! > > I would like to develop a crossplatform (that is linux and windows) > application which uses gtk# using mono. Is there some way of sparing the > windows users the hassle of installing the gtk# assemblies by somehow > "statically linking" the neccesary assemblies into my application? Hi, If you just needed the GTK# assemblies, you could either bundle the dlls with your app, or if you really want, statically link them with the Mono link. Unfortunately it's not that simple, as you need GTK+ and various unmanaged glue libraries too. You could bundle these with your app too, but it would make more sense just to invoke the GTK# installer from your program's installer. Hopefully there will come a time when we can assume that GTK# is present on windows ;-) -- Michael Hutchinson http://mjhutchinson.com From mtausig at fsmat.at Wed Apr 2 09:41:15 2008 From: mtausig at fsmat.at (Mathias Tausig) Date: Wed, 2 Apr 2008 15:41:15 +0200 (CEST) Subject: [Gtk-sharp-list] Crossplatform gtk# app In-Reply-To: References: <64554.195.64.3.50.1207132035.squirrel@fsmat.at> Message-ID: <64018.195.64.3.50.1207143675.squirrel@fsmat.at> > On Wed, Apr 2, 2008 at 6:27 AM, Mathias Tausig wrote: >> Hy! >> >> I would like to develop a crossplatform (that is linux and windows) >> application which uses gtk# using mono. Is there some way of sparing >> the >> windows users the hassle of installing the gtk# assemblies by somehow >> "statically linking" the neccesary assemblies into my application? > > Hi, > > If you just needed the GTK# assemblies, you could either bundle the > dlls with your app, or if you really want, statically link them with > the Mono link. > > Unfortunately it's not that simple, as you need GTK+ and various > unmanaged glue libraries too. You could bundle these with your app > too, but it would make more sense just to invoke the GTK# installer > from your program's installer. I just used the term "statical linking", since that's what I would do if it where an ordinary C program, if bundling works too, that's fine with me. But since this is going to be my first mono project, I have to ask some more stupid questions: What exactly do you mean by "bundling" Simply having the neccesary dll in te same dir as the exe, or somehow linking it? If the latter, how can I achieve that (commandline, monodevelop). > Hopefully there will come a time when we can assume that GTK# is > present on windows ;-) While there's life, there's hope :-) Thank you for your insight. cheers mathias > -- > Michael Hutchinson > http://mjhutchinson.com > _______________________________________________ > Gtk-sharp-list maillist - Gtk-sharp-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/gtk-sharp-list > > From martin at opengeomap.org Wed Apr 2 10:31:37 2008 From: martin at opengeomap.org (Martin (OpenGeoMap)) Date: Wed, 02 Apr 2008 16:31:37 +0200 Subject: [Gtk-sharp-list] Crossplatform gtk# app In-Reply-To: <64059.195.64.3.50.1207144893.squirrel@fsmat.at> References: <64554.195.64.3.50.1207132035.squirrel@fsmat.at> <64018.195.64.3.50.1207143675.squirrel@fsmat.at> <47F390AB.6030305@opengeomap.org> <64059.195.64.3.50.1207144893.squirrel@fsmat.at> Message-ID: <47F398C9.3080307@opengeomap.org> Mathias Tausig escribi?: >> Hi: >> >>>> On Wed, Apr 2, 2008 at 6:27 AM, Mathias Tausig >>>> wrote: >>>> >>>> >>>>> Hy! >>>>> >>>>> I would like to develop a crossplatform (that is linux and windows) >>>>> application which uses gtk# using mono. Is there some way of sparing >>>>> the >>>>> windows users the hassle of installing the gtk# assemblies by somehow >>>>> "statically linking" the neccesary assemblies into my application? >>>>> >>>>> >>>> Hi, >>>> >>>> If you just needed the GTK# assemblies, you could either bundle the >>>> dlls with your app, or if you really want, statically link them with >>>> the Mono link. >>>> >>>> Unfortunately it's not that simple, as you need GTK+ and various >>>> unmanaged glue libraries too. You could bundle these with your app >>>> too, but it would make more sense just to invoke the GTK# installer >>>> from your program's installer. >>>> >>>> >>> I just used the term "statical linking", since that's what I would do if >>> it where an ordinary C program, if bundling works too, that's fine with >>> me. >>> But since this is going to be my first mono project, I have to ask some >>> more stupid questions: >>> What exactly do you mean by "bundling" Simply having the neccesary dll >>> in >>> te same dir as the exe, or somehow linking it? If the latter, how can I >>> achieve that (commandline, monodevelop). >>> >>> >> I am working with ruby-gnome for windows, and i do this. I believe you >> only need copy all mono files and create a bat file to exec your software. >> >> Just tried it, doesn't work. After he found all the correct assembly-dll's he complains about not finding the libgtk-win32.dll. >> >>>> Hopefully there will come a time when we can assume that GTK# is >>>> present on windows ;-) >>>> >>>> >>> While there's life, there's hope :-) >>> >>> Thank you for your insight. >>> >>> >> Apple support GTK for mac os in a native way. >> >>> cheers >>> > > > Well, but Apple is just stolen Linux ... cheers Mathias > >>> mathias >>> >>> >>> >> Regards. >> >> >> >> > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/gtk-sharp-list/attachments/20080402/56a3a0bc/attachment-0001.html From elmar at haneke.de Wed Apr 2 11:26:25 2008 From: elmar at haneke.de (Elmar Haneke) Date: Wed, 02 Apr 2008 17:26:25 +0200 Subject: [Gtk-sharp-list] Crossplatform gtk# app In-Reply-To: <47F398C9.3080307@opengeomap.org> References: <64554.195.64.3.50.1207132035.squirrel@fsmat.at> <64018.195.64.3.50.1207143675.squirrel@fsmat.at> <47F390AB.6030305@opengeomap.org> <64059.195.64.3.50.1207144893.squirrel@fsmat.at> <47F398C9.3080307@opengeomap.org> Message-ID: <47F3A5A1.5010402@haneke.de> > Just tried it, doesn't work. After he found all the correct assembly-dll's > he complains about not finding the libgtk-win32.dll. for an mkbundle'd exe I did succeed with copyinthese files from Mono: ATK-SHARP.DLL GDK-SHARP.DLL GDKSHARPGLUE-2.DLL GLIB-SHARP.DLL GLIBSHARPGLUE-2.DLL GTK-SHARP.DLL GTKSHARPGLUE-2.DLL I18N.DLL I18N.WEST.DLL ICSHARPCODE.SHARPZIPLIB.DLL MONO.CAIRO.DLL MONO.DLL MONO.POSIX.DLL MONOPOSIXHELPER.DLL PANGO-SHARP.DLL SYSTEM.DLL SYSTEM.XML.DLL mono/2.0/MSCORLIB.DLL In Addition you need an GTK+ Runtime which can be found at http://www.gtk.org/download-windows.html. Not all of the GTK+ Runtime is really required, you can strip it down if you like. Elmar From lordphoenix at free.fr Fri Apr 4 03:27:35 2008 From: lordphoenix at free.fr (lordphoenix) Date: Fri, 04 Apr 2008 09:27:35 +0200 Subject: [Gtk-sharp-list] GTK CRITICAL error message Message-ID: <1207294056.17050.14.camel@jupiter.homenet> Hi all, When running my GTK# application I have often this error message "(Biblix:17019): Gtk-CRITICAL **: gtk_entry_set_text: assertion `text != NULL' failed" It doesn't prevent my application to be executed but I would like to prevent this error. Does someone get an idea about what I can do? Thanks for help. PS: Sorry for my bad english I don't speak it very often. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: Ceci est une partie de message =?ISO-8859-1?Q?num=E9riquement?= =?ISO-8859-1?Q?_sign=E9e?= Url : http://lists.ximian.com/pipermail/gtk-sharp-list/attachments/20080404/a9e61597/attachment.bin From m.j.hutchinson at gmail.com Fri Apr 4 13:35:49 2008 From: m.j.hutchinson at gmail.com (Michael Hutchinson) Date: Fri, 4 Apr 2008 13:35:49 -0400 Subject: [Gtk-sharp-list] GTK CRITICAL error message In-Reply-To: <1207294056.17050.14.camel@jupiter.homenet> References: <1207294056.17050.14.camel@jupiter.homenet> Message-ID: On Fri, Apr 4, 2008 at 3:27 AM, lordphoenix wrote: > Hi all, > When running my GTK# application I have often this error message > "(Biblix:17019): Gtk-CRITICAL **: gtk_entry_set_text: assertion `text != > NULL' failed" > It doesn't prevent my application to be executed but I would like to > prevent this error. > > Does someone get an idea about what I can do? Something's trying to assign null to a GTK# property. You can track it down with a GLib log handler -- take a look at http://anonsvn.mono-project.com/viewcvs/trunk/monodevelop/main/src/core/MonoDevelop.Core.Gui/MonoDevelop.Core.Gui/GLibLogging.cs?view=markup for an example. -- Michael Hutchinson http://mjhutchinson.com From simonescu at gmail.com Sun Apr 6 05:43:57 2008 From: simonescu at gmail.com (Simon) Date: Sun, 6 Apr 2008 11:43:57 +0200 Subject: [Gtk-sharp-list] GtkGLArea Sharp for Windows Message-ID: Hi! I'm trying to make OpenGL work with Gtk# on the Windows platform. I stumbled upon GtkGLArea Sharp, which seems like a great tool, the only problem is that there are (at least to my knowledge) no binaries available for Win32. Can a port for GtkGLArea-Sharp to Windows be done? I tried to use the DLLs that were used on Linux, but that of course did not work (all I got was a type exception). I am particulary looking for "gtkglarea-sharp.dll" and "gtkgkarea-sharp-util.dll" files for Win32. Thanks, take care Simon -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/gtk-sharp-list/attachments/20080406/69c7bab8/attachment.html From waschoen at syr.edu Sun Apr 6 09:24:50 2008 From: waschoen at syr.edu (Billy Schoenberg) Date: Sun, 6 Apr 2008 15:24:50 +0200 Subject: [Gtk-sharp-list] Strange GTK# errors on Mono 1.9 and OSX Message-ID: Hi, I have developed a GTK# (Glade) app on windows that I am now trying to get to work on OS X 10.5. It works well on windows but on OS X it randomly fails with the un-catchable Exception below. I believe that the first bunch of errors are because of the GTK theme that I am using (the one that comes with Mono), I think those errors are because the scroll bars that are present in my app do not show up right. The GLib and Gdk stuff confuses me, especially the GDK_IS_DRAWABLE assertion because I make that the first line in any event handler for an expose method sets the object to app paintable. Now for a little bit of background on what I am doing so that I can tell you the circumstances of the un-catchable exception. My program places various object onto the screen (a GTKDrawingArea which a cairo context is gotten from so that I can draw into that) and it also has a table of GTK widgets which represent that object, its X location its Y location etc, those widgets get put into and pulled out of a table by the objects themselves, therefore when a new object is created first a message is sent to redraw the GTKDrawingArea then get the Cairo Context then clear the GTKTable of all of its widgets, load in the new widgets then draw the object. when this exception is thrown the table is half emptied... and nothing new is drawn onto the screen, but the old stuff is still there. As you can see the stack trace does not point to a single line of my code except for the Application.Run() command. Now here is the really intriguing part there is no set of steps that causes this error to occur, it occurs totally at random, there isn't one kind of object that causes it, or any amount of time running the program, its just out of no-where. Any help I could get would be great, also if this is just a problem on OSX tell me please, because my main two targets for this program are Windows and Linux, OSX is more or less an after-thought. Billy The un catchable exception (stack trace at the bottom) shows Sun Apr 6 14:41:43 billy-schoenbergs-macbook.local mono[3482] : CGBitmapContextGetBitsPerPixel: invalid context Sun Apr 6 14:41:43 billy-schoenbergs-macbook.local mono[3482] : CGBitmapContextGetBitsPerPixel: invalid context Sun Apr 6 14:41:43 billy-schoenbergs-macbook.local mono[3482] : CGBitmapContextGetBitsPerPixel: invalid context Sun Apr 6 14:41:43 billy-schoenbergs-macbook.local mono[3482] : CGBitmapContextGetBitsPerPixel: invalid context Sun Apr 6 14:41:59 billy-schoenbergs-macbook.local mono[3482] : CGBitmapContextGetBitsPerPixel: invalid context Sun Apr 6 14:41:59 billy-schoenbergs-macbook.local mono[3482] : CGBitmapContextGetBitsPerPixel: invalid context Sun Apr 6 14:41:59 billy-schoenbergs-macbook.local mono[3482] : CGBitmapContextGetBitsPerPixel: invalid context Sun Apr 6 14:42:01 billy-schoenbergs-macbook.local mono[3482] : CGBitmapContextGetBitsPerPixel: invalid context Sun Apr 6 14:42:01 billy-schoenbergs-macbook.local mono[3482] : CGBitmapContextGetBitsPerPixel: invalid context (Open Dialect:3482): GLib-GObject-WARNING **: invalid cast from `GtkCellView' to `GdkWindow' (Open Dialect:3482): Gdk-CRITICAL **: gdk_drawable_get_colormap: assertion `GDK_IS_DRAWABLE (drawable)' failed (Open Dialect:3482): GLib-GObject-WARNING **: invalid cast from `GtkCellView' to `GdkWindow' (Open Dialect:3482): Gdk-CRITICAL **: gdk_drawable_get_colormap: assertion `GDK_IS_DRAWABLE (drawable)' failed (Open Dialect:3482): GLib-GObject-WARNING **: invalid cast from `GtkCellView' to `GdkWindow' Stacktrace: at (wrapper managed-to-native) Gtk.Application.gtk_main () <0x00004> at (wrapper managed-to-native) Gtk.Application.gtk_main () <0xffffffff> at Gtk.Application.Run () <0x0000a> at Open_Dialect.MainWindow..ctor () [0x00167] in /Users/Billy/Desktop/Works on Mac/Open Dialect GTK/Open Dialect/Open Dialect/Forms and View/MainWindow.cs:78 at Open_Dialect.Program.Main (string[]) [0x00000] in /Users/Billy/Desktop/Works on Mac/Open Dialect GTK/Open Dialect/Open Dialect/Program.cs:12 at (wrapper runtime-invoke) Open_Dialect.Program.runtime_invoke_void_string[] (object,intptr,intptr,intptr) <0xffffffff> -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/gtk-sharp-list/attachments/20080406/4a98f52a/attachment.html From adam at morrison-ind.com Mon Apr 7 11:50:20 2008 From: adam at morrison-ind.com (Adam Tauno Williams) Date: Mon, 07 Apr 2008 11:50:20 -0400 Subject: [Gtk-sharp-list] (pango_layout_line_get_char_direction): should not be reached aborting... Message-ID: <1207583420.4949.6.camel@WM_ADAM1.morrison.iserv.net> Anyone seen an error like "(pango_layout_line_get_char_direction): should not be reached aborting..." before and have any pointers? gtk-sharp2-2.10.2-30 mono-core-1.9-5.novell Pango-ERROR **: file pango-layout.c: line 2054 (pango_layout_line_get_char_direction): should not be reached aborting... Stacktrace: at (wrapper managed-to-native) Gtk.Widget.gtk_widget_set_sensitive (intptr,bool) <0x00004> at (wrapper managed-to-native) Gtk.Widget.gtk_widget_set_sensitive (intptr,bool) <0xffffffff> at Gtk.Widget.set_Sensitive (bool) <0x0001f> at Whitemice.Consonance.EntityWindow.Freeze () <0x00046> at Whitemice.Consonance.TaskWindow.ReceiveEvent (Whitemice.ZOGI.ServerEvent) <0x00076> at Whitemice.ZOGI.GtkWidgets.Registry.Notify (Whitemice.ZOGI.Entity,Whitemice.ZOGI.ServerEvent) <0x001ca> at Whitemice.Consonance.Consonance.EnqueueEvent (Whitemice.ZOGI.ServerEvent) <0x00054> at Whitemice.ZOGI.Server.PushServerEvent (Whitemice.ZOGI.Entity,Whitemice.ZOGI.ServerEventType,Whitemice.ZOGI.ServerEventPriority) <0x0004b> .... ================================================================= Got a SIGABRT while executing native code. This usually indicates a fatal error in the mono runtime or one of the native libraries used by your application. ================================================================= From zpon.dk at gmail.com Tue Apr 8 09:01:39 2008 From: zpon.dk at gmail.com (=?ISO-8859-1?Q?S=F8ren_Juul?=) Date: Tue, 8 Apr 2008 15:01:39 +0200 Subject: [Gtk-sharp-list] Pango warning Message-ID: Hello I am using pango change the layout of some labels: Label urlLaben = null; Pango.FontDescription font_desc = null; font_desc = Pango.FontDescription.FromString ("sans 11 bold"); urlLabel = new Label("n/a"); urlLabel.ModifyFont(font_desc); urlLabel.SetAlignment(0.0f, 1.0f); But when the application has been running for a short while i get a pango warning and the application dies. (mml:10381): Pango-WARNING **: Invalid UTF-8 string passed to pango_layout_set_text() (mml:10381): Pango-WARNING **: shaping failure, expect ugly output. shape-engine='BasicEngineFc', font='DejaVu Sans 8', text='' Stacktrace: Segmentation fault (core dumped) Why is this, and what can be done about it? The labels text are updated regularly (about once a second), can this be part of the problem? -- 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/20080408/317306f1/attachment-0001.html From zpon.dk at gmail.com Wed Apr 9 09:02:49 2008 From: zpon.dk at gmail.com (=?ISO-8859-1?Q?S=F8ren_Juul?=) Date: Wed, 9 Apr 2008 15:02:49 +0200 Subject: [Gtk-sharp-list] Pango warning In-Reply-To: References: Message-ID: It seemed to be because i used multithreading, after i have added locks and other stuff 2008/4/8, S?ren Juul : > > Hello > > I am using pango change the layout of some labels: > > Label urlLaben = null; > Pango.FontDescription font_desc = null; > font_desc = Pango.FontDescription.FromString ("sans 11 bold"); > urlLabel = new Label("n/a"); > urlLabel.ModifyFont(font_desc); > urlLabel.SetAlignment(0.0f, 1.0f); > > But when the application has been running for a short while i get a pango > warning and the application dies. > > (mml:10381): Pango-WARNING **: Invalid UTF-8 string passed to > pango_layout_set_text() > > (mml:10381): Pango-WARNING **: shaping failure, expect ugly output. > shape-engine='BasicEngineFc', font='DejaVu Sans 8', text='' > Stacktrace: > > Segmentation fault (core dumped) > > > Why is this, and what can be done about it? The labels text are updated > regularly (about once a second), can this be part of the problem? > -- > Med venlig hilsen / Kind regards > S?ren Juul -- 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/20080409/fbc909b5/attachment.html From zpon.dk at gmail.com Wed Apr 9 09:05:47 2008 From: zpon.dk at gmail.com (=?ISO-8859-1?Q?S=F8ren_Juul?=) Date: Wed, 9 Apr 2008 15:05:47 +0200 Subject: [Gtk-sharp-list] Pango warning In-Reply-To: References: Message-ID: I am sorry, the mail before was send to early. It seemed to be because I used multithreading, that i got the warnings, after I have added locks and other stuff found here http://www.mono-project.com/Responsive_Applications it seems to have fixed the problem. > 2008/4/8, S?ren Juul : > > > > Hello > > > > I am using pango change the layout of some labels: > > > > Label urlLaben = null; > > Pango.FontDescription font_desc = null; > > font_desc = Pango.FontDescription.FromString ("sans 11 bold"); > > urlLabel = new Label("n/a"); > > urlLabel.ModifyFont(font_desc); > > urlLabel.SetAlignment(0.0f, 1.0f); > > > > But when the application has been running for a short while i get a > > pango warning and the application dies. > > > > (mml:10381): Pango-WARNING **: Invalid UTF-8 string passed to > > pango_layout_set_text() > > > > (mml:10381): Pango-WARNING **: shaping failure, expect ugly output. > > shape-engine='BasicEngineFc', font='DejaVu Sans 8', text='' > > Stacktrace: > > > > Segmentation fault (core dumped) > > > > > > Why is this, and what can be done about it? The labels text are updated > > regularly (about once a second), can this be part of the problem? > > -- > > Med venlig hilsen / Kind regards > > S?ren Juul > > > > > -- > Med venlig hilsen / Kind regards > S?ren Juul > -- 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/20080409/6d3234f1/attachment.html From monouser at gmail.com Thu Apr 10 07:10:41 2008 From: monouser at gmail.com (Darwin Reynoso) Date: Thu, 10 Apr 2008 07:10:41 -0400 Subject: [Gtk-sharp-list] GtkSourceView Message-ID: Hi, how do i add a GtkSourceView widget i'm using monodevelop and i checked the toolbox and i don't see it. thanks From mail.gery at gmail.com Thu Apr 10 09:16:16 2008 From: mail.gery at gmail.com (Gergely Kiss) Date: Thu, 10 Apr 2008 15:16:16 +0200 Subject: [Gtk-sharp-list] GtkSourceView In-Reply-To: References: Message-ID: Hi, as far as I know, you can only use it in your source, but not in the GUI editor. To use the classes of GtkSourceView, you have to put the following line to the start of your source files: uses GtkSourceView; Don't forget to set a reference to the gtksourceview-sharp package in your project, by right clicking on "References" in the solution browser panel and choosing Edit references. Browse the list of installed packages and tick the package "gtksourceview-sharp". 2008/4/10 Darwin Reynoso : > Hi, > how do i add a GtkSourceView widget i'm using monodevelop and i > checked the toolbox and i don't see it. > > thanks > _______________________________________________ > Gtk-sharp-list maillist - Gtk-sharp-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/gtk-sharp-list > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/gtk-sharp-list/attachments/20080410/3541af63/attachment.html From elmar at haneke.de Fri Apr 11 06:11:31 2008 From: elmar at haneke.de (Elmar Haneke) Date: Fri, 11 Apr 2008 12:11:31 +0200 Subject: [Gtk-sharp-list] Cairo.Context: called from finalization thread, programmer is missing a call to Dispose Message-ID: <47FF3953.9040506@haneke.de> On Working with Gtk.PrintOperation I do get several messages regarding undisposed Cairo contexts. My Application does call Dispose on the PrintOperation Object and the FontDescription objects created. What else has to be disposed after printing? Elmar From rothflorian at gmx.de Sun Apr 13 15:46:50 2008 From: rothflorian at gmx.de (Florian Roth) Date: Sun, 13 Apr 2008 21:46:50 +0200 Subject: [Gtk-sharp-list] Different CellRenderers in different cells Message-ID: <000601c89d9f$1e396d20$5aac4760$@de> Hi all, I have a TreeView with a ListStore as its model. The model has two columns. It simply represents a name-value mapping. So the first column has a CellRendererText and simply displays the name of the pair. The second column contains the value which is a System.Object. So it can hold any data type. Now this column shall be editable as well. Depending on the value's type it shall use another CellRenderer. So I implemented the CellRenderer class and delegated the call to StartEditing to the dedicated renderer for the object in the cell. So if it's an int I use a CellRendererSpin, for strings a CellRendererText, etc. But unfortunately this only works for CellRendererText. All other renderers return null when calling StartEditing. How can I solve this problem? Is this the wrong way what I was doing? Am I missing something? Greetings Florian Roth -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/gtk-sharp-list/attachments/20080413/4e1f47cb/attachment.html From m.j.hutchinson at gmail.com Sun Apr 13 16:00:39 2008 From: m.j.hutchinson at gmail.com (Michael Hutchinson) Date: Sun, 13 Apr 2008 16:00:39 -0400 Subject: [Gtk-sharp-list] Different CellRenderers in different cells In-Reply-To: <000601c89d9f$1e396d20$5aac4760$@de> References: <000601c89d9f$1e396d20$5aac4760$@de> Message-ID: On Sun, Apr 13, 2008 at 3:46 PM, Florian Roth wrote: > > > > Hi all, > > > > I have a TreeView with a ListStore as its model. The model has two columns. > It simply represents a name-value mapping. So the first column has a > CellRendererText and simply displays the name of the pair. The second column > contains the value which is a System.Object. So it can hold any data type. > Now this column shall be editable as well. Depending on the value's type it > shall use another CellRenderer. > > So I implemented the CellRenderer class and delegated the call to > StartEditing to the dedicated renderer for the object in the cell. So if > it's an int I use a CellRendererSpin, for strings a CellRendererText, etc. > > But unfortunately this only works for CellRendererText. All other renderers > return null when calling StartEditing. > > How can I solve this problem? Is this the wrong way what I was doing? Am I > missing something? I don't have time to think about this fully right now, but you could take a looks at MonoDevelop's Property Grid (in main/src/addins/MonoDevelop.DesignerSupport) because that does much the same thing as what you need. -- Michael Hutchinson http://mjhutchinson.com From waschoen at syr.edu Mon Apr 14 05:47:49 2008 From: waschoen at syr.edu (Billy Schoenberg) Date: Mon, 14 Apr 2008 11:47:49 +0200 Subject: [Gtk-sharp-list] What do I do about this exception? Message-ID: Hello I am developing an app on OS X using GTK Sharp and Mono. I get this strange exception with this stack trace: Stacktrace: at (wrapper managed-to-native) Gtk.Application.gtk_main () <0x00004> at (wrapper managed-to-native) Gtk.Application.gtk_main () <0xffffffff> at Gtk.Application.Run () <0x0000a> at Open_Dialect.MainWindow..ctor () [0x0017e] in /Users/Billy/Desktop/Works on Mac/Open Dialect GTK/Open Dialect/Open Dialect/Forms and View/MainWindow.cs:96 at Open_Dialect.Program.Main (string[]) [0x0000a] in /Users/Billy/Desktop/Works on Mac/Open Dialect GTK/Open Dialect/Open Dialect/Program.cs:13 at (wrapper runtime-invoke) Open_Dialect.Program.runtime_invoke_void_string[] (object,intptr,intptr,intptr) <0xffffffff> Does anyone know what I ought to do about this? For more info see http://lists.ximian.com/pipermail/gtk-sharp-list/2008-April/008552.html Thanks. Billy -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/gtk-sharp-list/attachments/20080414/27539f11/attachment.html From m.j.hutchinson at gmail.com Mon Apr 14 13:54:17 2008 From: m.j.hutchinson at gmail.com (Michael Hutchinson) Date: Mon, 14 Apr 2008 13:54:17 -0400 Subject: [Gtk-sharp-list] What do I do about this exception? In-Reply-To: References: Message-ID: On Mon, Apr 14, 2008 at 5:47 AM, Billy Schoenberg wrote: > Hello > > I am developing an app on OS X using GTK Sharp and Mono. I get this strange > exception with this stack trace: > > > Stacktrace: > > at (wrapper managed-to-native) Gtk.Application.gtk_main () <0x00004> > at (wrapper managed-to-native) Gtk.Application.gtk_main () <0xffffffff> > at Gtk.Application.Run () <0x0000a> > at Open_Dialect.MainWindow..ctor () [0x0017e] in > /Users/Billy/Desktop/Works on Mac/Open Dialect GTK/Open Dialect/Open > Dialect/Forms and View/MainWindow.cs:96 > at Open_Dialect.Program.Main (string[]) [0x0000a] in > /Users/Billy/Desktop/Works on Mac/Open Dialect GTK/Open Dialect/Open > Dialect/Program.cs:13 > at (wrapper runtime-invoke) > Open_Dialect.Program.runtime_invoke_void_string[] > (object,intptr,intptr,intptr) <0xffffffff> > > Does anyone know what I ought to do about this? For more info see > http://lists.ximian.com/pipermail/gtk-sharp-list/2008-April/008552.html This looks like a native segfault. Some of the native libraries you are using are getting into invalid state and crashing. You should track down those GLib-GObject-WARNING etc messages to try to find where the invalid operations are being performed. You can do this by installing GLib log handlers -- take a look at http://anonsvn.mono-project.com/viewcvs/trunk/monodevelop/main/src/core/MonoDevelop.Core.Gui/MonoDevelop.Core.Gui/GLibLogging.cs?view=markup for an example. That said, these errors might be a result of that odd "CGBitmapContextGetBitsPerPixel: invalid context" error, which appears to be GTK-Mac-specific. -- Michael Hutchinson http://mjhutchinson.com From mkrueger at novell.com Tue Apr 15 10:50:15 2008 From: mkrueger at novell.com (Mike =?ISO-8859-1?Q?Kr=FCger?=) Date: Tue, 15 Apr 2008 16:50:15 +0200 Subject: [Gtk-sharp-list] Question about handling keypress events Message-ID: <1208271015.9772.27.camel@diablo.site> Hi I've a problem handling key presses (in a text input scenario). The OnKeyPressEvent (Gdk.EventKey evt) event only gets the key pressed - that works well for 99% of the cases. But there are composed characters (? or ? for example) where you press two keys to compose one character. Is there a right/easy way to handle these composed characters ? Regards Mike From adam at morrison-ind.com Tue Apr 15 11:18:22 2008 From: adam at morrison-ind.com (Adam Tauno Williams) Date: Tue, 15 Apr 2008 11:18:22 -0400 Subject: [Gtk-sharp-list] ListStore & db4o Message-ID: <1208272702.12939.10.camel@WM_ADAM1.morrison.iserv.net> The answer to this question is almost certainly no, but... Has anyone created a ListStore/TreeStore that plugs-into/binds-into db4o? I've seen some fragments of people doing rather cool things with db4o (such as a LINQ provider) so I figured it was worth asking. I have an application with four TreeView widgets that share the same ListStore via different filters. It works well enough but gets quite slow as the data in the model gets larger. -- Consonance: an Open Source .NET OpenGroupware client. Contact:awilliam at whitemiceconsulting.com http://freshmeat.net/projects/consonance/ From mhenriquezs at terra.cl Tue Apr 15 11:20:47 2008 From: mhenriquezs at terra.cl (Mauricio Henriquez) Date: Tue, 15 Apr 2008 11:20:47 -0400 Subject: [Gtk-sharp-list] Gtk.Image "refresh" image area Message-ID: <4804C7CF.5070303@terra.cl> Hi Guys: My name is Mauricio and this is my first post to the list, so hi to all!!. I'm playing around a lot with the Gtk.Image + Pixmap and Pixbuf types in mono/gtk-sharp to build a VideoPlayer widget with the ISE.Video library from the Icarus project (http://icarus.sourceforge.net/), but now I'm a little confuse about the pixmap and pixbuf and convertions between both and also about the gtk.image :-S , let me explain the situation and please be pattience with my poor English: The ise.video library works as a wrapper for Tao.FFmpeg and let us to work with a "Decoder" that can be used to decode a video file, images from URLs or even from v4l source, the ise.video library expose a number of "video handlers" for different scenarios, like a "texture" one to be used in opengl scenes, a "Bitmap handler" to work in winforms scenarios (I allready have a primary working version of the videoplayer for WinForms and run nice in mono/linux in a winform app showing videos and also my webcam!!, very cool!!), and also a "Pixbuf handler" to use in Gtk# scenarios. Right now I have a simple "pixbuf handler" in a Gtk# app with a Gtk.Image widget, this example app is capable of show a video file or a v4l source in a gtk.image widget allmost without problems... Rigth now, the idea is have a custom widget capable of do all the needed configuration "internally" (decoder configuration, etc..), for the winform videoplayer version we do that creating a class the inherit from a simple PictureBox control, so the idea is to do something simillar here (I know that may be you are goin to recomned to use some kind of opengl widget for intensive graphic things, but the current state of gtkopenglarea is not somehting that we whant right now and can be used in a "version 2" of the gtk-videoplayer). My problem right now is that I have a VideoPlayer class that inherit from Gtk.Image and add a public "Play" method, the "play" method do all the configuration needed by the decoder and begin the "frame reading loop" (I know that I can have problems related to block the main gtk app loop, but right now that is my second concern :-) , then in each "reading" the "Pixbuf handler" return a updated "frame" (of pixbuf type) and I need to set the "frame" to the internall Pixbuf member of the widget, I do that with a simple: this.Pixbuf = PixbufHandler.frame; but then I need to force for a "update" or "refresh" of the widget to actually see the image displayed and that is the beggining of my problems. How can I do that in a simple way? Previously in the simple pixbuf handler test (the one with a simple gtk.image widget in a gtk# window) I be able to call to the this.GdkWindow.ProcessUpdates(true); becouse the gtk.image was in the gtk# window, so calling to the ProcessUpdates refresh all the childs and with that all OK...but right now is more dificult to me, becouse inside my custom widget the GdkWindow return "null" (I don't know way...). I also try with the this.QueueDrawArea(0, 0, 800, 340); inside my custom widget but to work witht the "Queue" methods I need to also use the Configure and Expose events and that force me to do some type convertions between PixBuf and pixmap...and is kind of confuse to me, so probably exist a more "direct"way to update the widget screen...I also try to inherit from the DrawingArea widget but also force me to do some convertions... Sorry for the long explanation but i think that is needed to understed what I'm trying to do.. Any sugestion is apreciated... In advance thank you.. Mauricio From roberst at fh-muenster.de Tue Apr 15 15:07:43 2008 From: roberst at fh-muenster.de (roberst at fh-muenster.de) Date: Tue, 15 Apr 2008 21:07:43 +0200 (CEST) Subject: [Gtk-sharp-list] event handling between window and dialog Message-ID: <46386.84.61.245.68.1208286463.squirrel@webmail.fh-muenster.de> Hello, my english is not so good, but i will try to explain my problem with gtk#. I have a MainWindow and a Gtk.Dialog. My problem is, that i will react to an event from the dialog (example dialog.hide()) in the MainWindow. The mainWindow should use an entry from the Dialog. But I don't know, how to realize this. I hope you can help me. Thanks. Excuse my bad english, i hope u understand my problem ;-) From mkestner at gmail.com Tue Apr 15 16:26:24 2008 From: mkestner at gmail.com (Mike Kestner) Date: Tue, 15 Apr 2008 15:26:24 -0500 Subject: [Gtk-sharp-list] Gnome.Print In-Reply-To: <1206991542.9579.102.camel@asgard.lan> References: <1206990308.11932.152.camel@t61p.site> <1206991542.9579.102.camel@asgard.lan> Message-ID: <1208291184.9654.140.camel@t61p.site> On Mon, 2008-03-31 at 21:25 +0200, Sebastian Dr?ge wrote: > > 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 :) Since nobody seems opposed to breaking the API compat, I'm going to plan on making this happen for the Gnome 2.24 release cycle. I will move gnomeprint* and panelapplet to gnome-desktop-sharp into their own assemblies with conditional builds and independent .pc files to obtain references. That should get gtk-sharp and gnome-sharp completely free of unstable libraries, so this should be our last compat break until gtk+ and gnome start breaking platform compat in a few years. -- Mike Kestner From sontek at gmail.com Wed Apr 16 10:10:27 2008 From: sontek at gmail.com (John M. Anderson) Date: Wed, 16 Apr 2008 08:10:27 -0600 Subject: [Gtk-sharp-list] Printing Text for Multiple Pages Message-ID: <1208355027.19578.3.camel@inspidel.lan> I'm trying to fix the Tomboy print code to use GTK Printing rather than gnome print... The first page works perfectly but the rests of the pages don't... I think the issue is with the rectangle stuff because the Y/X are always 0.. Here is my code: using System; using System.Collections.Generic; using System.Runtime.InteropServices; using Mono.Unix; using Gtk; using Tomboy; namespace Tomboy.PrintNotes { public class PrintNotesNoteAddin : NoteAddin { Gtk.ImageMenuItem item; List page_breaks = new List(); Pango.Layout layout; public override void Initialize () { item = new Gtk.ImageMenuItem (Catalog.GetString ("Print")); item.Image = new Gtk.Image (Gtk.Stock.Print, Gtk.IconSize.Menu); item.Activated += PrintButtonClicked; item.Show (); AddPluginMenuItem (item); } public override void Shutdown () { // Disconnect the event handlers so // there aren't any memory leaks. item.Activated -= PrintButtonClicked; } public override void OnNoteOpened () { // Do nothing. } // // Handle Print menu item Click // void PrintButtonClicked (object sender, EventArgs args) { Gtk.PrintOperation op = new PrintOperation (); op.BeginPrint += new BeginPrintHandler (OnBeginPrint); op.DrawPage += new DrawPageHandler(OnDrawPage); op.Run (Gtk.PrintOperationAction.PrintDialog, this.Window); } public void OnBeginPrint(object sender, Gtk.BeginPrintArgs args) { // We use the pango layout to decide how many lines go // on each page layout = args.Context.CreatePangoLayout (); // setup the font (using sans by default) // TODO: Get font and style from text tags layout.FontDescription = Pango.FontDescription.FromString("sans 12"); double layout_width = args.Context.Width; double layout_height = args.Context.Height; // scale the size of the layout layout.Width = Convert.ToInt32 (layout_width * Pango.Scale.PangoScale); // get the text to print Gtk.TextIter start_iter, end_iter; this.Buffer.GetBounds (out start_iter, out end_iter); layout.SetMarkup (this.Buffer.GetText(start_iter, end_iter, false)); int line_count = layout.LineCount; Pango.LayoutLine layout_line; double page_height = 0; for (int line = 0; line < line_count; ++line) { Pango.Rectangle ink_rect = new Pango.Rectangle(); Pango.Rectangle logical_rect = new Pango.Rectangle(); layout_line = layout.GetLine(line); // get the size of the current line layout_line.GetExtents (ref ink_rect, ref logical_rect); double line_height = logical_rect.Height / 1024.0; // if we are going to overflow, save the last line // and move to the next page if (page_height + line_height > layout_height) { page_breaks.Add(line); page_height = 0; } page_height += line_height; } PrintOperation op = (PrintOperation)sender; op.NPages = page_breaks.Count + 1; } public void OnDrawPage(object sender, Gtk.DrawPageArgs args) { // Find the beginning and end lines for each page int start_page_line = 0; int end_page_line = 0; if (args.PageNr != 0) start_page_line = page_breaks[args.PageNr - 1]; if (args.PageNr < page_breaks.Count) end_page_line = page_breaks[args.PageNr]; else end_page_line = layout.LineCount; Console.WriteLine("START LINE " + start_page_line); Console.WriteLine("END LINE " + end_page_line); Cairo.Context cairo_context = args.Context.CairoContext; Pango.LayoutIter layout_iter = layout.Iter; double start_position = 0; int line_index = start_page_line; do { if (line_index >= start_page_line) { Pango.LayoutLine layout_line = layout_iter.Line; Pango.Rectangle ink_rect = new Pango.Rectangle(); Pango.Rectangle logical_rect = new Pango.Rectangle(); layout_iter.GetLineExtents(ink_rect, logical_rect); int base_line = layout_iter.Baseline; Console.WriteLine("LOGICAL Y " + logical_rect.Y); Console.WriteLine("LOGICAL X " + logical_rect.X); if (line_index == start_page_line) start_position = logical_rect.Y / 1024.0; cairo_context.MoveTo(logical_rect.X / 1024.0, base_line / 1024.0 - start_position); Console.WriteLine("START POSITION " + start_position); Console.WriteLine("BASE LINE " + base_line); Pango.CairoHelper.ShowLayoutLine(cairo_context, layout_line); } Console.WriteLine("LINE INDEX " + line_index); line_index++; } while (line_index < end_page_line && layout_iter.NextLine()); } } } Here is the debug writelines I had: START LINE 0 END LINE 54 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 11124 LINE INDEX 0 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 24852 LINE INDEX 1 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 38580 LINE INDEX 2 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 52308 LINE INDEX 3 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 66036 LINE INDEX 4 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 79764 LINE INDEX 5 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 93492 LINE INDEX 6 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 107220 LINE INDEX 7 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 120948 LINE INDEX 8 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 134676 LINE INDEX 9 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 148404 LINE INDEX 10 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 162132 LINE INDEX 11 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 175860 LINE INDEX 12 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 189588 LINE INDEX 13 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 203316 LINE INDEX 14 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 217044 LINE INDEX 15 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 230772 LINE INDEX 16 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 244500 LINE INDEX 17 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 258228 LINE INDEX 18 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 271956 LINE INDEX 19 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 285684 LINE INDEX 20 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 299412 LINE INDEX 21 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 313140 LINE INDEX 22 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 326868 LINE INDEX 23 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 340596 LINE INDEX 24 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 354324 LINE INDEX 25 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 368052 LINE INDEX 26 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 381780 LINE INDEX 27 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 395508 LINE INDEX 28 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 409236 LINE INDEX 29 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 422964 LINE INDEX 30 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 436692 LINE INDEX 31 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 450420 LINE INDEX 32 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 464148 LINE INDEX 33 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 477876 LINE INDEX 34 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 491604 LINE INDEX 35 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 505332 LINE INDEX 36 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 519060 LINE INDEX 37 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 532788 LINE INDEX 38 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 546516 LINE INDEX 39 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 560244 LINE INDEX 40 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 573972 LINE INDEX 41 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 587700 LINE INDEX 42 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 601428 LINE INDEX 43 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 615156 LINE INDEX 44 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 628884 LINE INDEX 45 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 642612 LINE INDEX 46 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 656340 LINE INDEX 47 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 670068 LINE INDEX 48 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 683796 LINE INDEX 49 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 697524 LINE INDEX 50 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 711252 LINE INDEX 51 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 724980 LINE INDEX 52 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 738708 LINE INDEX 53 START LINE 54 END LINE 108 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 11124 LINE INDEX 54 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 24852 LINE INDEX 55 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 38580 LINE INDEX 56 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 52308 LINE INDEX 57 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 66036 LINE INDEX 58 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 79764 LINE INDEX 59 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 93492 LINE INDEX 60 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 107220 LINE INDEX 61 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 120948 LINE INDEX 62 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 134676 LINE INDEX 63 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 148404 LINE INDEX 64 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 162132 LINE INDEX 65 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 175860 LINE INDEX 66 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 189588 LINE INDEX 67 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 203316 LINE INDEX 68 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 217044 LINE INDEX 69 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 230772 LINE INDEX 70 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 244500 LINE INDEX 71 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 258228 LINE INDEX 72 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 271956 LINE INDEX 73 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 285684 LINE INDEX 74 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 299412 LINE INDEX 75 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 313140 LINE INDEX 76 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 326868 LINE INDEX 77 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 340596 LINE INDEX 78 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 354324 LINE INDEX 79 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 368052 LINE INDEX 80 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 381780 LINE INDEX 81 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 395508 LINE INDEX 82 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 409236 LINE INDEX 83 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 422964 LINE INDEX 84 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 436692 LINE INDEX 85 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 450420 LINE INDEX 86 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 464148 LINE INDEX 87 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 477876 LINE INDEX 88 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 491604 LINE INDEX 89 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 505332 LINE INDEX 90 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 519060 LINE INDEX 91 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 532788 LINE INDEX 92 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 546516 LINE INDEX 93 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 560244 LINE INDEX 94 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 573972 LINE INDEX 95 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 587700 LINE INDEX 96 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 601428 LINE INDEX 97 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 615156 LINE INDEX 98 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 628884 LINE INDEX 99 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 642612 LINE INDEX 100 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 656340 LINE INDEX 101 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 670068 LINE INDEX 102 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 683796 LINE INDEX 103 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 697524 LINE INDEX 104 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 711252 LINE INDEX 105 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 724980 LINE INDEX 106 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 738708 LINE INDEX 107 START LINE 108 END LINE 162 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 11124 LINE INDEX 108 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 24852 LINE INDEX 109 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 38580 LINE INDEX 110 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 52308 LINE INDEX 111 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 66036 LINE INDEX 112 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 79764 LINE INDEX 113 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 93492 LINE INDEX 114 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 107220 LINE INDEX 115 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 120948 LINE INDEX 116 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 134676 LINE INDEX 117 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 148404 LINE INDEX 118 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 162132 LINE INDEX 119 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 175860 LINE INDEX 120 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 189588 LINE INDEX 121 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 203316 LINE INDEX 122 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 217044 LINE INDEX 123 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 230772 LINE INDEX 124 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 244500 LINE INDEX 125 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 258228 LINE INDEX 126 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 271956 LINE INDEX 127 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 285684 LINE INDEX 128 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 299412 LINE INDEX 129 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 313140 LINE INDEX 130 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 326868 LINE INDEX 131 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 340596 LINE INDEX 132 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 354324 LINE INDEX 133 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 368052 LINE INDEX 134 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 381780 LINE INDEX 135 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 395508 LINE INDEX 136 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 409236 LINE INDEX 137 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 422964 LINE INDEX 138 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 436692 LINE INDEX 139 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 450420 LINE INDEX 140 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 464148 LINE INDEX 141 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 477876 LINE INDEX 142 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 491604 LINE INDEX 143 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 505332 LINE INDEX 144 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 519060 LINE INDEX 145 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 532788 LINE INDEX 146 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 546516 LINE INDEX 147 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 560244 LINE INDEX 148 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 573972 LINE INDEX 149 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 587700 LINE INDEX 150 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 601428 LINE INDEX 151 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 615156 LINE INDEX 152 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 628884 LINE INDEX 153 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 642612 LINE INDEX 154 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 656340 LINE INDEX 155 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 670068 LINE INDEX 156 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 683796 LINE INDEX 157 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 697524 LINE INDEX 158 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 711252 LINE INDEX 159 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 724980 LINE INDEX 160 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 738708 LINE INDEX 161 START LINE 162 END LINE 216 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 11124 LINE INDEX 162 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 24852 LINE INDEX 163 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 38580 LINE INDEX 164 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 52308 LINE INDEX 165 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 66036 LINE INDEX 166 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 79764 LINE INDEX 167 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 93492 LINE INDEX 168 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 107220 LINE INDEX 169 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 120948 LINE INDEX 170 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 134676 LINE INDEX 171 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 148404 LINE INDEX 172 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 162132 LINE INDEX 173 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 175860 LINE INDEX 174 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 189588 LINE INDEX 175 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 203316 LINE INDEX 176 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 217044 LINE INDEX 177 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 230772 LINE INDEX 178 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 244500 LINE INDEX 179 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 258228 LINE INDEX 180 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 271956 LINE INDEX 181 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 285684 LINE INDEX 182 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 299412 LINE INDEX 183 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 313140 LINE INDEX 184 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 326868 LINE INDEX 185 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 340596 LINE INDEX 186 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 354324 LINE INDEX 187 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 368052 LINE INDEX 188 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 381780 LINE INDEX 189 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 395508 LINE INDEX 190 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 409236 LINE INDEX 191 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 422964 LINE INDEX 192 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 436692 LINE INDEX 193 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 450420 LINE INDEX 194 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 464148 LINE INDEX 195 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 477876 LINE INDEX 196 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 491604 LINE INDEX 197 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 505332 LINE INDEX 198 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 519060 LINE INDEX 199 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 532788 LINE INDEX 200 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 546516 LINE INDEX 201 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 560244 LINE INDEX 202 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 573972 LINE INDEX 203 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 587700 LINE INDEX 204 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 601428 LINE INDEX 205 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 615156 LINE INDEX 206 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 628884 LINE INDEX 207 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 642612 LINE INDEX 208 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 656340 LINE INDEX 209 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 670068 LINE INDEX 210 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 683796 LINE INDEX 211 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 697524 LINE INDEX 212 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 711252 LINE INDEX 213 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 724980 LINE INDEX 214 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 738708 LINE INDEX 215 START LINE 216 END LINE 221 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 11124 LINE INDEX 216 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 24852 LINE INDEX 217 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 38580 LINE INDEX 218 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 52308 LINE INDEX 219 LOGICAL Y 0 LOGICAL X 0 START POSITION 0 BASE LINE 66036 LINE INDEX 220 From mhenriquezs at terra.cl Wed Apr 16 13:30:16 2008 From: mhenriquezs at terra.cl (Mauricio Henriquez) Date: Wed, 16 Apr 2008 13:30:16 -0400 Subject: [Gtk-sharp-list] Gtk.Image "refresh" image area In-Reply-To: <4804C7CF.5070303@terra.cl> References: <4804C7CF.5070303@terra.cl> Message-ID: <480637A8.4040308@terra.cl> ok, i fix my problem and now i have a nice widget that can be drag and drop from monodevelop toolbox and i can set the v4l source or file and works nice and don't block the main app...if someone is interesting in such kind a widget please let me know... thanks anyway Mauricio Mauricio Henriquez wrote: > Hi Guys: > > My name is Mauricio and this is my first post to the list, so hi to all!!. > > I'm playing around a lot with the Gtk.Image + Pixmap and Pixbuf types > in mono/gtk-sharp to build a VideoPlayer widget with the ISE.Video > library from the Icarus project (http://icarus.sourceforge.net/), but > now I'm a little confuse about the pixmap and pixbuf and convertions > between both and also about the gtk.image :-S , let me explain the > situation and please be pattience with my poor English: > > The ise.video library works as a wrapper for Tao.FFmpeg and let us to > work with a "Decoder" that can be used to decode a video file, images > from URLs or even from v4l source, the ise.video library expose a number > of "video handlers" for different scenarios, like a "texture" one to be > used in opengl scenes, a "Bitmap handler" to work in winforms scenarios > (I allready have a primary working version of the videoplayer for > WinForms and run nice in mono/linux in a winform app showing videos and > also my webcam!!, very cool!!), and also a "Pixbuf handler" to use in > Gtk# scenarios. Right now I have a simple "pixbuf handler" in a Gtk# app > with a Gtk.Image widget, this example app is capable of show a video > file or a v4l source in a gtk.image widget allmost without problems... > Rigth now, the idea is have a custom widget capable of do all the needed > configuration "internally" (decoder configuration, etc..), for the > winform videoplayer version we do that creating a class the inherit from > a simple PictureBox control, so the idea is to do something simillar > here (I know that may be you are goin to recomned to use some kind of > opengl widget for intensive graphic things, but the current state of > gtkopenglarea is not somehting that we whant right now and can be used > in a "version 2" of the gtk-videoplayer). > My problem right now is that I have a VideoPlayer class that inherit > from Gtk.Image and add a public "Play" method, the "play" method do all > the configuration needed by the decoder and begin the "frame reading > loop" (I know that I can have problems related to block the main gtk app > loop, but right now that is my second concern :-) , then in each > "reading" the "Pixbuf handler" return a updated "frame" (of pixbuf type) > and I need to set the "frame" to the internall Pixbuf member of the > widget, I do that with a simple: this.Pixbuf = PixbufHandler.frame; but > then I need to force for a "update" or "refresh" of the widget to > actually see the image displayed and that is the beggining of my > problems. How can I do that in a simple way? > > Previously in the simple pixbuf handler test (the one with a simple > gtk.image widget in a gtk# window) I be able to call to the > this.GdkWindow.ProcessUpdates(true); becouse the gtk.image was in the > gtk# window, so calling to the ProcessUpdates refresh all the childs and > with that all OK...but right now is more dificult to me, becouse inside > my custom widget the GdkWindow return "null" (I don't know way...). I > also try with the this.QueueDrawArea(0, 0, 800, 340); inside my custom > widget but to work witht the "Queue" methods I need to also use the > Configure and Expose events and that force me to do some type > convertions between PixBuf and pixmap...and is kind of confuse to me, so > probably exist a more "direct"way to update the widget screen...I also > try to inherit from the DrawingArea widget but also force me to do some > convertions... > > Sorry for the long explanation but i think that is needed to understed > what I'm trying to do.. > > Any sugestion is apreciated... > > In advance thank you.. > > Mauricio > > > > _______________________________________________ > 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 Apr 17 10:29:15 2008 From: monouser at gmail.com (Darwin Reynoso) Date: Thu, 17 Apr 2008 10:29:15 -0400 Subject: [Gtk-sharp-list] USB Library Message-ID: Hi, does anyone know of any usb library for mono? From jdluzen at gmail.com Thu Apr 17 10:34:14 2008 From: jdluzen at gmail.com (Joe Dluzen) Date: Thu, 17 Apr 2008 10:34:14 -0400 Subject: [Gtk-sharp-list] USB Library In-Reply-To: References: Message-ID: http://www.icsharpcode.net/OpenSource/SharpUSBLib/default.aspx is the only one that I know of, but I haven't used it. j On Thu, Apr 17, 2008 at 10:29 AM, Darwin Reynoso wrote: > Hi, does anyone know of any usb library for mono? > _______________________________________________ > Gtk-sharp-list maillist - Gtk-sharp-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/gtk-sharp-list > From vladimir.giszpenc at gmail.com Thu Apr 17 14:57:44 2008 From: vladimir.giszpenc at gmail.com (Vladimir Giszpenc) Date: Thu, 17 Apr 2008 14:57:44 -0400 Subject: [Gtk-sharp-list] removing Maximize Message-ID: <8ed5cbac0804171157w3fbc3b9enabdeb355e0b5a5de@mail.gmail.com> Hi, I am using Gtk.AboutDialog() and I wanted to hide the maximize button. I tried aboutDialog.TypeHint = WindowTypeHint.Menu; but it did not work. Is there a way to hide these buttons? The dialog is not resizable but that makes no difference. Thanks, Vlad From mkestner at gmail.com Thu Apr 17 17:37:27 2008 From: mkestner at gmail.com (Mike Kestner) Date: Thu, 17 Apr 2008 16:37:27 -0500 Subject: [Gtk-sharp-list] removing Maximize In-Reply-To: <8ed5cbac0804171157w3fbc3b9enabdeb355e0b5a5de@mail.gmail.com> References: <8ed5cbac0804171157w3fbc3b9enabdeb355e0b5a5de@mail.gmail.com> Message-ID: <1208468247.9654.190.camel@t61p.site> On Thu, 2008-04-17 at 14:57 -0400, Vladimir Giszpenc wrote: > Is there a way to hide these buttons? The short answer is probably "no". Slightly less succinct: not reliably. Gtk# is cross-platform, and on X11, the window manager has much latitude to ignore requests from applications to manage this stuff, so behavior will vary widely from window manager to window manager. There are some gdkwindow properties that can be set using the freedesktop.org window manager spec, but that assumes the window manager will respect them, which is not guaranteed. If you are asking about Windows, you may be able to dig into some winapi pinvokes to make it happen. Bottom line, I think Gtk mainly tries to blend in to the system it is running on, so it lets the host windowing environment control the management of window decorations for the most part. For what it's worth, I see this as a strength of Gtk, not a weakness. Opening up all this decoration stuff to every application developer's whim just makes for inconsistent user interfaces, and in many cases for very little gain. Exactly what is the harm of having a Maximize button on your About dialog? No sane user is going to click it, and even if an insane one did, what harm will it do? ;-) Perhaps others have some specific hacks they've discovered to accomplish things like this. If so, a tutorial on the wiki at http://mono-project.com would be great, so that I can refer people to that from now on. ;-) -- Mike Kestner From cdhowie at gmail.com Thu Apr 17 17:32:23 2008 From: cdhowie at gmail.com (Chris Howie) Date: Thu, 17 Apr 2008 17:32:23 -0400 Subject: [Gtk-sharp-list] removing Maximize In-Reply-To: <1208468247.9654.190.camel@t61p.site> References: <8ed5cbac0804171157w3fbc3b9enabdeb355e0b5a5de@mail.gmail.com> <1208468247.9654.190.camel@t61p.site> Message-ID: <3d2f29dc0804171432m77ac198v21c18f2971ef095c@mail.gmail.com> On Thu, Apr 17, 2008 at 5:37 PM, Mike Kestner wrote: > If you are asking about Windows, you may be able to dig into some winapi > pinvokes to make it happen. AFAIK, a Gdk.Window when properly configured will P/Invoke this on Windows and do the Right Thing on Linux, etc. Vladimir, try using Gdk.Window.GetDecorations/SetDecorations to accomplish what you want. You can obtain the Gdk.Window from a Gtk.Window through the Gtk.Window.GdkWindow property (if memory serves). -- Chris Howie http://www.chrishowie.com http://en.wikipedia.org/wiki/User:Crazycomputers From W.Mauer at top-soft.info Sat Apr 19 06:15:27 2008 From: W.Mauer at top-soft.info (Wolfgang Mauer) Date: Sat, 19 Apr 2008 12:15:27 +0200 Subject: [Gtk-sharp-list] CheckBox Message-ID: <200804191215.27306.W.Mauer@top-soft.info> Hi all, how can i put the text of a checkbox on the left site of the checkmark? / Wolfgang From peter at peterjohanson.com Sat Apr 19 14:02:40 2008 From: peter at peterjohanson.com (Peter Johanson) Date: Sat, 19 Apr 2008 11:02:40 -0700 Subject: [Gtk-sharp-list] CheckBox In-Reply-To: <200804191215.27306.W.Mauer@top-soft.info> References: <200804191215.27306.W.Mauer@top-soft.info> Message-ID: <20080419180239.GC1867@butchest.cubesearch.com> On Sat, Apr 19, 2008 at 12:15:27PM +0200, Wolfgang Mauer wrote: > Hi all, > how can i put the text of a checkbox on the left site of the checkmark? You can set the Gtk.Widget.Direction property to Gtk.TextDirection.Rtl (right-to-left) on the CheckButton, and it will switch the order. This may not be the perfectly "correct" way, but is certainly the easiest I can think of. -pete From pipiten at gmail.com Sun Apr 20 09:43:05 2008 From: pipiten at gmail.com (Pedro Guridi) Date: Sun, 20 Apr 2008 10:43:05 -0300 Subject: [Gtk-sharp-list] Gtk.TextView space separated values Message-ID: <930bfd5c0804200643y59306263rbdceed2aad1a171a@mail.gmail.com> Hi all, I have a file with space separated values, which I load it into a TextView. This it's an example how it looks like when I open it in gedit, or if I just print it line by line to the terminal with Console.write() : ... 1277 5412L2 1 5 0 0 00:07 1 LIS 1277 5413L2 1 5 0 0 00:07 1 LIS 1277 5414L2 1 5 0 0 00:07 1 LIS 1127 5355L2 1 5 1000 25 02:00 5 Pampa 1127 5353L2 1 5 1000 25 01:40 5 Pampa .. But when I load it into the textview, some columns position changes, like this: 1277 5412L2 1 5 0 0 00:07 1 LIS 1277 5413L2 1 5 0 0 00:07 1 LIS 1277 5414L2 1 5 0 0 00:07 1 LIS 1127 5355L2 1 5 1000 25 02:00 5 Pampa 1127 5353L2 1 5 1000 25 01:40 5 Pampa I need to find a way to be able to show the text in the correct format ( maybe a fixed font, or a Gtk.TextTag? just guessing.. ) I would appreciate any help, thanks in advance, Mono version: 1.9 Gtk-Sharp version: 2.10.0 Ubuntu Gutsy x32. Pedro Guridi From pipiten at gmail.com Sun Apr 20 09:45:53 2008 From: pipiten at gmail.com (Pedro Guridi) Date: Sun, 20 Apr 2008 10:45:53 -0300 Subject: [Gtk-sharp-list] Gtk.TextView, space separated values Message-ID: <930bfd5c0804200645t573f4ae7gb26d487bda855eec@mail.gmail.com> (sorry the spam.. I forgot the proper subject.., my apologies..) Hi all, I have a file with space separated values, which I load it into a TextView. This it's an example how it looks like when I open it in gedit, or if I just print it line by line to the terminal with Console.write() : ... 1277 5412L2 1 5 0 0 00:07 1 LIS 1277 5413L2 1 5 0 0 00:07 1 LIS 1277 5414L2 1 5 0 0 00:07 1 LIS 1127 5355L2 1 5 1000 25 02:00 5 Pampa 1127 5353L2 1 5 1000 25 01:40 5 Pampa .. But when I load it into the textview, some columns position changes, like this: 1277 5412L2 1 5 0 0 00:07 1 LIS 1277 5413L2 1 5 0 0 00:07 1 LIS 1277 5414L2 1 5 0 0 00:07 1 LIS 1127 5355L2 1 5 1000 25 02:00 5 Pampa 1127 5353L2 1 5 1000 25 01:40 5 Pampa I need to find a way to be able to show the text in the correct format ( maybe a fixed font, or a Gtk.TextTag? just guessing.. ) I would appreciate any help, thanks in advance, Mono version: 1.9 Gtk-Sharp version: 2.10.0 Ubuntu Gutsy x32. Pedro Guridi From monouser at gmail.com Sun Apr 20 11:42:07 2008 From: monouser at gmail.com (Darwin Reynoso) Date: Sun, 20 Apr 2008 11:42:07 -0400 Subject: [Gtk-sharp-list] Root Access Message-ID: Hi, does anyone knows how to execute a program with root access. this is what i'm doing... protected virtual void onErase (object sender, System.EventArgs e) { Process pc = new Process(); pc.StartInfo.FileName = "/home/user/bin/usb_pickit"; pc.StartInfo.Arguments = "-e"; pc.StartInfo.RedirectStandardOutput = false; pc.Start(); } but i get a console output saying that i need super user power and this is how i do it within a console sudo /home/user/bin/usb_pickit -e any ideas please thanks From awilliam at whitemice.org Sun Apr 20 12:01:25 2008 From: awilliam at whitemice.org (Adam Tauno Williams) Date: Sun, 20 Apr 2008 12:01:25 -0400 Subject: [Gtk-sharp-list] Root Access In-Reply-To: References: Message-ID: <1208707285.6965.1.camel@aleph> On Sun, 2008-04-20 at 11:42 -0400, Darwin Reynoso wrote: > Hi, > does anyone knows how to execute a program with root access. > this is what i'm doing... > protected virtual void onErase (object sender, System.EventArgs e) > { > Process pc = new Process(); > > pc.StartInfo.FileName = "/home/user/bin/usb_pickit"; > pc.StartInfo.Arguments = "-e"; > pc.StartInfo.RedirectStandardOutput = false; > pc.Start(); > > } > but i get a console output saying that i need super user power and > this is how i do it within a console > sudo /home/user/bin/usb_pickit -e any ideas please Set uid usb_pickit (probably a bad idea), use gnomesu (not a bad idea), or if you are on a Kerberos network (best idea) allocate privileges to execute the program a root via .kusers, etc... and execute it with ksu. From lordphoenix at free.fr Sun Apr 20 11:20:30 2008 From: lordphoenix at free.fr (lordphoenix) Date: Sun, 20 Apr 2008 17:20:30 +0200 Subject: [Gtk-sharp-list] Gtk.TextView space separated values In-Reply-To: <930bfd5c0804200643y59306263rbdceed2aad1a171a@mail.gmail.com> References: <930bfd5c0804200643y59306263rbdceed2aad1a171a@mail.gmail.com> Message-ID: <20080420172030.3e21c28f@free.fr> try to use a non proportional font in your treeview -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: not available Url : http://lists.ximian.com/pipermail/gtk-sharp-list/attachments/20080420/8dbf4ed9/attachment.bin From bgryderclock at gmail.com Sun Apr 20 17:20:27 2008 From: bgryderclock at gmail.com (Brian Gryder) Date: Sun, 20 Apr 2008 17:20:27 -0400 Subject: [Gtk-sharp-list] Simple Audio Test - Gnome.Sound.Play method? Message-ID: <5e06ea9a0804201420t150829d3reb79c679e0e92940@mail.gmail.com> I am an novice C# programmer. I am experimenting with GTK# and am trying to play audio on a button click with the Gnome.Sound.Play method. It will compile but not play audio. What is correct usage of the Gnome.Sound.Play method? ------------------------------------------------------------------------------------- using Glade; using Gtk; using System; using Gnome; class myWindow { // start class public myWindow () { // start mywindow Glade.XML gui = new Glade.XML ("./test2/test2.glade","window1",""); gui.Autoconnect (this); } // end mywindow void on_button_clicked (object o,EventArgs e) { //start click event Console.WriteLine ("button clicked") * Gnome.Sound.Init ("/home/user/test.wav"); //<--------is this correct? Gnome.Sound.Play ("/home/user/test.wav"); //<--------is this correct?* } //end click event } // End class class theotherpart { // start class static void Main () { //start main Gtk.Application.Init (); myWindow W = new myWindow (); Gtk.Application.Run (); } //End main } // End class -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/gtk-sharp-list/attachments/20080420/1d995b62/attachment.html From jonpryor at vt.edu Mon Apr 21 08:45:31 2008 From: jonpryor at vt.edu (Jonathan Pryor) Date: Mon, 21 Apr 2008 08:45:31 -0400 Subject: [Gtk-sharp-list] Root Access In-Reply-To: References: Message-ID: <1208781931.6224.10.camel@lina.magi.jprl.com> On Sun, 2008-04-20 at 11:42 -0400, Darwin Reynoso wrote: > pc.StartInfo.FileName = "/home/user/bin/usb_pickit"; > pc.StartInfo.Arguments = "-e"; > > this is how i do it within a console > sudo /home/user/bin/usb_pickit -e any ideas please One of these things is not like the other. One uses sudo and one doesn't. :-) You might try changing your C# code to be: pc.StartInfo.FileName = "/usr/bin/sudo"; pc.StartInfo.Arguments = "/home/user/bin/usb_pickit -e"; - Jon From m.j.hutchinson at gmail.com Mon Apr 21 15:02:31 2008 From: m.j.hutchinson at gmail.com (Michael Hutchinson) Date: Mon, 21 Apr 2008 15:02:31 -0400 Subject: [Gtk-sharp-list] Root Access In-Reply-To: <1208781931.6224.10.camel@lina.magi.jprl.com> References: <1208781931.6224.10.camel@lina.magi.jprl.com> Message-ID: On Mon, Apr 21, 2008 at 8:45 AM, Jonathan Pryor wrote: > On Sun, 2008-04-20 at 11:42 -0400, Darwin Reynoso wrote: > > > pc.StartInfo.FileName = "/home/user/bin/usb_pickit"; > > pc.StartInfo.Arguments = "-e"; > > > > > this is how i do it within a console > > sudo /home/user/bin/usb_pickit -e any ideas please > > One of these things is not like the other. One uses sudo and one > doesn't. :-) > > You might try changing your C# code to be: > > > pc.StartInfo.FileName = "/usr/bin/sudo"; > pc.StartInfo.Arguments = "/home/user/bin/usb_pickit -e"; > > - Jon Assuming it's a GUI app on a recent distro, try xdg-su instead of sudo, as it'll launch a GUI prompt for the password. -- Michael Hutchinson http://mjhutchinson.com From m.j.hutchinson at gmail.com Mon Apr 21 15:15:45 2008 From: m.j.hutchinson at gmail.com (Michael Hutchinson) Date: Mon, 21 Apr 2008 15:15:45 -0400 Subject: [Gtk-sharp-list] Simple Audio Test - Gnome.Sound.Play method? In-Reply-To: <5e06ea9a0804201420t150829d3reb79c679e0e92940@mail.gmail.com> References: <5e06ea9a0804201420t150829d3reb79c679e0e92940@mail.gmail.com> Message-ID: On Sun, Apr 20, 2008 at 5:20 PM, Brian Gryder wrote: > I am an novice C# programmer. I am experimenting with GTK# and am trying to > play audio on a button click with the Gnome.Sound.Play method. It will > compile but not play audio. What is correct usage of the Gnome.Sound.Play > method? > > ------------------------------------------------------------------------------------- > using Glade; > using Gtk; > using System; > using Gnome; > > class myWindow > { // start class > public myWindow () > > { // start mywindow > Glade.XML gui = new Glade.XML ("./test2/test2.glade","window1",""); > gui.Autoconnect (this); > } // end mywindow > > void on_button_clicked (object o,EventArgs e) > { //start click event > Console.WriteLine ("button clicked") > Gnome.Sound.Init ("/home/user/test.wav"); //<--------is this > correct? > Gnome.Sound.Play ("/home/user/test.wav"); //<--------is this > correct? > } //end click event > > } // End class > > class theotherpart > > { // start class > static void Main () > { //start main > Gtk.Application.Init (); > myWindow W = new myWindow (); > Gtk.Application.Run (); > } //End main > } // End class > > _______________________________________________ > Gtk-sharp-list maillist - Gtk-sharp-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/gtk-sharp-list > > As far as I can tell from the GNOME docs (http://library.gnome.org/devel/libgnome/stable/libgnome-gnome-sound.html) and the parameter names in the GNOME# API (http://www.go-mono.com/docs/monodoc.ashx?tlink=4 at ecma%3a535%23Sound%2fM%2f3), this GNOME sound API works by connecting to an ESD sound player daemon. The Init method takes the hostname of this daemon. Normally I'd expect that you'd use "localhost" for the local machine, unless you want to play sound over the network :-) Hence the following probably works: Gnome.Sound.Init ("localhost"); Gnome.Sound.Play ("/home/user/test.wav"); -- Michael Hutchinson http://mjhutchinson.com From mtausig at fsmat.at Tue Apr 22 05:31:20 2008 From: mtausig at fsmat.at (Mathias Tausig) Date: Tue, 22 Apr 2008 11:31:20 +0200 (CEST) Subject: [Gtk-sharp-list] Make TreeView react to a single click Message-ID: <63341.195.64.3.50.1208856680.squirrel@fsmat.at> Hy! I have a TreeView widget and I want it to callback whenever some row is selected. My problem is that RowActivated onyl reacts on a double-click. I also tried CursorChanged, but that didn't do anything at all. cheers Mathias From mikkel at linet.dk Tue Apr 22 05:41:54 2008 From: mikkel at linet.dk (Mikkel Kruse Johnsen) Date: Tue, 22 Apr 2008 11:41:54 +0200 Subject: [Gtk-sharp-list] Make TreeView react to a single click In-Reply-To: <63341.195.64.3.50.1208856680.squirrel@fsmat.at> References: <63341.195.64.3.50.1208856680.squirrel@fsmat.at> Message-ID: <1208857314.2693.1.camel@tux.lib.cbs.dk> Hi Mathias Use this Event: treeview.Selection.Changed /Mikkel On Tue, 2008-04-22 at 11:31 +0200, Mathias Tausig wrote: > Hy! > > I have a TreeView widget and I want it to callback whenever some row is > selected. My problem is that RowActivated onyl reacts on a double-click. I > also tried CursorChanged, but that didn't do anything at all. > > cheers > Mathias > > _______________________________________________ > Gtk-sharp-list maillist - Gtk-sharp-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/gtk-sharp-list 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/20080422/9b07418e/attachment-0001.html From adam at morrison-ind.com Tue Apr 22 09:04:22 2008 From: adam at morrison-ind.com (Adam Tauno Williams) Date: Tue, 22 Apr 2008 09:04:22 -0400 Subject: [Gtk-sharp-list] Simple Audio Test - Gnome.Sound.Play method? In-Reply-To: References: <5e06ea9a0804201420t150829d3reb79c679e0e92940@mail.gmail.com> Message-ID: <20080422090422.wdrlye6aok4occgk@www.mormail.com> > As far as I can tell from the GNOME docs > (http://library.gnome.org/devel/libgnome/stable/libgnome-gnome-sound.html) > and the parameter names in the GNOME# API > (http://www.go-mono.com/docs/monodoc.ashx?tlink=4 at ecma%3a535%23Sound%2fM%2f3), > this GNOME sound API works by connecting to an ESD sound player > daemon. The Init method takes the hostname of this daemon. Normally > I'd expect that you'd use "localhost" for the local machine, unless > you want to play sound over the network :-) > Hence the following probably works: > Gnome.Sound.Init ("localhost"); > Gnome.Sound.Play ("/home/user/test.wav"); I believe it is supposed to be localhost unless the ESPEAKER environment variable is defined. ESPEAKER acts like DISPLAY, except it is for audio. This way users of thin-clients (like LTSP) get their audio locally. I haven't used it from Mono but it works quite well as long as your network isn't choked. A nice behavior would be for Gnome.Sound to default to ESPEAKER or localhost. From slomo at circular-chaos.org Tue Apr 22 09:06:15 2008 From: slomo at circular-chaos.org (Sebastian =?ISO-8859-1?Q?Dr=F6ge?=) Date: Tue, 22 Apr 2008 15:06:15 +0200 Subject: [Gtk-sharp-list] Simple Audio Test - Gnome.Sound.Play method? In-Reply-To: <20080422090422.wdrlye6aok4occgk@www.mormail.com> References: <5e06ea9a0804201420t150829d3reb79c679e0e92940@mail.gmail.com> <20080422090422.wdrlye6aok4occgk@www.mormail.com> Message-ID: <1208869575.25571.0.camel@asgard.lan> Am Dienstag, den 22.04.2008, 09:04 -0400 schrieb Adam Tauno Williams: > > As far as I can tell from the GNOME docs > > (http://library.gnome.org/devel/libgnome/stable/libgnome-gnome-sound.html) > > and the parameter names in the GNOME# API > > (http://www.go-mono.com/docs/monodoc.ashx?tlink=4 at ecma%3a535%23Sound%2fM%2f3), > > this GNOME sound API works by connecting to an ESD sound player > > daemon. The Init method takes the hostname of this daemon. Normally > > I'd expect that you'd use "localhost" for the local machine, unless > > you want to play sound over the network :-) > > Hence the following probably works: > > Gnome.Sound.Init ("localhost"); > > Gnome.Sound.Play ("/home/user/test.wav"); > > I believe it is supposed to be localhost unless the ESPEAKER > environment variable is defined. ESPEAKER acts like DISPLAY, except > it is for audio. This way users of thin-clients (like LTSP) get their > audio locally. I haven't used it from Mono but it works quite well as > long as your network isn't choked. > > A nice behavior would be for Gnome.Sound to default to ESPEAKER or localhost. Also please note, that the Gnome.Sound API is deprecated and modern systems usually don't use ESD anymore. -------------- 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/20080422/f7326e36/attachment.bin From pipiten at gmail.com Tue Apr 22 12:49:24 2008 From: pipiten at gmail.com (Pedro Guridi) Date: Tue, 22 Apr 2008 13:49:24 -0300 Subject: [Gtk-sharp-list] Gtk.TextView, space separated values In-Reply-To: References: <930bfd5c0804200645t573f4ae7gb26d487bda855eec@mail.gmail.com> Message-ID: <930bfd5c0804220949p2cafb9c5k624104ea8bb54c7f@mail.gmail.com> George, Thanks for your answer!. About the data structure, are coordinates/altitudes for different points (one by line). The reason why I can't use a ListStore, it's because I need the user to select the column containing each value. It's the way that they user will tell to the program "coordinate X it's from column 23 to column 32..", so the program knowns what to read, and import to the database. That's why it's so important the column position. I'm sure that the issue it's the variable-width font in TextView, but I couldn't figure out how to change that behaviour, still. Thanks again.., if anybody knows how to change the font used in TextView,I'll appreciate.. Regards, Pedro Guridi On Tue, Apr 22, 2008 at 12:15 PM, Gergely Kiss wrote: > Hi, > > I don't know what this data structure is, but it looks like a table. Why > don't you put it into a ListStore object and then display in a TreeView? > There's a great tutorial on how to use TreeViews, just follow this link. > > My idea is, that both console windows and gedit use the monospace font, > which is always fixed-width. I don't know anything about the TextView widget > (haven't used so far), but it seems, that it uses a variable-width font > (probably Sans), that's why the text you'd like to display slightly > differently as in gedit. > > I hope, I could help some. > > George > > 2008/4/20 Pedro Guridi : > > > > > > > > (sorry the spam.. I forgot the proper subject.., my apologies..) > > > > > > Hi all, > > > > I have a file with space separated values, which I load it into a > TextView. > > This it's an example how it looks like when I open it in gedit, or if > > I just print it line by line to the terminal with Console.write() : > > > > ... > > 1277 5412L2 1 5 0 0 00:07 1 > LIS > > 1277 5413L2 1 5 0 0 00:07 1 > LIS > > 1277 5414L2 1 5 0 0 00:07 1 > LIS > > 1127 5355L2 1 5 1000 25 02:00 5 > Pampa > > 1127 5353L2 1 5 1000 25 01:40 5 > Pampa > > .. > > > > But when I load it into the textview, some columns position changes, like > this: > > > > 1277 5412L2 1 5 0 0 00:07 1 > LIS > > 1277 5413L2 1 5 0 0 00:07 1 > LIS > > 1277 5414L2 1 5 0 0 00:07 1 > LIS > > 1127 5355L2 1 5 1000 25 02:00 5 > Pampa > > 1127 5353L2 1 5 1000 25 01:40 5 > Pampa > > > > I need to find a way to be able to show the text in the correct format > > ( maybe a fixed font, or a Gtk.TextTag? just guessing.. ) > > > > I would appreciate any help, thanks in advance, > > > > Mono version: 1.9 > > Gtk-Sharp version: 2.10.0 > > Ubuntu Gutsy x32. > > > > > > Pedro Guridi > > _______________________________________________ > > Gtk-sharp-list maillist - Gtk-sharp-list at lists.ximian.com > > http://lists.ximian.com/mailman/listinfo/gtk-sharp-list > > > > From christian.hergert at gmail.com Tue Apr 22 14:34:34 2008 From: christian.hergert at gmail.com (Christian Hergert) Date: Tue, 22 Apr 2008 11:34:34 -0700 Subject: [Gtk-sharp-list] Gtk.TextView, space separated values In-Reply-To: <930bfd5c0804220949p2cafb9c5k624104ea8bb54c7f@mail.gmail.com> References: <930bfd5c0804200645t573f4ae7gb26d487bda855eec@mail.gmail.com> <930bfd5c0804220949p2cafb9c5k624104ea8bb54c7f@mail.gmail.com> Message-ID: <6d4a25b10804221134n2cb5c2fex74a42befcb4827e1@mail.gmail.com> The Gtk.CellRendererText class has properties to set the font. See: Gtk.CellRendererText.Font Gtk.CellRendererText.FontDesc Gtk.CellRendererText.Family and perhaps others. -- Christian On Tue, Apr 22, 2008 at 9:49 AM, Pedro Guridi wrote: > George, > > Thanks for your answer!. > About the data structure, are coordinates/altitudes for different > points (one by line). > The reason why I can't use a ListStore, it's because I need the user > to select the column containing each value. > It's the way that they user will tell to the program "coordinate X > it's from column 23 to column 32..", so the program knowns what to > read, and import to the database. That's why it's so important the > column position. > I'm sure that the issue it's the variable-width font in TextView, but > I couldn't figure out how to change that behaviour, still. > > Thanks again.., if anybody knows how to change the font used in > TextView,I'll appreciate.. > > Regards, > > Pedro Guridi > > > > On Tue, Apr 22, 2008 at 12:15 PM, Gergely Kiss wrote: > > Hi, > > > > I don't know what this data structure is, but it looks like a table. Why > > don't you put it into a ListStore object and then display in a TreeView? > > There's a great tutorial on how to use TreeViews, just follow this link. > > > > My idea is, that both console windows and gedit use the monospace font, > > which is always fixed-width. I don't know anything about the TextView widget > > (haven't used so far), but it seems, that it uses a variable-width font > > (probably Sans), that's why the text you'd like to display slightly > > differently as in gedit. > > > > I hope, I could help some. > > > > George > > > > 2008/4/20 Pedro Guridi : > > > > > > > > > > > > > > (sorry the spam.. I forgot the proper subject.., my apologies..) > > > > > > > > > Hi all, > > > > > > I have a file with space separated values, which I load it into a > > TextView. > > > This it's an example how it looks like when I open it in gedit, or if > > > I just print it line by line to the terminal with Console.write() : > > > > > > ... > > > 1277 5412L2 1 5 0 0 00:07 1 > > LIS > > > 1277 5413L2 1 5 0 0 00:07 1 > > LIS > > > 1277 5414L2 1 5 0 0 00:07 1 > > LIS > > > 1127 5355L2 1 5 1000 25 02:00 5 > > Pampa > > > 1127 5353L2 1 5 1000 25 01:40 5 > > Pampa > > > .. > > > > > > But when I load it into the textview, some columns position changes, like > > this: > > > > > > 1277 5412L2 1 5 0 0 00:07 1 > > LIS > > > 1277 5413L2 1 5 0 0 00:07 1 > > LIS > > > 1277 5414L2 1 5 0 0 00:07 1 > > LIS > > > 1127 5355L2 1 5 1000 25 02:00 5 > > Pampa > > > 1127 5353L2 1 5 1000 25 01:40 5 > > Pampa > > > > > > I need to find a way to be able to show the text in the correct format > > > ( maybe a fixed font, or a Gtk.TextTag? just guessing.. ) > > > > > > I would appreciate any help, thanks in advance, > > > > > > Mono version: 1.9 > > > Gtk-Sharp version: 2.10.0 > > > Ubuntu Gutsy x32. > > > > > > > > > Pedro Guridi > > > _______________________________________________ > > > Gtk-sharp-list maillist - Gtk-sharp-list at lists.ximian.com > > > http://lists.ximian.com/mailman/listinfo/gtk-sharp-list > > > > > > > > _______________________________________________ > Gtk-sharp-list maillist - Gtk-sharp-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/gtk-sharp-list > From brad at getcoded.net Tue Apr 22 14:43:58 2008 From: brad at getcoded.net (Brad Taylor) Date: Tue, 22 Apr 2008 11:43:58 -0700 Subject: [Gtk-sharp-list] Gtk.TextView, space separated values In-Reply-To: <6d4a25b10804221134n2cb5c2fex74a42befcb4827e1@mail.gmail.com> References: <930bfd5c0804200645t573f4ae7gb26d487bda855eec@mail.gmail.com> <930bfd5c0804220949p2cafb9c5k624104ea8bb54c7f@mail.gmail.com> <6d4a25b10804221134n2cb5c2fex74a42befcb4827e1@mail.gmail.com> Message-ID: <1208889838.857.9.camel@nightcrawler> On Tue, 2008-04-22 at 11:34 -0700, Christian Hergert wrote: > The Gtk.CellRendererText class has properties to set the font. See: > > Gtk.CellRendererText.Font > Gtk.CellRendererText.FontDesc > Gtk.CellRendererText.Family > > and perhaps others. CellRendererText is only used for Gtk.TreeView, not Gtk.TextView. If you want to change the font on Gtk.TextView, the easiest way to do it for the entire view is: my_text_view.ModifyFont (P?ango.FontDescription.FromString ("monospace")); Hope this helps. Cheers, -Brad From christian.hergert at gmail.com Tue Apr 22 15:25:35 2008 From: christian.hergert at gmail.com (Christian Hergert) Date: Tue, 22 Apr 2008 12:25:35 -0700 Subject: [Gtk-sharp-list] Gtk.TextView, space separated values In-Reply-To: <1208889838.857.9.camel@nightcrawler> References: <930bfd5c0804200645t573f4ae7gb26d487bda855eec@mail.gmail.com> <930bfd5c0804220949p2cafb9c5k624104ea8bb54c7f@mail.gmail.com> <6d4a25b10804221134n2cb5c2fex74a42befcb4827e1@mail.gmail.com> <1208889838.857.9.camel@nightcrawler> Message-ID: <6d4a25b10804221225t1fbcd982x9e2b3b5612159133@mail.gmail.com> My mistake, i read to quickly :-) On Tue, Apr 22, 2008 at 11:43 AM, Brad Taylor wrote: > On Tue, 2008-04-22 at 11:34 -0700, Christian Hergert wrote: > > The Gtk.CellRendererText class has properties to set the font. See: > > > > Gtk.CellRendererText.Font > > Gtk.CellRendererText.FontDesc > > Gtk.CellRendererText.Family > > > > and perhaps others. > > CellRendererText is only used for Gtk.TreeView, not Gtk.TextView. > > If you want to change the font on Gtk.TextView, the easiest way to do it > for the entire view is: > > my_text_view.ModifyFont (P?ango.FontDescription.FromString > ("monospace")); > > Hope this helps. > > Cheers, > > -Brad > > > > _______________________________________________ > Gtk-sharp-list maillist - Gtk-sharp-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/gtk-sharp-list > From pipiten at gmail.com Tue Apr 22 17:03:38 2008 From: pipiten at gmail.com (Pedro Guridi) Date: Tue, 22 Apr 2008 18:03:38 -0300 Subject: [Gtk-sharp-list] Gtk.TextView, space separated values In-Reply-To: <6d4a25b10804221225t1fbcd982x9e2b3b5612159133@mail.gmail.com> References: <930bfd5c0804200645t573f4ae7gb26d487bda855eec@mail.gmail.com> <930bfd5c0804220949p2cafb9c5k624104ea8bb54c7f@mail.gmail.com> <6d4a25b10804221134n2cb5c2fex74a42befcb4827e1@mail.gmail.com> <1208889838.857.9.camel@nightcrawler> <6d4a25b10804221225t1fbcd982x9e2b3b5612159133@mail.gmail.com> Message-ID: <930bfd5c0804221403i540a1b18qbd0c9016fd109829@mail.gmail.com> Brad, Thank you very much!.., that did the trick! :) thanks for all.., have a nice day!. Pedro Guridi On Tue, Apr 22, 2008 at 4:25 PM, Christian Hergert wrote: > My mistake, i read to quickly :-) > > > > On Tue, Apr 22, 2008 at 11:43 AM, Brad Taylor wrote: > > On Tue, 2008-04-22 at 11:34 -0700, Christian Hergert wrote: > > > The Gtk.CellRendererText class has properties to set the font. See: > > > > > > Gtk.CellRendererText.Font > > > Gtk.CellRendererText.FontDesc > > > Gtk.CellRendererText.Family > > > > > > and perhaps others. > > > > CellRendererText is only used for Gtk.TreeView, not Gtk.TextView. > > > > If you want to change the font on Gtk.TextView, the easiest way to do it > > for the entire view is: > > > > my_text_view.ModifyFont (P?ango.FontDescription.FromString > > ("monospace")); > > > > Hope this helps. > > > > Cheers, > > > > -Brad > > > > > > > > > > _______________________________________________ > > Gtk-sharp-list maillist - Gtk-sharp-list at lists.ximian.com > > http://lists.ximian.com/mailman/listinfo/gtk-sharp-list > > > -- Pedro Ignacio Guridi Geophysic - Crew 1731 WesternGeco, S.A. Roque S?enz Pe?a 1149 11?, C1035AAG Buenos Aires - Argentina * Email: pguridi at int.westerngeco.slb.com (Tel: +54-221-4820512) (Mobile: +54-221-(15)4976592) From jaebird at gmail.com Thu Apr 24 20:42:05 2008 From: jaebird at gmail.com (Jae Stutzman) Date: Thu, 24 Apr 2008 19:42:05 -0500 Subject: [Gtk-sharp-list] gtk-sharp 2.12 windows binary In-Reply-To: <47E91A74.50300@haneke.de> References: <47E91A74.50300@haneke.de> Message-ID: +1 On Tue, Mar 25, 2008 at 10:29 AM, Elmar Haneke wrote: > Where can I get an Windows-Binary of gtk-sharp v2.12? > > Elmar > _______________________________________________ > Gtk-sharp-list maillist - Gtk-sharp-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/gtk-sharp-list > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/gtk-sharp-list/attachments/20080424/87394730/attachment.html From waschoen at syr.edu Fri Apr 25 09:14:51 2008 From: waschoen at syr.edu (Billy Schoenberg) Date: Fri, 25 Apr 2008 15:14:51 +0200 Subject: [Gtk-sharp-list] gtk-sharp 2.12 windows binary In-Reply-To: References: <47E91A74.50300@haneke.de> Message-ID: I would also like to know where I can get a version of GTK# to develop with and to point my users to when they install my app. Right now I am using an old version 2.8.3 from Novell http://forge.novell.com/modules/xfmod/project/?gtks-inst4win . I tried using the sdk and runtime from the mono website 2.10.3, but there is a known issue there with TreeViews, which I need. They say it was fixed in 2.10.4 but I can't find that or any other newer GTK# SDK which I can use in Visual Studio. I use Visual Studio to develop. Thanks Billy On Fri, Apr 25, 2008 at 2:42 AM, Jae Stutzman wrote: > +1 > > On Tue, Mar 25, 2008 at 10:29 AM, Elmar Haneke wrote: > >> Where can I get an Windows-Binary of gtk-sharp v2.12? >> >> Elmar >> _______________________________________________ >> Gtk-sharp-list maillist - Gtk-sharp-list at lists.ximian.com >> http://lists.ximian.com/mailman/listinfo/gtk-sharp-list >> > > > _______________________________________________ > Gtk-sharp-list maillist - Gtk-sharp-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/gtk-sharp-list > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/gtk-sharp-list/attachments/20080425/6d1d71c7/attachment.html From brad at getcoded.net Fri Apr 25 12:20:10 2008 From: brad at getcoded.net (Brad Taylor) Date: Fri, 25 Apr 2008 09:20:10 -0700 Subject: [Gtk-sharp-list] gtk-sharp 2.12 windows binary In-Reply-To: References: <47E91A74.50300@haneke.de> Message-ID: <1209140410.19184.23.camel@nightcrawler> Hey, On Fri, 2008-04-25 at 15:14 +0200, Billy Schoenberg wrote: > I would also like to know where I can get a version of GTK# to develop > with and to point my users to when they install my app. Right now I > am using an old version 2.8.3 from Novell > http://forge.novell.com/modules/xfmod/project/?gtks-inst4win . I > tried using the sdk and runtime from the mono website 2.10.3, but > there is a known issue there with TreeViews, which I need. They say it > was fixed in 2.10.4 but I can't find that or any other newer GTK# SDK > which I can use in Visual Studio. I use Visual Studio to develop. Your friendly Gtk# for MS .NET installer maintainer here: I was hoping to keep this quiet until everything had been through QA, but -- I've been working off and on for the past couple weeks on a new installer framework[1] using WiX[2] instead of InnoSetup. WiX targets the MSI spec, and as such, supports building installers made up of pluggable components called Merge Modules. The main benefit this brings to the table for Gtk# is that each component (i.e.: Gtk+, Aspell, Poppler, Gtk#, etc) can be maintained as an individual merge module, and later merged into one combined installer with as many or as little merge modules as needed. Merge modules can also be merged into installers for individual applications, but this approach needs more research, as two installers that provide Gtk# would possibly conflict on the system. The end result of this is that it has pushed out my timeline for releasing Gtk# 2.10.4 support until I feel confident that this new framework won't shoot anyone in the foot. This combined with work pulling me in a different direction for the next two or three weeks, mean it's unlikely that I'll have much time to work on the installers in the near term. That being said, it would be helpful if a few steel-toed volunteers could step up and help out with testing and development of these new installers so that it can be released sooner rather than later. If anyone is willing, send me an email, and I can get you set up with experimental builds. As far as Gtk# 2.12 support, it's unlikely that I will have a need for it at Medsphere due to aggressive timelines and the like, so if someone would be willing to step up and work on it, I'd be happy to help out wherever possible. It shouldn't take more than 3-4 hours to set up a build environment in Cygwin, build Gtk# and create a new merge module. Cheers, -Brad -- [1] http://medsphere.org/projects/gtksharp/svn/trunk/ [2] http://wix.sf.net From jaebird at gmail.com Fri Apr 25 12:45:12 2008 From: jaebird at gmail.com (Jae Stutzman) Date: Fri, 25 Apr 2008 11:45:12 -0500 Subject: [Gtk-sharp-list] gtk-sharp 2.12 windows binary In-Reply-To: <1209140410.19184.23.camel@nightcrawler> References: <47E91A74.50300@haneke.de> <1209140410.19184.23.camel@nightcrawler> Message-ID: Count me in. I will probably have some time over the next week or so. I'll see you on IRC. Thanks so much for working on this. Jae -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/gtk-sharp-list/attachments/20080425/4ecb6d73/attachment.html From waschoen at syr.edu Fri Apr 25 13:05:41 2008 From: waschoen at syr.edu (Billy Schoenberg) Date: Fri, 25 Apr 2008 19:05:41 +0200 Subject: [Gtk-sharp-list] gtk-sharp 2.12 windows binary In-Reply-To: References: <47E91A74.50300@haneke.de> <1209140410.19184.23.camel@nightcrawler> Message-ID: Count me in too, if you need my e-mail or contact info tell me. I'll be waiting, this is exactly what I need! Thanks Billy On Fri, Apr 25, 2008 at 6:45 PM, Jae Stutzman wrote: > Count me in. I will probably have some time over the next week or so. I'll > see you on IRC. > > Thanks so much for working on this. > > Jae > > > _______________________________________________ > Gtk-sharp-list maillist - Gtk-sharp-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/gtk-sharp-list > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/gtk-sharp-list/attachments/20080425/63aa6b09/attachment.html From cjac at colliertech.org Fri Apr 25 18:00:32 2008 From: cjac at colliertech.org (C.J. Adams-Collier) Date: Fri, 25 Apr 2008 15:00:32 -0700 Subject: [Gtk-sharp-list] GtkGLArea Sharp for Windows In-Reply-To: References: Message-ID: <1209160832.10706.118.camel@cjac.intra.cardomain.com> Hey there Simon, I've got a win32 box at work I may be able to tinker with this on. More info as it becomes available. Cheers, C.J. On Sun, 2008-04-06 at 11:43 +0200, Simon wrote: > Hi! > > I'm trying to make OpenGL work with Gtk# on the Windows platform. I > stumbled upon GtkGLArea Sharp, which seems like a great tool, the only > problem is that there are (at least to my knowledge) no binaries > available for Win32. Can a port for GtkGLArea-Sharp to Windows be > done? > > I tried to use the DLLs that were used on Linux, but that of course > did not work (all I got was a type exception). I am particulary > looking for "gtkglarea-sharp.dll" and "gtkgkarea-sharp-util.dll" files > for Win32. > > Thanks, take care > Simon > _______________________________________________ > Gtk-sharp-list maillist - Gtk-sharp-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/gtk-sharp-list -------------- 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/20080425/08c25bf8/attachment.bin From talton at gmail.com Sat Apr 26 09:19:27 2008 From: talton at gmail.com (James Talton) Date: Sat, 26 Apr 2008 09:19:27 -0400 Subject: [Gtk-sharp-list] GtkGLArea Sharp for Windows In-Reply-To: <1209160832.10706.118.camel@cjac.intra.cardomain.com> References: <1209160832.10706.118.camel@cjac.intra.cardomain.com> Message-ID: I have an implementation of a GTK GL control that works on windows. I'll gladly send along the code if it will help. On Fri, Apr 25, 2008 at 6:00 PM, C.J. Adams-Collier wrote: > Hey there Simon, > > I've got a win32 box at work I may be able to tinker with this on. More > info as it becomes available. > > Cheers, > > C.J. > > > On Sun, 2008-04-06 at 11:43 +0200, Simon wrote: > > Hi! > > > > I'm trying to make OpenGL work with Gtk# on the Windows platform. I > > stumbled upon GtkGLArea Sharp, which seems like a great tool, the only > > problem is that there are (at least to my knowledge) no binaries > > available for Win32. Can a port for GtkGLArea-Sharp to Windows be > > done? > > > > I tried to use the DLLs that were used on Linux, but that of course > > did not work (all I got was a type exception). I am particulary > > looking for "gtkglarea-sharp.dll" and "gtkgkarea-sharp-util.dll" files > > for Win32. > > > > Thanks, take care > > Simon > > _______________________________________________ > > Gtk-sharp-list maillist - Gtk-sharp-list at lists.ximian.com > > http://lists.ximian.com/mailman/listinfo/gtk-sharp-list > > _______________________________________________ > Gtk-sharp-list maillist - Gtk-sharp-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/gtk-sharp-list > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/gtk-sharp-list/attachments/20080426/20472a3c/attachment-0001.html From simonescu at gmail.com Sat Apr 26 09:29:37 2008 From: simonescu at gmail.com (Simon) Date: Sat, 26 Apr 2008 15:29:37 +0200 Subject: [Gtk-sharp-list] GtkGLArea Sharp for Windows In-Reply-To: References: <1209160832.10706.118.camel@cjac.intra.cardomain.com> Message-ID: Hey guys, that would be great! Thanks, take care, Simon On Sat, Apr 26, 2008 at 3:19 PM, James Talton wrote: > I have an implementation of a GTK GL control that works on windows. I'll > gladly send along the code if it will help. > > > > > On Fri, Apr 25, 2008 at 6:00 PM, C.J. Adams-Collier > wrote: > > > Hey there Simon, > > > > I've got a win32 box at work I may be able to tinker with this on. More > > info as it becomes available. > > > > Cheers, > > > > C.J. > > > > > > > > > > > > On Sun, 2008-04-06 at 11:43 +0200, Simon wrote: > > > Hi! > > > > > > I'm trying to make OpenGL work with Gtk# on the Windows platform. I > > > stumbled upon GtkGLArea Sharp, which seems like a great tool, the only > > > problem is that there are (at least to my knowledge) no binaries > > > available for Win32. Can a port for GtkGLArea-Sharp to Windows be > > > done? > > > > > > I tried to use the DLLs that were used on Linux, but that of course > > > did not work (all I got was a type exception). I am particulary > > > looking for "gtkglarea-sharp.dll" and "gtkgkarea-sharp-util.dll" files > > > for Win32. > > > > > > Thanks, take care > > > Simon > > > _______________________________________________ > > > Gtk-sharp-list maillist - Gtk-sharp-list at lists.ximian.com > > > http://lists.ximian.com/mailman/listinfo/gtk-sharp-list > > > > _______________________________________________ > > Gtk-sharp-list maillist - Gtk-sharp-list at lists.ximian.com > > http://lists.ximian.com/mailman/listinfo/gtk-sharp-list > > > > > > -- Lp, Simon From talton at gmail.com Sat Apr 26 15:40:52 2008 From: talton at gmail.com (James Talton) Date: Sat, 26 Apr 2008 15:40:52 -0400 Subject: [Gtk-sharp-list] GtkGLArea Sharp for Windows In-Reply-To: References: <1209160832.10706.118.camel@cjac.intra.cardomain.com> Message-ID: GTKSharp GLWidget http://www.golem3d.com/?q=node/40 If you compile on Windows it seems to work great on Windows and Linux. For some reason it does not seem to work if compiled on Linux. (That was a while back, it may work.) It is not a wrapper around a c++ version. It performs direct pinvokes to the system libraries. It does allow for a shared context between controls. Feel free to copy/modify/use the code any way you want. - James On Sat, Apr 26, 2008 at 9:29 AM, Simon wrote: > Hey guys, > > that would be great! > > Thanks, take care, > Simon > > On Sat, Apr 26, 2008 at 3:19 PM, James Talton wrote: > > I have an implementation of a GTK GL control that works on windows. > I'll > > gladly send along the code if it will help. > > > > > > > > > > On Fri, Apr 25, 2008 at 6:00 PM, C.J. Adams-Collier < > cjac at colliertech.org> > > wrote: > > > > > Hey there Simon, > > > > > > I've got a win32 box at work I may be able to tinker with this on. > More > > > info as it becomes available. > > > > > > Cheers, > > > > > > C.J. > > > > > > > > > > > > > > > > > > On Sun, 2008-04-06 at 11:43 +0200, Simon wrote: > > > > Hi! > > > > > > > > I'm trying to make OpenGL work with Gtk# on the Windows platform. I > > > > stumbled upon GtkGLArea Sharp, which seems like a great tool, the > only > > > > problem is that there are (at least to my knowledge) no binaries > > > > available for Win32. Can a port for GtkGLArea-Sharp to Windows be > > > > done? > > > > > > > > I tried to use the DLLs that were used on Linux, but that of course > > > > did not work (all I got was a type exception). I am particulary > > > > looking for "gtkglarea-sharp.dll" and "gtkgkarea-sharp-util.dll" > files > > > > for Win32. > > > > > > > > Thanks, take care > > > > Simon > > > > _______________________________________________ > > > > Gtk-sharp-list maillist - Gtk-sharp-list at lists.ximian.com > > > > http://lists.ximian.com/mailman/listinfo/gtk-sharp-list > > > > > > _______________________________________________ > > > Gtk-sharp-list maillist - Gtk-sharp-list at lists.ximian.com > > > http://lists.ximian.com/mailman/listinfo/gtk-sharp-list > > > > > > > > > > > > > > -- > Lp, Simon > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/gtk-sharp-list/attachments/20080426/0f2f6f3f/attachment.html From timothy.howard at gmail.com Sun Apr 27 02:34:16 2008 From: timothy.howard at gmail.com (Tim Howard) Date: Sun, 27 Apr 2008 02:34:16 -0400 Subject: [Gtk-sharp-list] different color rows for GtkTreeView Message-ID: <8d21a9d40804262334x4e21cd03n11cbbaa918bd084e@mail.gmail.com> I think this is appropriate material for this list. I'm trying to have a TreeView with a ListStore have rows that are different colors. I'm pretty sure it's possible, because it looks like it's the case with MonoDevelop and User Tasks/Comments. The question is, how? (Point of clarity: First row be red, second row be green -- that's all. I guess more generally, how do you control the row color as opposed to the column color) Thanks! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/gtk-sharp-list/attachments/20080427/58a7f79d/attachment.html From cdhowie at gmail.com Sun Apr 27 05:09:10 2008 From: cdhowie at gmail.com (Chris Howie) Date: Sun, 27 Apr 2008 05:09:10 -0400 Subject: [Gtk-sharp-list] different color rows for GtkTreeView In-Reply-To: <8d21a9d40804262334x4e21cd03n11cbbaa918bd084e@mail.gmail.com> References: <8d21a9d40804262334x4e21cd03n11cbbaa918bd084e@mail.gmail.com> Message-ID: <3d2f29dc0804270209y72ca2666j69b9a0026d06ff5c@mail.gmail.com> On Sun, Apr 27, 2008 at 2:34 AM, Tim Howard wrote: > I think this is appropriate material for this list. I'm trying to have a > TreeView with a ListStore have rows that are different colors. I'm pretty > sure it's possible, because it looks like it's the case with MonoDevelop and > User Tasks/Comments. The question is, how? > > (Point of clarity: First row be red, second row be green -- that's all. I > guess more generally, how do you control the row color as opposed to the > column color) > > Thanks! That would be controlled by the GTK+ theme selected by the user. Unless you have a really, really, *REALLY* good reason to decide not to honor the user's preferences, you should just stick with the default. -- Chris Howie http://www.chrishowie.com http://en.wikipedia.org/wiki/User:Crazycomputers From christian_hoff at gmx.net Sun Apr 27 06:22:23 2008 From: christian_hoff at gmx.net (Christian Hoff) Date: Sun, 27 Apr 2008 12:22:23 +0200 Subject: [Gtk-sharp-list] gtk-sharp 2.12 windows binary Message-ID: <481453DF.5060600@gmx.net> Hi, I already managed to compile Gtk# 2.12 on a cygwin build environment, but for some reason my compiled Gtk# dlls do not work(as for as I can remember I always got a segfault in Gtk+ when trying to create a new Gtk.Window in a demo app that occured when g_object_ref_sink was called). Becuase I need new features introduced in the 2.12 version(GInterface support for custom the models) my application is currently only running on Linux. However I may be able to give you some hints on how I made it to compile the dlls: In my opinion the best way to compile Gtk# is with an installed Mono environment for windows(download the Mono installer with Gtk# 2.10). For an overview on how to compile the dlls use instructions here: http://www.mono-project.com/Compiling_Mono#Windows_Compilation But the tutorial is quite outdated and needs to be refreshed(maybe someone of the list has write access to the Mono documentation? And why cannot everyone contribute to the docu???) and I spent a whole weekend until I got the dlls compiled. I followed the Gtk# build instructions with the following changes: - I did NOT download anything of .net or the .NET SDK to the path and did not even need to download anything of MS .NET. If you want to use .net to build the binaries, you'd better forget it(csc compiler always complains about invalid characters in one of its parameters and you have the problem with Mono.Cairo(but you may be able to install cairo into the .net GAC) - Also I didn't include any of the Mono directories in the PATH. Instead I set up environment variables like GACUTIL="\"/cygdrive/c/program files/Mono-1.9/bin/mono.exe\" \"C:\Programme\Mono-1.9\lib\mono\1.0\gacutil.exe\"" to make sure these utils are running under mono(and not under .net which will lead to errors). DO NOT ADD the bin directory in the mono root directory to the path as the configure script will then use the old Gtk# 2.10 installation in the bin path - download the Gtk+ 2.12 bundle from www.gtk.org instead of using the download links to old versions in the tutorial If someone could help me with the Gtk+ g_object_ref_sink error I would also volunteer to create working Gtk# 2.12 assemblies; I really do not have any idea where I made an error or where this g_object error came from so I gave up on it. But another thing is much more important: to update this tutorial at the mono website. If someone with write access to the Mono docu would update it(I can write a new version myself) it would be a big step forward. Christian Hoff From mail.gery at gmail.com Sun Apr 27 09:02:33 2008 From: mail.gery at gmail.com (Gergely Kiss) Date: Sun, 27 Apr 2008 15:02:33 +0200 Subject: [Gtk-sharp-list] Fwd: different color rows for GtkTreeView In-Reply-To: References: <8d21a9d40804262334x4e21cd03n11cbbaa918bd084e@mail.gmail.com> <3d2f29dc0804270209y72ca2666j69b9a0026d06ff5c@mail.gmail.com> Message-ID: I checked the Mono Documentation and saw two interesting properties for TreeViews: EvenRowColor and OddRowColor. The only problem is, that both of them are read-only and I found no methods to change their values. I'm sure that the developers of GTK# didn't forget these methods by chance. They probably had a reason to left these methods out. 2008/4/27 Chris Howie : On Sun, Apr 27, 2008 at 2:34 AM, Tim Howard > wrote: > > I think this is appropriate material for this list. I'm trying to have a > > TreeView with a ListStore have rows that are different colors. I'm > pretty > > sure it's possible, because it looks like it's the case with MonoDevelop > and > > User Tasks/Comments. The question is, how? > > > > (Point of clarity: First row be red, second row be green -- that's all. > I > > guess more generally, how do you control the row color as opposed to the > > column color) > > > > Thanks! > > That would be controlled by the GTK+ theme selected by the user. > Unless you have a really, really, *REALLY* good reason to decide not > to honor the user's preferences, you should just stick with the > default. > > -- > Chris Howie > http://www.chrishowie.com > http://en.wikipedia.org/wiki/User:Crazycomputers > _______________________________________________ > Gtk-sharp-list maillist - Gtk-sharp-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/gtk-sharp-list > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/gtk-sharp-list/attachments/20080427/1b0e9cca/attachment-0001.html From adam at morrison-ind.com Sun Apr 27 09:06:35 2008 From: adam at morrison-ind.com (Adam Tauno Williams) Date: Sun, 27 Apr 2008 09:06:35 -0400 Subject: [Gtk-sharp-list] different color rows for GtkTreeView In-Reply-To: <8d21a9d40804262334x4e21cd03n11cbbaa918bd084e@mail.gmail.com> References: <8d21a9d40804262334x4e21cd03n11cbbaa918bd084e@mail.gmail.com> Message-ID: <1209301595.4545.0.camel@aleph> > I think this is appropriate material for this list. I'm trying to have > a TreeView with a ListStore have rows that are different colors. I'm > pretty sure it's possible, because it looks like it's the case with > MonoDevelop s and User Tasks/Comments. The question is, how? > (Point of clarity: First row be red, second row be green -- that's > all. I guess more generally, how do you control the row color as > opposed to the column color) You can set the colors and styles used by the cells of the list. See the Effect(...) method in Note: GUI is just a static class that can store colors for keys, results of ColorForKey is a Gdk.Color. So far the only way I can find to do this is to have a custom renderer for each cell, setup like - objectIdColumn = new Gtk.TreeViewColumn (); ... cell = new Gtk.CellRendererText (); objectIdColumn.PackStart(cell, true); objectIdColumn.SetCellDataFunc(cell, new Gtk.TreeCellDataFunc(RenderObjectId)); view.AppendColumn(objectIdColumn); - and RenderObjectId looks like - protected virtual void RenderObjectId( Gtk.TreeViewColumn _column, Gtk.CellRenderer _cell, Gtk.TreeModel _model, Gtk.TreeIter _iter) { Task task = IterTask(_model, _iter); // just returns the object for this iter if(task == null) return; (_cell as Gtk.CellRendererText).Text = task.ObjectId.ToString(); Effect(_model, _iter, (_cell as Gtk.CellRendererText), task); } - calling Effect(...) applies the effect based on row number [odd vs. even], etc... It is a code-heavy solution but it works very well and is the only I've found to really control the look of the view. From adam at morrison-ind.com Sun Apr 27 08:47:59 2008 From: adam at morrison-ind.com (Adam Tauno Williams) Date: Sun, 27 Apr 2008 08:47:59 -0400 Subject: [Gtk-sharp-list] different color rows for GtkTreeView In-Reply-To: <8d21a9d40804262334x4e21cd03n11cbbaa918bd084e@mail.gmail.com> References: <8d21a9d40804262334x4e21cd03n11cbbaa918bd084e@mail.gmail.com> Message-ID: <1209300479.31101.7.camel@aleph> > I think this is appropriate material for this list. I'm trying to have > a TreeView with a ListStore have rows that are different colors. I'm > pretty sure it's possible, because it looks like it's the case with > MonoDevelop s and User Tasks/Comments. The question is, how? > (Point of clarity: First row be red, second row be green -- that's > all. I guess more generally, how do you control the row color as > opposed to the column color) You can set the colors and styles used by the cells of the list. See the Effect(...) method in Note: GUI is just a static class that can store colors for keys, results of ColorForKey is a Gdk.Color. So far the only way I can find to do this is to have a custom renderer for each cell, setup like - objectIdColumn = new Gt