From alex.launi at gmail.com Wed Jul 2 11:47:47 2008 From: alex.launi at gmail.com (Alex Launi) Date: Wed, 2 Jul 2008 11:47:47 -0400 Subject: [Gtk-sharp-list] Need help (again) with desktop files! Message-ID: <66cdbbc0807020847w3c1aadd1if47590160ac38eca@mail.gmail.com> Hello Gtk# list, I'm trying to parse desktop files in a localizable way, this works, however it gives me all kind of hell in terms of console output. If I change DesktopItemLoadFlags.OnlyIfExists to DesktopItemLoadFlags.NoTranslations, all of my errors go away, but then my calls to GetLocalestring are worthless. It's very frustrating to have all of these Gtk errors being printed non-stop. Does anyone have an idea of how to deal with them? Here is my code, and the output it gives me. [CODE] public ApplicationItem (string desktopFile) { item = DesktopItem.NewFromFile (desktopFile, DesktopItemLoadFlags.OnlyIfExists); if (null == item) throw new Exception (desktopFile + " not found."); } public string Name { get { return item.GetLocalestring ("Name"); } } public string Description { get { return item.GetLocalestring ("Comment"); } } public string Icon { get { return item.GetIcon (IconTheme.Default); } } public string Exec { get { return item.GetString ("Exec"); } } public bool Hidden { get { return item.GetBoolean ("NoDisplay"); } } [/CODE] [OUTPUT] ** (Do:31659): CRITICAL **: gnome_desktop_item_get_boolean: assertion `item != NULL' failed ** (Do:31659): CRITICAL **: gnome_desktop_item_get_localestring: assertion `item != NULL' failed [/OUTPUT] It gives me those two CRITICAL messages about many times each. First around 10 of the ** (Do:29487): CRITICAL **: gnome_desktop_item_get_boolean: assertion `item != NULL' failed and then 50 or more of the other. Thank you for your help. -- --Alex Launi -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/gtk-sharp-list/attachments/20080702/bbefa10a/attachment-0001.html From true.friend2004 at gmail.com Sat Jul 5 03:48:48 2008 From: true.friend2004 at gmail.com (True_Friend) Date: Sat, 5 Jul 2008 00:48:48 -0700 (PDT) Subject: [Gtk-sharp-list] Gtk# class library refrence or manual? Message-ID: <18289807.post@talk.nabble.com> Hi I am a beginner in programming as well in mono/gtk. There are guides available to winforms and windows based application development. But gtk based application devel guides are not. There are not any books even. I tired to find some class/reference manual or something in monodoc on Gtk namespace but there is nothing there as well. I want to know about the classes and methods because gtk is lot different from winforms and it is very annoying sometimes to inability to find a method to do a simple task even e.g. I am trying to find a way to display some text in textview widget cannot find a Textbox.Text equivalent in gtk. Plz refer me some manual or such thing where at least methods and properties are explained of gtk. Regards -- View this message in context: http://www.nabble.com/Gtk--class-library-refrence-or-manual--tp18289807p18289807.html Sent from the Mono - Gtk# mailing list archive at Nabble.com. From count.cb at gmx.net Sat Jul 5 05:30:52 2008 From: count.cb at gmx.net (countcb) Date: Sat, 5 Jul 2008 02:30:52 -0700 (PDT) Subject: [Gtk-sharp-list] Gtk# class library refrence or manual? In-Reply-To: <18289807.post@talk.nabble.com> References: <18289807.post@talk.nabble.com> Message-ID: <18290470.post@talk.nabble.com> The gtk documentation is part of the mono doc. http://www.go-mono.com/docs/ http://www.go-mono.com/docs/ The gtk namespace is in the tree on the left under the node Gnome. Direct link to the gtk namespace: http://www.go-mono.com/docs/index.aspx?tlink=4 at N%3aGtk http://www.go-mono.com/docs/index.aspx?tlink=4 at N%3aGtk -- View this message in context: http://www.nabble.com/Gtk--class-library-refrence-or-manual--tp18289807p18290470.html Sent from the Mono - Gtk# mailing list archive at Nabble.com. From christian_hoff at gmx.net Sat Jul 5 05:36:06 2008 From: christian_hoff at gmx.net (Christian Hoff) Date: Sat, 05 Jul 2008 11:36:06 +0200 Subject: [Gtk-sharp-list] Gtk# class library refrence or manual? In-Reply-To: <18289807.post@talk.nabble.com> References: <18289807.post@talk.nabble.com> Message-ID: <486F4086.5000606@gmx.net> Finding documentation on Gtk# GUI development is really a problem. After some time I found the developer resource section of the Mono page (http://www.mono-project.com/Category:Developer_Resource). The problem with the Mono Wiki in general is that most articles completly outdated and some are full of errors . Generally I prefer MSDN if I can use it. "Normal" visitors are not allowed to change the Mono Wiki. A good way would be to allow changes by users with approval of one of the developers. As I am definitly not the only user who is annoyed by the Wiki(see IggyMa's blog http://iggyma.blogspot.com/2008/06/mono-wiki-or-how-i-learned-to-stop.html for a description that I can completly agree to :-) ) I think I'll write a mail to the Mono list. The same thing can be said about the monodoc documentation. At least the Gtk# section did not get updated recently. Really good documentation on Gtk+ is available on the Gnome website: http://library.gnome.org/devel/references. Most of the information can be used for Gtk# development as well. Christian True_Friend schrieb: > Hi > I am a beginner in programming as well in mono/gtk. There are guides > available to winforms and windows based application development. But gtk > based application devel guides are not. There are not any books even. I > tired to find some class/reference manual or something in monodoc on Gtk > namespace but there is nothing there as well. I want to know about the > classes and methods because gtk is lot different from winforms and it is > very annoying sometimes to inability to find a method to do a simple task > even e.g. I am trying to find a way to display some text in textview widget > cannot find a Textbox.Text equivalent in gtk. Plz refer me some manual or > such thing where at least methods and properties are explained of gtk. > Regards > From draekz at gmail.com Sun Jul 6 11:09:08 2008 From: draekz at gmail.com (Draekz) Date: Sun, 6 Jul 2008 09:09:08 -0600 Subject: [Gtk-sharp-list] Gtk.Entry and Gtk.TextView (MERGE?) Message-ID: Hey all, We are needing to create a widget that looks like a Gtk.Entry (Blue highlighted border when selected, and roundish shadow type border etc) yet we need to tools provided in the TextView. We have been able to draw a similar border around the TextView (its not 100% but its close) but we have been unable to get it to highlight the border blue when selected. Could someone with more experiencing drawing custom styles etc on widgets help us to mimic the Entry for our TextView? Any help in the right direction would be appreciated. Below we have provided the code we have so far (keep in mind there are a few extra tidbits in this code that have nothing to do with what i'm asking about, but its just text tags and stuff): ---------------------------------------- public class ViewEntryWidget : Bin { const int _borderSize = 2; bool _editing; string _markup; TextView _view; TextTag _tagBold = new TextTag ("bold"); TextTag _tagItalic = new TextTag ("italic"); TextTag _tagUnderline = new TextTag ("underline"); TextTag _tagStrikethrough = new TextTag ("strikethrough"); TextTag _tagUri = new TextTag ("uri"); public string Text { get { return _markup; } } public ViewEntryWidget () { Entry entry = new Entry (); _view = new TextView (); _view.AcceptsTab = false; _view.BorderWidth = 3; _view.CursorVisible = true; _view.Editable = true; // This is going to show white instead of gray, but it should be using the theme color, not white. _view.ModifyBg (StateType.Normal, new Gdk.Color (255,255,255)); _tagBold.Weight = Weight.Bold; _view.Buffer.TagTable.Add (_tagBold); _tagItalic.Style = Pango.Style.Italic; _view.Buffer.TagTable.Add (_tagItalic); _tagUnderline.Underline = Pango.Underline.Single; _view.Buffer.TagTable.Add (_tagUnderline); _tagStrikethrough.Strikethrough = true; _view.Buffer.TagTable.Add (_tagStrikethrough); //TODO: can this be gotten from the gtk theme? _tagUri.ForegroundGdk = new Gdk.Color (0, 0, 255); _tagUri.Underline = Pango.Underline.Single; _view.Buffer.TagTable.Add (_tagUri); _view.FocusInEvent += ViewFocusIn; _view.FocusOutEvent += ViewFocusOut; _view.KeyPressEvent += ViewKeyPress; Add (_view); _markup = string.Empty; _editing = false; SetContent (); } void SetContent () { _view.Buffer.Clear (); if (string.IsNullOrEmpty (_markup)) return; _view.Buffer.Text = _markup; } int PangoPixels (int p) { return ((int)(p) + 512) >> 10; } protected override void OnSizeRequested (ref Requisition requisition) { FontMetrics metrics = _view.PangoContext.GetMetrics (_view.Style.FontDesc, _view.PangoContext.Language); int charPixels = (int)((Math.Max (metrics.ApproximateCharWidth, metrics.ApproximateDigitWidth) + Pango.Scale.PangoScale - 1) / Pango.Scale.PangoScale); requisition.Width = (charPixels * _view.Buffer.Text.Length) + (_borderSize * 2); requisition.Height = PangoPixels (metrics.Ascent + metrics.Descent) + (int)(_view.BorderWidth * 2) + (_borderSize * 2); //Log.Debug ("Requisition = {0}x{1}", requisition.Width, requisition.Height); metrics.Dispose (); } protected override void OnSizeAllocated (Gdk.Rectangle allocation) { base.OnSizeAllocated (allocation); _view.SizeAllocate (new Gdk.Rectangle (allocation.X + _borderSize, allocation.Y + _borderSize, allocation.Width - (2 * _borderSize), allocation.Height - (2 * _borderSize))); } protected override void OnRealized () { base.OnRealized (); GdkWindow.Background = Style.Base (StateType.Prelight); } protected override void OnStyleSet (Gtk.Style previous_style) { base.OnStyleSet (previous_style); if (IsRealized && (previous_style != null)) GdkWindow.Background = Style.Base (StateType.Normal); } protected override bool OnExposeEvent (Gdk.EventExpose evnt) { //Gtk.Style.PaintFlatBox (Style, evnt.Window, StateType.Normal, ShadowType.None, Allocation, this, "entry_bg", // Allocation.X, Allocation.Y, Allocation.Width, Allocation.Height); Gtk.Style.PaintShadow (Style, evnt.Window, StateType.Normal, ShadowType.In, Allocation, this, "entry", Allocation.X, Allocation.Y, Allocation.Width, Allocation.Height); //TODO: focus PropagateExpose (_view, evnt); return false; } void ViewFocusIn (object sender, FocusInEventArgs args) { QueueDraw (); if (!_editing) { _editing = true; SetContent (); } } void ViewFocusOut (object sender, FocusOutEventArgs args) { QueueDraw (); if (_editing) { _editing = false; _markup = _view.Buffer.Text; SetContent (); } } [GLib.ConnectBefore] void ViewKeyPress (object sender, KeyPressEventArgs args) { if (args.Event.Key == Gdk.Key.Return || args.Event.Key == Gdk.Key.KP_Enter) { // Treat enter as tab Toplevel.ChildFocus (DirectionType.TabForward); args.RetVal = true; } } -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/gtk-sharp-list/attachments/20080706/2e6cc446/attachment.html From christian_hoff at gmx.net Sun Jul 6 12:42:27 2008 From: christian_hoff at gmx.net (Christian Hoff) Date: Sun, 06 Jul 2008 18:42:27 +0200 Subject: [Gtk-sharp-list] Gtk.Entry and Gtk.TextView (MERGE?) In-Reply-To: References: Message-ID: <4870F5F3.9070706@gmx.net> Since this is a topic that most Gtk# developers(including me) are not familiar with, it might be best to write a mail to one of the Gtk+ mailing lists(http://www.gtk.org/mailing-lists.html) or to have a look at the Gtk+ documentation. Christian Draekz schrieb: > Hey all, > > We are needing to create a widget that looks like a Gtk.Entry (Blue > highlighted border when selected, and roundish shadow type border etc) > yet we need to tools provided in the TextView. > > We have been able to draw a similar border around the TextView (its > not 100% but its close) but we have been unable to get it to highlight > the border blue when selected. > > Could someone with more experiencing drawing custom styles etc on > widgets help us to mimic the Entry for our TextView? Any help in the > right direction would be appreciated. Below we have provided the code > we have so far (keep in mind there are a few extra tidbits in this > code that have nothing to do with what i'm asking about, but its just > text tags and stuff): > > ---------------------------------------- > > public class ViewEntryWidget : Bin > { > const int _borderSize = 2; > > bool _editing; > string _markup; > TextView _view; > > TextTag _tagBold = new TextTag ("bold"); > TextTag _tagItalic = new TextTag ("italic"); > TextTag _tagUnderline = new TextTag ("underline"); > TextTag _tagStrikethrough = new TextTag ("strikethrough"); > TextTag _tagUri = new TextTag ("uri"); > > public string Text > { > get { return _markup; } > } > > public ViewEntryWidget () > { > Entry entry = new Entry (); > > _view = new TextView (); > _view.AcceptsTab = false; > _view.BorderWidth = 3; > _view.CursorVisible = true; > _view.Editable = true; > // This is going to show white instead of gray, but it should > be using the theme color, not white. > _view.ModifyBg (StateType.Normal, new Gdk.Color (255,255,255)); > > _tagBold.Weight = Weight.Bold; > _view.Buffer.TagTable.Add (_tagBold); > > _tagItalic.Style = Pango.Style.Italic; > _view.Buffer.TagTable.Add (_tagItalic); > > _tagUnderline.Underline = Pango.Underline.Single; > _view.Buffer.TagTable.Add (_tagUnderline); > > _tagStrikethrough.Strikethrough = true; > _view.Buffer.TagTable.Add (_tagStrikethrough); > > //TODO: can this be gotten from the gtk theme? > _tagUri.ForegroundGdk = new Gdk.Color (0, 0, 255); > _tagUri.Underline = Pango.Underline.Single; > _view.Buffer.TagTable.Add (_tagUri); > > _view.FocusInEvent += ViewFocusIn; > _view.FocusOutEvent += ViewFocusOut; > _view.KeyPressEvent += ViewKeyPress; > Add (_view); > > _markup = string.Empty; > > _editing = false; > SetContent (); > } > > void SetContent () > { > _view.Buffer.Clear (); > > if (string.IsNullOrEmpty (_markup)) > return; > > _view.Buffer.Text = _markup; > } > > int PangoPixels (int p) > { > return ((int)(p) + 512) >> 10; > } > > protected override void OnSizeRequested (ref Requisition requisition) > { > FontMetrics metrics = _view.PangoContext.GetMetrics > (_view.Style.FontDesc, _view.PangoContext.Language); > > int charPixels = (int)((Math.Max > (metrics.ApproximateCharWidth, metrics.ApproximateDigitWidth) + > Pango.Scale.PangoScale - 1) / Pango.Scale.PangoScale); > > requisition.Width = (charPixels * _view.Buffer.Text.Length) + > (_borderSize * 2); > requisition.Height = PangoPixels (metrics.Ascent + > metrics.Descent) + (int)(_view.BorderWidth * 2) + (_borderSize * 2); > > //Log.Debug ("Requisition = {0}x{1}", requisition.Width, > requisition.Height); > > metrics.Dispose (); > } > > protected override void OnSizeAllocated (Gdk.Rectangle allocation) > { > base.OnSizeAllocated (allocation); > > _view.SizeAllocate (new Gdk.Rectangle (allocation.X + > _borderSize, allocation.Y + _borderSize, > allocation.Width - (2 * > _borderSize), > allocation.Height - (2 > * _borderSize))); > } > > protected override void OnRealized () > { > base.OnRealized (); > > GdkWindow.Background = Style.Base (StateType.Prelight); > } > > protected override void OnStyleSet (Gtk.Style previous_style) > { > base.OnStyleSet (previous_style); > > if (IsRealized && (previous_style != null)) > GdkWindow.Background = Style.Base (StateType.Normal); > } > > protected override bool OnExposeEvent (Gdk.EventExpose evnt) > { > //Gtk.Style.PaintFlatBox (Style, evnt.Window, > StateType.Normal, ShadowType.None, Allocation, this, "entry_bg", > // Allocation.X, Allocation.Y, > Allocation.Width, Allocation.Height); > > Gtk.Style.PaintShadow (Style, evnt.Window, StateType.Normal, > ShadowType.In, Allocation, this, "entry", > Allocation.X, Allocation.Y, > Allocation.Width, Allocation.Height); > > //TODO: focus > > PropagateExpose (_view, evnt); > > return false; > } > > void ViewFocusIn (object sender, FocusInEventArgs args) > { > QueueDraw (); > > if (!_editing) > { > _editing = true; > SetContent (); > } > } > > void ViewFocusOut (object sender, FocusOutEventArgs args) > { > QueueDraw (); > > if (_editing) > { > _editing = false; > _markup = _view.Buffer.Text; > SetContent (); > } > } > > [GLib.ConnectBefore] > void ViewKeyPress (object sender, KeyPressEventArgs args) > { > if (args.Event.Key == Gdk.Key.Return || args.Event.Key == > Gdk.Key.KP_Enter) > { > // Treat enter as tab > > Toplevel.ChildFocus (DirectionType.TabForward); > args.RetVal = true; > } > } > ------------------------------------------------------------------------ > > _______________________________________________ > Gtk-sharp-list maillist - Gtk-sharp-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/gtk-sharp-list > From count.cb at gmx.net Sun Jul 6 15:52:45 2008 From: count.cb at gmx.net (countcb) Date: Sun, 6 Jul 2008 12:52:45 -0700 (PDT) Subject: [Gtk-sharp-list] Gtk# class library refrence or manual? In-Reply-To: <486F4086.5000606@gmx.net> References: <18289807.post@talk.nabble.com> <486F4086.5000606@gmx.net> Message-ID: <18305861.post@talk.nabble.com> I had no problems so far with using the doc which can be found under the above posted link. Maybe the wiki was not updated recently but the apidoc is very usable in my opinion. -- View this message in context: http://www.nabble.com/Gtk--class-library-refrence-or-manual--tp18289807p18305861.html Sent from the Mono - Gtk# mailing list archive at Nabble.com. From debackerl at gmail.com Tue Jul 8 18:57:42 2008 From: debackerl at gmail.com (Debacker) Date: Wed, 9 Jul 2008 00:57:42 +0200 Subject: [Gtk-sharp-list] Override of GtkContainerClass::remove Message-ID: <75751ca80807081557y5488d160pae585d4d3733a348@mail.gmail.com> Hi, I'm developing a Gtk# library (the ribbon lib for GSoC to be precise), while running my sample app I get the following: (Sample:7337): Gtk-WARNING **: GtkContainerClass::remove not implemented for `__gtksharp_14_Ribbons_ApplicationMenu' I tried to override the Remove(Widget) method, but it is not marked virtual, so no luck. What am I supposed to do, what does it mean? Thanks Laurent. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/gtk-sharp-list/attachments/20080709/2ef094c3/attachment.html From christian_hoff at gmx.net Wed Jul 9 01:29:23 2008 From: christian_hoff at gmx.net (Christian Hoff) Date: Wed, 09 Jul 2008 07:29:23 +0200 Subject: [Gtk-sharp-list] Override of GtkContainerClass::remove In-Reply-To: <75751ca80807081557y5488d160pae585d4d3733a348@mail.gmail.com> References: <75751ca80807081557y5488d160pae585d4d3733a348@mail.gmail.com> Message-ID: <48744CB3.9020204@gmx.net> This is a known bug in Gtk#(https://bugzilla.novell.com/show_bug.cgi?id=381744). The Remove method of the GtkContainerClass ist to be overridden by all classes implementing it, but there is no virtual Reomve method generated so it cannot be overridden. It is not the container class that actually removes the widget. The gtk_container_remove method of the GtkContainer fires a signal whose default signal handler is GtkContainerClass->remove. This remove method, if it is not overridden, simply calls gtk_container_remove_unimplemented. A temporary workaround would be to connect to the remove signal using [GLib.ConnectBefore], do all the stuff there and to ignore the Gtk warning. I will try to provide a patch for this bug as soon as possible, but I've had too less time in the past and this patch will require a lot of work. Christian Debacker schrieb: > Hi, > > I'm developing a Gtk# library (the ribbon lib for GSoC to be precise), > while running my sample app I get the following: > > (Sample:7337): Gtk-WARNING **: GtkContainerClass::remove not > implemented for `__gtksharp_14_Ribbons_ApplicationMenu' > > I tried to override the Remove(Widget) method, but it is not marked > virtual, so no luck. > > What am I supposed to do, what does it mean? > > Thanks > > Laurent. > ------------------------------------------------------------------------ > > _______________________________________________ > 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 Wed Jul 9 16:51:37 2008 From: monouser at gmail.com (Darwin Reynoso) Date: Wed, 9 Jul 2008 16:51:37 -0400 Subject: [Gtk-sharp-list] Textview Message-ID: Hi, Does anybody knows how to change the background color of a textview and an entry widget? thanks:-) From christian_hoff at gmx.net Thu Jul 10 01:25:49 2008 From: christian_hoff at gmx.net (Christian Hoff) Date: Thu, 10 Jul 2008 07:25:49 +0200 Subject: [Gtk-sharp-list] Textview In-Reply-To: References: Message-ID: <48759D5D.5040007@gmx.net> Entry.ModifyBase (Gtk.StateType.Normal, new Gdk.Color (200, 0, 0)); Christian Darwin Reynoso schrieb: > Hi, > Does anybody knows how to change the background color of a textview > and an entry widget? > > thanks:-) > _______________________________________________ > Gtk-sharp-list maillist - Gtk-sharp-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/gtk-sharp-list > > From boot_m_1961 at yahoo.com Thu Jul 10 02:30:07 2008 From: boot_m_1961 at yahoo.com (boot_m_1961) Date: Wed, 9 Jul 2008 23:30:07 -0700 (PDT) Subject: [Gtk-sharp-list] Move cursor to an entry field Message-ID: <18376402.post@talk.nabble.com> Hi, I don't know how to move the cursor to one of the entry fields on my window (GLADE/GTK). I can't find it in the documentation-section. The window contains two entry fields: name: ......... city: ........... and I should move the cursor to one of them. Any suggestions? Thanks! Jan Boot -- View this message in context: http://www.nabble.com/Move-cursor-to-an-entry-field-tp18376402p18376402.html Sent from the Mono - Gtk# mailing list archive at Nabble.com. From m.j.hutchinson at gmail.com Thu Jul 10 02:42:23 2008 From: m.j.hutchinson at gmail.com (Michael Hutchinson) Date: Thu, 10 Jul 2008 02:42:23 -0400 Subject: [Gtk-sharp-list] Move cursor to an entry field In-Reply-To: <18376402.post@talk.nabble.com> References: <18376402.post@talk.nabble.com> Message-ID: On Thu, Jul 10, 2008 at 2:30 AM, boot_m_1961 wrote: > > Hi, > > I don't know how to move the cursor to one of the entry fields on my window > (GLADE/GTK). I can't find it in the documentation-section. > > The window contains two entry fields: > name: ......... > city: ........... > and I should move the cursor to one of them. > > Any suggestions? http://www.go-mono.com/docs/monodoc.ashx?link=M%3aGtk.Widget.GrabFocus -- Michael Hutchinson http://mjhutchinson.com From cdhowie at gmail.com Fri Jul 11 09:38:09 2008 From: cdhowie at gmail.com (Chris Howie) Date: Fri, 11 Jul 2008 09:38:09 -0400 Subject: [Gtk-sharp-list] DriveInfo's TotalSize, AvailableFreeSpace and TotalFreeSpace reports my flash drive's size as 8PB In-Reply-To: <18203189.post@talk.nabble.com> References: <18203189.post@talk.nabble.com> Message-ID: <3d2f29dc0807110638p27b1027drc1b00bd8b781ef7@mail.gmail.com> On Mon, Jun 30, 2008 at 4:00 PM, jordanwb wrote: > Ok I did do a search and found three topics talking about the same thing. I > started reading and I didn't know what the heck I was reading. > > Using the following code: > > using System; > using System.IO; > > namespace ConsoleProject1 > { > class MainClass > { > public static void Main(string[] args) > { > DriveInfo[] drives = DriveInfo.GetDrives (); > > foreach (DriveInfo drive in drives) > { > if (drive.ToString ().Equals ("/media/disk")) > { > Console.WriteLine (drive.TotalSize); > Console.WriteLine (drive.AvailableFreeSpace); > Console.WriteLine (drive.TotalFreeSpace); > Console.WriteLine (drive.DriveFormat); > } > } > } > } > } > > The following is outputted: > > here System.IO.StreamReader > L: Linux > 9223372036854775807 > 9223372036854775807 > 9223372036854775807 > vfat > > I changed the 922whatever into the smallest value and it came out 8 > Petabytes. I'm running version 1.9.1 of Mono on Ubuntu 8.04 IIRC, the DriveInfo class has not been completely implemented yet. (And BTW this is off-topic for this mailing list. I think you wanted the main Mono list.) -- Chris Howie http://www.chrishowie.com http://en.wikipedia.org/wiki/User:Crazycomputers From true.friend2004 at gmail.com Sat Jul 12 04:48:53 2008 From: true.friend2004 at gmail.com (True_Friend) Date: Sat, 12 Jul 2008 01:48:53 -0700 (PDT) Subject: [Gtk-sharp-list] Enabling TextView to print custom language character(without system support) Message-ID: <18417433.post@talk.nabble.com> Hi I am a beginner in c# and gtk. I want to modify TextView widget in such a way that it print (in textbox obviously) keys of my language Urdu. As if I press 'a' it prints '?'. The same thing is done by one of my colleges in Windows.Forms with richtextbox and textbox controls. I have seen some windows.forms specific things in it so I cannot apply it as it to gtk. Plz guide me how can I achieve it. I have found a little clue about it http://www.go-mono.com/docs/index.aspx?link=T%3aGdk.Keymap%2f* here in monodoc. Plz refer me to some guide in this regard even it is not GTK# (but gtk obviously) so I may able to understand even the lang will not c#. Here is the textbox class modified for this purpose for windows.forms. http://www.nabble.com/file/p18417433/UrduTextBox.cs UrduTextBox.cs Regards -- View this message in context: http://www.nabble.com/Enabling-TextView-to-print-custom-language-character%28without-system-support%29-tp18417433p18417433.html Sent from the Mono - Gtk# mailing list archive at Nabble.com. From W.Mauer at top-soft.info Sun Jul 13 04:06:53 2008 From: W.Mauer at top-soft.info (Wolfgang Mauer) Date: Sun, 13 Jul 2008 10:06:53 +0200 Subject: [Gtk-sharp-list] Combo with DropDown Calender? Message-ID: <200807131006.53349.W.Mauer@top-soft.info> Hi all, is there a Comboboxentry with a dropdown calendercontrol or can i make this on my own(how?) Thanks for help /Wolfgang From christian_hoff at gmx.net Sun Jul 13 09:32:19 2008 From: christian_hoff at gmx.net (Christian Hoff) Date: Sun, 13 Jul 2008 15:32:19 +0200 Subject: [Gtk-sharp-list] Combo with DropDown Calender? In-Reply-To: <200807131006.53349.W.Mauer@top-soft.info> References: <200807131006.53349.W.Mauer@top-soft.info> Message-ID: <487A03E3.7030700@gmx.net> A very good one is available as part of the Holly Gtk# Widget Library(http://code.google.com/p/holly-gtk-widgets/) Christian Wolfgang Mauer schrieb: > Hi all, > is there a Comboboxentry with a dropdown calendercontrol or can i make this on > my own(how?) > > Thanks for help > /Wolfgang > _______________________________________________ > Gtk-sharp-list maillist - Gtk-sharp-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/gtk-sharp-list > > From true.friend2004 at gmail.com Mon Jul 14 04:54:26 2008 From: true.friend2004 at gmail.com (True Friend) Date: Mon, 14 Jul 2008 14:54:26 +0600 Subject: [Gtk-sharp-list] Enabling TextView to print custom language character(without system support) In-Reply-To: <18417433.post@talk.nabble.com> References: <18417433.post@talk.nabble.com> Message-ID: Hi Gtk# List Replying to my self I am able to print keyvalues of Ctrl, Alt, Shift etc. But not keys a,A,b,B, etc. I've used keypress event handler for this purpose. Plz tell me how can I get control of these keys in textview? The code snippet (very simple indeed). protected virtual void OnTextview1KeyPressEvent (object o, Gtk.KeyPressEventArgs args) { textview1.Buffer.InsertAtCursor(args.Event.HardwareKeycode.ToString()); } Waiting for your valueable suggestions. Regards On Sat, Jul 12, 2008 at 2:48 PM, True_Friend wrote: > > Hi > I am a beginner in c# and gtk. I want to modify TextView widget in such a > way that it print (in textbox obviously) keys of my language Urdu. As if I > press 'a' it prints '?'. The same thing is done by one of my colleges in > Windows.Forms with richtextbox and textbox controls. I have seen some > windows.forms specific things in it so I cannot apply it as it to gtk. Plz > guide me how can I achieve it. I have found a little clue about it > http://www.go-mono.com/docs/index.aspx?link=T%3aGdk.Keymap%2f* here in > monodoc. Plz refer me to some guide in this regard even it is not GTK# (but > gtk obviously) so I may able to understand even the lang will not c#. Here > is the textbox class modified for this purpose for windows.forms. > http://www.nabble.com/file/p18417433/UrduTextBox.cs UrduTextBox.cs > Regards > -- > View this message in context: > http://www.nabble.com/Enabling-TextView-to-print-custom-language-character%28without-system-support%29-tp18417433p18417433.html > Sent from the Mono - Gtk# mailing list archive at Nabble.com. > > _______________________________________________ > Gtk-sharp-list maillist - Gtk-sharp-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/gtk-sharp-list > -- Muhammad Shakir Aziz ???? ???? ???? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/gtk-sharp-list/attachments/20080714/4d4c5893/attachment.html From blue_phantom20045 at hotmail.com Mon Jul 14 05:29:23 2008 From: blue_phantom20045 at hotmail.com (=?UTF-8?Q?Juan_Jos=C3=A9?=) Date: Mon, 14 Jul 2008 02:29:23 -0700 (PDT) Subject: [Gtk-sharp-list] portabilty with Windows and Linux Message-ID: <18436724.post@talk.nabble.com> Hello everybody! I'm a linux user, and I want to develop in this OS, the problem is that I can't run my applications under windows. I use Debian Lenny with monodevelop, and it uses gtk-sharp 2.12.2. And that package doesn't exist for windows, so when I try to run my app, I get the error that says I can't run the program, because I don't have that package. And I can't downgrade the version of gtk# on debian, because I have to uninstall the 2.12.2 to install 2.10.3 version. And if I try to uninstall gtk# 2.12.2 apt want's to uninstall monodevelop, gtk#, and gnome!!! So, what can I do??? =S thanks and sorry for my bad english =P -- View this message in context: http://www.nabble.com/portabilty-with-Windows-and-Linux-tp18436724p18436724.html Sent from the Mono - Gtk# mailing list archive at Nabble.com. From mtausig at fsmat.at Mon Jul 14 06:04:40 2008 From: mtausig at fsmat.at (Mathias Tausig) Date: Mon, 14 Jul 2008 12:04:40 +0200 (CEST) Subject: [Gtk-sharp-list] portabilty with Windows and Linux In-Reply-To: <18436724.post@talk.nabble.com> References: <18436724.post@talk.nabble.com> Message-ID: <63147.195.64.3.50.1216029880.squirrel@fsmat.at> There is an add-in for mondevelop called "GTK# 2.10 compilation support". > > Hello everybody! > > I'm a linux user, and I want to develop in this OS, the problem is that I > can't run my applications under windows. > > I use Debian Lenny with monodevelop, and it uses gtk-sharp 2.12.2. And > that > package doesn't exist for windows, so when I try to run my app, I get the > error that says I can't run the program, because I don't have that > package. > > And I can't downgrade the version of gtk# on debian, because I have to > uninstall the 2.12.2 to install 2.10.3 version. And if I try to uninstall > gtk# 2.12.2 apt want's to uninstall monodevelop, gtk#, and gnome!!! > > So, what can I do??? =S > > thanks and sorry for my bad english =P > -- > View this message in context: > http://www.nabble.com/portabilty-with-Windows-and-Linux-tp18436724p18436724.html > Sent from the Mono - Gtk# mailing list archive at Nabble.com. > > _______________________________________________ > Gtk-sharp-list maillist - Gtk-sharp-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/gtk-sharp-list > > From true.friend2004 at gmail.com Mon Jul 14 10:28:21 2008 From: true.friend2004 at gmail.com (True Friend) Date: Mon, 14 Jul 2008 20:28:21 +0600 Subject: [Gtk-sharp-list] No keypress event raised when a, b, c or any other normal character key is pressed.IS IT A BUG IN GTK#??? Message-ID: Hi List I am trying to figure out a way to hack keyboard input and finally I've found a similar thing in py_gtk. The method is given below.- _________________________________ def on_TextView_key_press(self, widget,event): keycode = event.hardware_keycode self.undo_manager.cur_keyval = event.keyval # Skip if Ctrl or Alt are pressed if ('GDK_CONTROL_MASK' in event.state.value_names) \ or ('GDK_MOD1_MASK' in event.state.value_names): return False if (not self.IsLangDefault): try: # get char from the mapping if ('GDK_SHIFT_MASK' in event.state.value_names) or \ ('GDK_LOCK_MASK' in event.state.value_names): new_char = self.LayManager.dict_trans[keycode][1] else: new_char = self.LayManager.dict_trans[keycode][0] self.textbuffer.delete_selection(True, self.textview.get_editable()) self.textbuffer.insert_interactive_at_cursor(new_char, self.textview.get_editable()) except : # return unchanged keyval for unrecognized keystrokes return False # insert the new char instead return True else: return False _______________________________________________ Exactly the same thing I am trying to do in c# with gtk. So I am exprerimenting to get values of keys in another widget. I only want to ask why I am unable to catch keypress events raised by normal keys (a, b, c, d, y, 1, 2 etc etc). Modifier keys when pressed raise the event and I get the output as well. You can see the code how I am doing this. protected virtual void OnTextview1KeyPressEvent (object o, Gtk.KeyPressEventArgs args) { char key = (char)args.Event.Key; entry1.Text = key.ToString(); } There are only two widgets on window. The keypress event is raised in textview1 and its output is in entry1. I am getting output (basically strange characters) when I press shift, alt, ctrl or caps lock or num lock but normal keys are not raising events. Where I am wrong plz point out so I can correct the code?? OR IT IS A BUG IN GTK#?????? Regards -- Muhammad Shakir Aziz ???? ???? ???? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/gtk-sharp-list/attachments/20080714/4e135c28/attachment-0001.html From cdhowie at gmail.com Mon Jul 14 10:50:20 2008 From: cdhowie at gmail.com (Chris Howie) Date: Mon, 14 Jul 2008 10:50:20 -0400 Subject: [Gtk-sharp-list] No keypress event raised when a, b, c or any other normal character key is pressed.IS IT A BUG IN GTK#??? In-Reply-To: References: Message-ID: <3d2f29dc0807140750s8abca66ta5c7328144fd710c@mail.gmail.com> On Mon, Jul 14, 2008 at 10:28 AM, True Friend wrote: > There are only two widgets on window. The keypress event is raised in > textview1 and its output is in entry1. I am getting output (basically > strange characters) when I press shift, alt, ctrl or caps lock or num lock > but normal keys are not raising events. Where I am wrong plz point out so I > can correct the code?? > OR IT IS A BUG IN GTK#?????? Try applying [GLib.ConnectBefore] to your event handler. (But note that this is the evil way of approaching this -- you really want to subclass TextView and override its own keypress handler.) -- Chris Howie http://www.chrishowie.com http://en.wikipedia.org/wiki/User:Crazycomputers From true.friend2004 at gmail.com Mon Jul 14 11:25:28 2008 From: true.friend2004 at gmail.com (True Friend) Date: Mon, 14 Jul 2008 21:25:28 +0600 Subject: [Gtk-sharp-list] No keypress event raised when a, b, c or any other normal character key is pressed.IS IT A BUG IN GTK#??? In-Reply-To: References: <3d2f29dc0807140750s8abca66ta5c7328144fd710c@mail.gmail.com> Message-ID: Thanks for reply. I've applied it as attribute before the event handler and know it is working. You are right I should override the default keypress event handler, I'll do it while creating a widget library but currently I was frustrated due to this problem. Same thing was going fine in python (py_gtk) but not in c#. Regards > Try applying [GLib.ConnectBefore] to your event handler. (But note > that this is the evil way of approaching this -- you really want to > subclass TextView and override its own keypress handler.) > > -- > Chris Howie > http://www.chrishowie.com > http://en.wikipedia.org/wiki/User:Crazycomputers > -- Muhammad Shakir Aziz ???? ???? ???? -- Muhammad Shakir Aziz ???? ???? ???? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/gtk-sharp-list/attachments/20080714/70161747/attachment.html From lordphoenix at free.fr Mon Jul 14 13:35:59 2008 From: lordphoenix at free.fr (lordphoenix) Date: Mon, 14 Jul 2008 19:35:59 +0200 Subject: [Gtk-sharp-list] portabilty with Windows and Linux In-Reply-To: <18436724.post@talk.nabble.com> References: <18436724.post@talk.nabble.com> Message-ID: <20080714193559.60da4d36@free.fr> Le Mon, 14 Jul 2008 02:29:23 -0700 (PDT), Juan Jos? a ?crit : > > Hello everybody! > > I'm a linux user, and I want to develop in this OS, the problem is > that I can't run my applications under windows. > > I use Debian Lenny with monodevelop, and it uses gtk-sharp 2.12.2. > And that package doesn't exist for windows, so when I try to run my > app, I get the error that says I can't run the program, because I > don't have that package. > > And I can't downgrade the version of gtk# on debian, because I have to > uninstall the 2.12.2 to install 2.10.3 version. And if I try to > uninstall gtk# 2.12.2 apt want's to uninstall monodevelop, gtk#, and > gnome!!! > > So, what can I do??? =S > > thanks and sorry for my bad english =P Hi, In monodevelop addins you have addins to add support of older gtk# version. Install this addins and set the desired version in your project options -------------- 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/20080714/5592fc8b/attachment.bin From blue_phantom20045 at hotmail.com Mon Jul 14 18:44:51 2008 From: blue_phantom20045 at hotmail.com (=?UTF-8?Q?Juan_Jos=C3=A9?=) Date: Mon, 14 Jul 2008 15:44:51 -0700 (PDT) Subject: [Gtk-sharp-list] portabilty with Windows and Linux In-Reply-To: <18436724.post@talk.nabble.com> References: <18436724.post@talk.nabble.com> Message-ID: <18454798.post@talk.nabble.com> Thanks. But where can I get that addin?? I've http://www.google.com.mx/search?hl=es&q=%22GTK%23+2.10+compilation+support%22&btnG=Buscar+con+Google&meta= google that and I don't get good information =S. And When I have the Add in, How I would Install it? Thanks -- View this message in context: http://www.nabble.com/portabilty-with-Windows-and-Linux-tp18436724p18454798.html Sent from the Mono - Gtk# mailing list archive at Nabble.com. From mtausig at fsmat.at Tue Jul 15 05:06:32 2008 From: mtausig at fsmat.at (Mathias Tausig) Date: Tue, 15 Jul 2008 11:06:32 +0200 (CEST) Subject: [Gtk-sharp-list] portabilty with Windows and Linux In-Reply-To: <18454798.post@talk.nabble.com> References: <18436724.post@talk.nabble.com> <18454798.post@talk.nabble.com> Message-ID: <61685.195.64.3.50.1216112792.squirrel@fsmat.at> It's all done within MonoDevelop. Just click Tools->Add-in Manager->Install Add-In > > Thanks. But where can I get that addin?? I've > http://www.google.com.mx/search?hl=es&q=%22GTK%23+2.10+compilation+support%22&btnG=Buscar+con+Google&meta= > google that and I don't get good information =S. > > And When I have the Add in, How I would Install it? > > Thanks > > -- > View this message in context: > http://www.nabble.com/portabilty-with-Windows-and-Linux-tp18436724p18454798.html > Sent from the Mono - Gtk# mailing list archive at Nabble.com. > > _______________________________________________ > Gtk-sharp-list maillist - Gtk-sharp-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/gtk-sharp-list > > From true.friend2004 at gmail.com Tue Jul 15 06:40:24 2008 From: true.friend2004 at gmail.com (True Friend) Date: Tue, 15 Jul 2008 16:40:24 +0600 Subject: [Gtk-sharp-list] No keypress event raised when a, b, c or any other normal character key is pressed.IS IT A BUG IN GTK#??? In-Reply-To: <3d2f29dc0807140750s8abca66ta5c7328144fd710c@mail.gmail.com> References: <3d2f29dc0807140750s8abca66ta5c7328144fd710c@mail.gmail.com> Message-ID: Hi List Can I override the default event handler in an instance (say an instance of a textview). Looking a stupid question but I am confused how can I apply a custom keypress event handler to a textview. Ok I know I can write a custom event handler for the current instance and then hook it with the instance.KeyPressEvent += bla bla. I am asking if I want to make a custom widget inherited from Gtk.TextView (in a widget library) and there I want to override default event handler. Sorry for the stupid question but I am a beginner and I do not find any other place to asks such questions. :D Regards -- Muhammad Shakir Aziz ???? ???? ???? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/gtk-sharp-list/attachments/20080715/22e2bdd9/attachment.html From cdhowie at gmail.com Tue Jul 15 09:04:07 2008 From: cdhowie at gmail.com (Chris Howie) Date: Tue, 15 Jul 2008 09:04:07 -0400 Subject: [Gtk-sharp-list] No keypress event raised when a, b, c or any other normal character key is pressed.IS IT A BUG IN GTK#??? In-Reply-To: References: <3d2f29dc0807140750s8abca66ta5c7328144fd710c@mail.gmail.com> Message-ID: <3d2f29dc0807150604v6b5cc817l49985e1e219c9b85@mail.gmail.com> On Tue, Jul 15, 2008 at 6:40 AM, True Friend wrote: > Hi List > Can I override the default event handler in an instance (say an instance of > a textview). Looking a stupid question but I am confused how can I apply a > custom keypress event handler to a textview. Ok I know I can write a custom > event handler for the current instance and then hook it with the > instance.KeyPressEvent += bla bla. I am asking if I want to make a custom > widget inherited from Gtk.TextView (in a widget library) and there I want to > override default event handler. > Sorry for the stupid question but I am a beginner and I do not find any > other place to asks such questions. :D You might want to look up object oriented design, or preferably find a class you can take in your area. What you're asking relates to encapsulation and isn't something that can be answered quickly in one or two sentences. -- Chris Howie http://www.chrishowie.com http://en.wikipedia.org/wiki/User:Crazycomputers From true.friend2004 at gmail.com Tue Jul 15 11:10:34 2008 From: true.friend2004 at gmail.com (True Friend) Date: Tue, 15 Jul 2008 20:10:34 +0500 Subject: [Gtk-sharp-list] No keypress event raised when a, b, c or any other normal character key is pressed.IS IT A BUG IN GTK#??? In-Reply-To: <3d2f29dc0807150604v6b5cc817l49985e1e219c9b85@mail.gmail.com> References: <3d2f29dc0807140750s8abca66ta5c7328144fd710c@mail.gmail.com> <3d2f29dc0807150604v6b5cc817l49985e1e219c9b85@mail.gmail.com> Message-ID: Thanks for reply. I am basically wanting to make a re-usable widget (at least a textview) which can write my local language Urdu without system support. I am impressed by the similar work in winforms(c#) with textbox control(equivalent to gtk textview). There the keypress controling method is Control.WndProcwhich can be overridden in custom control to filter messages. Similar thing I could find is to write a keypress event handler in gtk. I am wondering if a custom widget laying in a dll can have such event handler without the need to write an event handler for every new instance. Thats why I asked. Sorry for the long answer, I tried to explain. You can refer me to some documentation of gtk or sone hint how can I do this. I use google frequently. Hopefully I'll be able to get helpful links on your hint. Best Regards On Tue, Jul 15, 2008 at 6:04 PM, Chris Howie wrote: > You might want to look up object oriented design, or preferably find a > class you can take in your area. What you're asking relates to > encapsulation and isn't something that can be answered quickly in one > or two sentences. > > -- > Chris Howie > http://www.chrishowie.com > http://en.wikipedia.org/wiki/User:Crazycomputers > -- Muhammad Shakir Aziz ???? ???? ???? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/gtk-sharp-list/attachments/20080715/7a89bde1/attachment-0001.html From true.friend2004 at gmail.com Tue Jul 15 11:51:33 2008 From: true.friend2004 at gmail.com (True Friend) Date: Tue, 15 Jul 2008 20:51:33 +0500 Subject: [Gtk-sharp-list] No keypress event raised when a, b, c or any other normal character key is pressed.IS IT A BUG IN GTK#??? In-Reply-To: References: <3d2f29dc0807140750s8abca66ta5c7328144fd710c@mail.gmail.com> <3d2f29dc0807150604v6b5cc817l49985e1e219c9b85@mail.gmail.com> Message-ID: wow. The word *subclass* was the key I couldn't understand. Subclassing how to do it, I am getting pretty good documentation on it. If I couldn't get an answer I'll ask once again. Thanks for your kind answers. Regards On Tue, Jul 15, 2008 at 8:10 PM, True Friend wrote: > Thanks for reply. I am basically wanting to make a re-usable widget (at > least a textview) which can write my local language Urdu without system > support. I am impressed by the similar work in winforms(c#) with textbox > control(equivalent to gtk textview). There the keypress controling method is > Control.WndProcwhich can be overridden in custom control to filter messages. Similar thing > I could find is to write a keypress event handler in gtk. I am wondering if > a custom widget laying in a dll can have such event handler without the need > to write an event handler for every new instance. Thats why I asked. > Sorry for the long answer, I tried to explain. You can refer me to some > documentation of gtk or sone hint how can I do this. I use google > frequently. Hopefully I'll be able to get helpful links on your hint. > Best Regards > > On Tue, Jul 15, 2008 at 6:04 PM, Chris Howie wrote: > >> You might want to look up object oriented design, or preferably find a >> class you can take in your area. What you're asking relates to >> encapsulation and isn't something that can be answered quickly in one >> or two sentences. >> >> -- >> Chris Howie >> http://www.chrishowie.com >> http://en.wikipedia.org/wiki/User:Crazycomputers >> > > > > -- > Muhammad Shakir Aziz ???? ???? ???? > -- Muhammad Shakir Aziz ???? ???? ???? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/gtk-sharp-list/attachments/20080715/c9a767bb/attachment.html From count.cb at gmx.net Tue Jul 15 14:23:57 2008 From: count.cb at gmx.net (countcb) Date: Tue, 15 Jul 2008 11:23:57 -0700 (PDT) Subject: [Gtk-sharp-list] Add and remove controls from NotebookPage In-Reply-To: <18471172.post@talk.nabble.com> References: <18471172.post@talk.nabble.com> Message-ID: <18471844.post@talk.nabble.com> vbtricks wrote: > > > depending on a state at runtime I need to replace the content of a page in > a Notebook-Control. How do I accomplish this? > > The mono doc is very usefull. Not only for beginners. The documentation for the gtk notepage: http://www.go-mono.com/docs/index.aspx?link=T%3aGtk.Notebook%2f* This two methods are interesting: AppendPage(Widget, Widget) : int RemovePage(int) Example: // create the widget you want in the notebook. For example a ScrolledWindow ScrolledWindow scrolledWindow = new ScrolledWindow(); //add content to the scrolledWindow... // create the second widget you want in the notebook. ScrolledWindow scrolledWindow2 = new ScrolledWindow(); //add content to the scrolledWindow2... // create a notebook Notebook notebook = new Notebook(); // add the first contents, it will return the number of this page int page = notebook.AppendPage(scrolledWindow, new Label("Tab with scrolledWindow")); // remove the page with the numer we got from the add method notebook.RemovePage(page); // add the second content, again we save the page number int page = notebook.AppendPage(scrolledWindow2, new Label("Tab with scrolledWindow2")); You could also have a look at InsertPage(Widget, Widget, int) : int if you don't want the page to be at the last position but at a specific position. Hope that helps! -- View this message in context: http://www.nabble.com/Add-and-remove-controls-from-NotebookPage-tp18471172p18471844.html Sent from the Mono - Gtk# mailing list archive at Nabble.com. From blue_phantom20045 at hotmail.com Wed Jul 16 02:14:59 2008 From: blue_phantom20045 at hotmail.com (=?UTF-8?Q?Juan_Jos=C3=A9?=) Date: Tue, 15 Jul 2008 23:14:59 -0700 (PDT) Subject: [Gtk-sharp-list] portabilty with Windows and Linux In-Reply-To: <18436724.post@talk.nabble.com> References: <18436724.post@talk.nabble.com> Message-ID: <18480930.post@talk.nabble.com> Hello! Thanks! that really works, but now I have a new problem (I'm sorry for waste your time =( ) The problem is that if I create a new project, and select any version of gtk-sharp... when I put the fixer container and try to run the app. I get this error: The imported type `Gtk.Window' is defined multiple times(CS0433) If i make double click the message, show me this line: public partial class MainWindow: Gtk.Window What should be the problem??? =S Thanks -- View this message in context: http://www.nabble.com/portabilty-with-Windows-and-Linux-tp18436724p18480930.html Sent from the Mono - Gtk# mailing list archive at Nabble.com. From count.cb at gmx.net Wed Jul 16 02:44:01 2008 From: count.cb at gmx.net (countcb) Date: Tue, 15 Jul 2008 23:44:01 -0700 (PDT) Subject: [Gtk-sharp-list] portabilty with Windows and Linux In-Reply-To: <18480930.post@talk.nabble.com> References: <18436724.post@talk.nabble.com> <18480930.post@talk.nabble.com> Message-ID: <18481248.post@talk.nabble.com> Juan Jos? wrote: > > The imported type `Gtk.Window' is defined multiple times(CS0433) > > ... > What should be the problem??? > It seems that you are using TWO (or more versions) versions of gtk-sharp at the same time. Thats why Gtk.Window is defined more than once. Check your assemblie references to see if you have checked two different Versions of Gtk. I have no MonoDevelop right now. That's why I can't make more detailed advices. But I hope you are able to find it nontheless. -- View this message in context: http://www.nabble.com/portabilty-with-Windows-and-Linux-tp18436724p18481248.html Sent from the Mono - Gtk# mailing list archive at Nabble.com. From lnc19 at hotmail.com Wed Jul 16 08:38:30 2008 From: lnc19 at hotmail.com (Luciano _) Date: Wed, 16 Jul 2008 12:38:30 +0000 Subject: [Gtk-sharp-list] portabilty with Windows and Linux In-Reply-To: <18480930.post@talk.nabble.com> References: <18436724.post@talk.nabble.com> <18480930.post@talk.nabble.com> Message-ID: Hi: I was having the same issue some days ago, and Michael Hutchinson explain me: When you change the GtkSharp target, from 2.12 to 2.10 or even 2.8.3, it changes the Referenced library's to this version, but, if you have other Library, wich depends on 2.12, it will fail with that error.This issue happen if you use Gecko-Sharp.dll (to name one) compile against Gtk-Sharp 2.12, and your trying to target 2.10.If this is the problem (with Gecko-Sharp or other dll compiled agains Gtk-Sharp 2.12) and you need to compile with that library, you only need to find a pre-compiled dll, with the Correct version, (In my example, Gecko-Sharp.dll compiled against 2.10, was found in Mono SLED package) and reference THIS dll. You can see the answer that i get here:http://lists.ximian.com/pipermail/monodevelop-list/2008-July/007909.html ByeLuciano > Date: Tue, 15 Jul 2008 23:14:59 -0700> From: blue_phantom20045 at hotmail.com> To: gtk-sharp-list at lists.ximian.com> Subject: Re: [Gtk-sharp-list] portabilty with Windows and Linux> > > Hello!> > Thanks! that really works, but now I have a new problem (I'm sorry for waste> your time =( )> > The problem is that if I create a new project, and select any version of> gtk-sharp... when I put the fixer container and try to run the app. I get> this error:> > The imported type `Gtk.Window' is defined multiple times(CS0433)> > If i make double click the message, show me this line:> > public partial class MainWindow: Gtk.Window> > What should be the problem???> > =S> > Thanks> -- > View this message in context: http://www.nabble.com/portabilty-with-Windows-and-Linux-tp18436724p18480930.html> Sent from the Mono - Gtk# mailing list archive at Nabble.com.> > _______________________________________________> Gtk-sharp-list maillist - Gtk-sharp-list at lists.ximian.com> http://lists.ximian.com/mailman/listinfo/gtk-sharp-list _________________________________________________________________ Use video conversation to talk face-to-face with Windows Live Messenger. http://www.windowslive.com/messenger/connect_your_way.html?ocid=TXT_TAGLM_WL_Refresh_messenger_video_072008 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/gtk-sharp-list/attachments/20080716/a419d34e/attachment.html From blue_phantom20045 at hotmail.com Wed Jul 16 14:27:42 2008 From: blue_phantom20045 at hotmail.com (=?UTF-8?Q?Juan_Jos=C3=A9?=) Date: Wed, 16 Jul 2008 11:27:42 -0700 (PDT) Subject: [Gtk-sharp-list] portabilty with Windows and Linux In-Reply-To: <18436724.post@talk.nabble.com> References: <18436724.post@talk.nabble.com> Message-ID: <18493749.post@talk.nabble.com> Hello! Well, my solution was a little dirty, but works xD. I had the packages : gtk-sharp2 and libgtk2.0-cil . I'd remmember that when I installed it, the package gtk-sharp wasn't installed, so I tried to remove it, but now I get more errors ... Then I uninstall the monodevelop and gtk-sharp and libgtk2.0-cil , and then I Install de monodevelop and it takes libgtk2.0-cil as a dependence, and now all is working fine =) Thanks every one -- View this message in context: http://www.nabble.com/portabilty-with-Windows-and-Linux-tp18436724p18493749.html Sent from the Mono - Gtk# mailing list archive at Nabble.com. From count.cb at gmx.net Thu Jul 17 03:41:37 2008 From: count.cb at gmx.net (countcb) Date: Thu, 17 Jul 2008 00:41:37 -0700 (PDT) Subject: [Gtk-sharp-list] Having trouble getting IconView to work In-Reply-To: <18489782.post@talk.nabble.com> References: <18489782.post@talk.nabble.com> Message-ID: <18503235.post@talk.nabble.com> vbtricks wrote: > > Salut, > > I am trying to initialize an IconView. In the MonoDevelop designer I added > the IconView iconView1 to the window and did not modify any properties. In > the code-behind file in the constructor I'm trying to initialize the > ListStore: > > private Gtk.ListStore store; > > public MainWindow(): base(Gtk.WindowType.Toplevel) > { > Build(); > > this.store = new ListStore(typeof(string), typeof(string), > typeof(string)); > this.store.AppendValues("1", "2", "3"); > this.iconview1.Model = this.store; > } > > though, the IconView does not display anything. How to get a three > columned IconView to work? > > > Thanks in advance, > > Stefan > At First: IconView is used to Display Icons (Images). So your model (ListStore) should contain some Images. this.store = new ListStore(typeof(string), typeof (Gdk.Pixbuf), typeof(string)); // append some values here Then you have to tell the IconView in which colums of your model it can find the needed information. MarkupColumn int. Contains the number of the model column containing markup information to be displayed. PixbufColumn int. Contains the number of the model column containing the pixbufs which are displayed For Example: this.iconview1.MarkupColumn = 0; // the info string this.iconview1.PixbufColumn = 1; // this has to the column with the Gdk.Pixbuf Then your iconview should display the string in column 0 as an info, and the Pixbuf in Column 1 as the Icon. Hope that helps. -- View this message in context: http://www.nabble.com/Having-trouble-getting-IconView-to-work-tp18489782p18503235.html Sent from the Mono - Gtk# mailing list archive at Nabble.com. From vbtricks at gmx.net Wed Jul 16 11:15:56 2008 From: vbtricks at gmx.net (vbtricks) Date: Wed, 16 Jul 2008 08:15:56 -0700 (PDT) Subject: [Gtk-sharp-list] Having trouble getting IconView to work Message-ID: <18489782.post@talk.nabble.com> Salut, I am trying to initialize an IconView. In the MonoDevelop designer I added the IconView iconView1 to the window and did not modify any properties. In the code-behind file in the constructor I'm trying to initialize the ListStore: private Gtk.ListStore store; public MainWindow(): base(Gtk.WindowType.Toplevel) { Build(); this.store = new ListStore(typeof(string), typeof(string), typeof(string)); this.store.AppendValues("1", "2", "3"); this.iconview1.Model = this.store; } though, the IconView does not display anything. How to get a three columned IconView to work? Thanks in advance, Stefan -- View this message in context: http://www.nabble.com/Having-trouble-getting-IconView-to-work-tp18489782p18489782.html Sent from the Mono - Gtk# mailing list archive at Nabble.com. From W.Mauer at top-soft.info Sun Jul 20 06:53:08 2008 From: W.Mauer at top-soft.info (Wolfgang Mauer) Date: Sun, 20 Jul 2008 12:53:08 +0200 Subject: [Gtk-sharp-list] TabOrder using Glade Message-ID: <200807201253.08842.W.Mauer@top-soft.info> Hi all, i use glade for forms. Is there a way to set the taborder (the way the focus goes with the tab-key)? Thanks for help Wolfgang From iggy.ma at gmail.com Sun Jul 20 22:32:32 2008 From: iggy.ma at gmail.com (Iggy MA) Date: Sun, 20 Jul 2008 19:32:32 -0700 (PDT) Subject: [Gtk-sharp-list] New Window In-Reply-To: <18558313.post@talk.nabble.com> References: <18558313.post@talk.nabble.com> Message-ID: <18561223.post@talk.nabble.com> Here is a good example of how to open a new window from the Mono Documentation, which can help you a lot starting out http://www.go-mono.com/docs/index.aspx?tlink=4 at ecma%3a1455%23Window%2f http://iggyma.blogspot.com/ baseman_2008 wrote: > > This is maybe a really stupid question, but i am new to Gtk#. > > In MonoDevelop I can add a new window with a single click. > How can i call these windows in my application? > My plan is to open the new window out of the mainwindow! > > Would be so nice if I'll get an answer... > > > baseman_2008 > > > > > -- View this message in context: http://www.nabble.com/New-Window-tp18558313p18561223.html Sent from the Mono - Gtk# mailing list archive at Nabble.com. From brett_senior at yahoo.com.au Mon Jul 21 07:11:27 2008 From: brett_senior at yahoo.com.au (Brett Senior) Date: Mon, 21 Jul 2008 04:11:27 -0700 (PDT) Subject: [Gtk-sharp-list] Data grid comparable to the data grid control in MS/VS Message-ID: <79810.1091.qm@web50311.mail.re2.yahoo.com> I have an application that I am converting from MS/VS/VB to MonoDevelop/C#. This application makes use of the data grid control and I have not found a similar concept in GTK#. Is there such a widget ? At the moment the version of MD I am running uses GTK# 2.10 - I have 2.12 on my machine but am not sure if this supports a datagrid - as if this is the case then I can simply wait for a later release of MD. If such a widget does not exist then do you know of any that can be downloaded and used ? Thanking you, Brett Senior. Start at the new Yahoo!7 for a better online experience. www.yahoo7.com.au -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/gtk-sharp-list/attachments/20080721/a245cb02/attachment.html From adam at morrison-ind.com Mon Jul 21 08:38:16 2008 From: adam at morrison-ind.com (Adam Tauno Williams) Date: Mon, 21 Jul 2008 08:38:16 -0400 Subject: [Gtk-sharp-list] Data grid comparable to the data grid control in MS/VS In-Reply-To: <79810.1091.qm@web50311.mail.re2.yahoo.com> References: <79810.1091.qm@web50311.mail.re2.yahoo.com> Message-ID: <1216643896.4934.0.camel@linux-nnci.site> On Mon, 2008-07-21 at 04:11 -0700, Brett Senior wrote: > I have an application that I am converting from MS/VS/VB to > MonoDevelop/C#. This application makes use of the data grid control > and I have not found a similar concept in GTK#. Is there such a > widget ? At the moment the version of MD I am running uses GTK# 2.10 > - I have 2.12 on my machine but am not sure if this supports a > datagrid - as if this is the case then I can simply wait for a later > release of MD. If such a widget does not exist then do you know of > any that can be downloaded and used ? From christian_hoff at gmx.net Tue Jul 22 01:59:25 2008 From: christian_hoff at gmx.net (Christian Hoff) Date: Tue, 22 Jul 2008 07:59:25 +0200 Subject: [Gtk-sharp-list] Data grid comparable to the data grid control in MS/VS In-Reply-To: <1216643896.4934.0.camel@linux-nnci.site> References: <79810.1091.qm@web50311.mail.re2.yahoo.com> <1216643896.4934.0.camel@linux-nnci.site> Message-ID: <4885773D.3070206@gmx.net> I have written a custom TreeModel to display DataTables. With this one it should be easy to display a DataTable in a Gtk.TreeView or any other widget you want. Maybe it's even compatible with the Medsphere widget. However, I had to make use of GInterface implementation which is only supported in Gtk# 2.12 (see http://www.mono-project.com/ImplementingGInterfaces) Mike, how about adding a custom tree model to display DataTables to Gtk.DotNet? I think this could really be a useful feature since Gtk# completly lacks support for DataTables. I would volunteer to start working on it if you want. Christian > On Mon, 2008-07-21 at 04:11 -0700, Brett Senior wrote: > >> I have an application that I am converting from MS/VS/VB to >> MonoDevelop/C#. This application makes use of the data grid control >> and I have not found a similar concept in GTK#. Is there such a >> widget ? At the moment the version of MD I am running uses GTK# 2.10 >> - I have 2.12 on my machine but am not sure if this supports a >> datagrid - as if this is the case then I can simply wait for a later >> release of MD. If such a widget does not exist then do you know of >> any that can be downloaded and used ? >> > > > > > _______________________________________________ > Gtk-sharp-list maillist - Gtk-sharp-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/gtk-sharp-list > > -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: DataTableStore.cs Url: http://lists.ximian.com/pipermail/gtk-sharp-list/attachments/20080722/9cfa1651/attachment-0001.pl From m.j.hutchinson at gmail.com Tue Jul 22 02:40:02 2008 From: m.j.hutchinson at gmail.com (Michael Hutchinson) Date: Tue, 22 Jul 2008 02:40:02 -0400 Subject: [Gtk-sharp-list] Data grid comparable to the data grid control in MS/VS In-Reply-To: <4885773D.3070206@gmx.net> References: <79810.1091.qm@web50311.mail.re2.yahoo.com> <1216643896.4934.0.camel@linux-nnci.site> <4885773D.3070206@gmx.net> Message-ID: On Tue, Jul 22, 2008 at 1:59 AM, Christian Hoff wrote: > I have written a custom TreeModel to display DataTables. With this one it > should be easy to display a DataTable in a Gtk.TreeView or any other widget > you want. Maybe it's even compatible with the Medsphere widget. However, I > had to make use of GInterface implementation which is only supported in Gtk# > 2.12 (see http://www.mono-project.com/ImplementingGInterfaces) ... > // DataTableStore.cs > // > // Copyright (C) 2008 Christian Hoff > // > // This program is free software: you can redistribute it and/or modify > // it under the terms of the GNU General Public License as published by > // the Free Software Foundation, either version 3 of the License, or Really nice idea, but it seems a shame to use a restrictive license for a library class like this. IMO LGPL would be more appropriate, to align with GTK's licensing. -- Michael Hutchinson http://mjhutchinson.com From adam at morrison-ind.com Tue Jul 22 08:55:07 2008 From: adam at morrison-ind.com (Adam Tauno Williams) Date: Tue, 22 Jul 2008 08:55:07 -0400 Subject: [Gtk-sharp-list] Data grid comparable to the data grid control in MS/VS In-Reply-To: <4885773D.3070206@gmx.net> References: <79810.1091.qm@web50311.mail.re2.yahoo.com> <1216643896.4934.0.camel@linux-nnci.site> <4885773D.3070206@gmx.net> Message-ID: <1216731307.4538.3.camel@linux-nnci.site> On Tue, 2008-07-22 at 07:59 +0200, Christian Hoff wrote: > I have written a custom TreeModel to display DataTables. With this one > it should be easy to display a DataTable in a Gtk.TreeView or any other > widget you want. Maybe it's even compatible with the Medsphere widget. > However, I had to make use of GInterface implementation which is only > supported in Gtk# 2.12 (see > http://www.mono-project.com/ImplementingGInterfaces) Is it just me or is this page "(There is currently no text in this page)"? But I'd *love* a tutorial on creating a custom model. My app uses db4o.NET as a backend and creating and updating the default model is horribly horribly slow. Anyway, thanks for the attachment. That is really interesting. > Mike, how about adding a custom tree model to display DataTables to > Gtk.DotNet? I think this could really be a useful feature since Gtk# > completly lacks support for DataTables. I would volunteer to start > working on it if you want. -- Consonance: an Open Source .NET OpenGroupware client. Contact:awilliam at whitemiceconsulting.com http://freshmeat.net/projects/consonance/ From cdhowie at gmail.com Tue Jul 22 09:24:40 2008 From: cdhowie at gmail.com (Chris Howie) Date: Tue, 22 Jul 2008 09:24:40 -0400 Subject: [Gtk-sharp-list] Data grid comparable to the data grid control in MS/VS In-Reply-To: <1216731307.4538.3.camel@linux-nnci.site> References: <79810.1091.qm@web50311.mail.re2.yahoo.com> <1216643896.4934.0.camel@linux-nnci.site> <4885773D.3070206@gmx.net> <1216731307.4538.3.camel@linux-nnci.site> Message-ID: <3d2f29dc0807220624s14935f67g4ceba9cba7983fd1@mail.gmail.com> On Tue, Jul 22, 2008 at 8:55 AM, Adam Tauno Williams wrote: > On Tue, 2008-07-22 at 07:59 +0200, Christian Hoff wrote: >> I have written a custom TreeModel to display DataTables. With this one >> it should be easy to display a DataTable in a Gtk.TreeView or any other >> widget you want. Maybe it's even compatible with the Medsphere widget. >> However, I had to make use of GInterface implementation which is only >> supported in Gtk# 2.12 (see >> http://www.mono-project.com/ImplementingGInterfaces) > > Is it just me or is this page "(There is currently no text in this > page)"? I see content from over here. Is your mail client erroneously including the closing ")" in the URL or something? -- Chris Howie http://www.chrishowie.com http://en.wikipedia.org/wiki/User:Crazycomputers From miltondp at gmail.com Tue Jul 22 09:25:33 2008 From: miltondp at gmail.com (Milton Pividori) Date: Tue, 22 Jul 2008 10:25:33 -0300 Subject: [Gtk-sharp-list] Data grid comparable to the data grid control in MS/VS In-Reply-To: <1216731307.4538.3.camel@linux-nnci.site> References: <79810.1091.qm@web50311.mail.re2.yahoo.com> <1216643896.4934.0.camel@linux-nnci.site> <4885773D.3070206@gmx.net> <1216731307.4538.3.camel@linux-nnci.site> Message-ID: <1216733133.6421.4.camel@wasabi> http://www.mono-project.com/ImplementingGInterfaces El mar, 22-07-2008 a las 08:55 -0400, Adam Tauno Williams escribi?: > Is it just me or is this page "(There is currently no text in this > page)"? -- Milton Pividori Blog: http://www.miltonpividori.com.ar Gtalk & Jabber ID: miltondp at gmail.com GnuPG Public Key: gpg --keyserver subkeys.pgp.net --recv-key 0x663C185C From baseman_2001 at web.de Sun Jul 20 16:26:47 2008 From: baseman_2001 at web.de (baseman_2008) Date: Sun, 20 Jul 2008 13:26:47 -0700 (PDT) Subject: [Gtk-sharp-list] New Window Message-ID: <18558313.post@talk.nabble.com> This is maybe a really stupid question, but i am new to Gtk#. In MonoDevelop I can add a new window with a single click. How can i call these windows in my application? My plan is to open the new window out of the mainwindow! Would be so nice if I'll get an answer... baseman_2008 -- View this message in context: http://www.nabble.com/New-Window-tp18558313p18558313.html Sent from the Mono - Gtk# mailing list archive at Nabble.com. From baseman_2001 at web.de Mon Jul 21 02:23:32 2008 From: baseman_2001 at web.de (baseman_2008) Date: Sun, 20 Jul 2008 23:23:32 -0700 (PDT) Subject: [Gtk-sharp-list] New Window In-Reply-To: <18558313.post@talk.nabble.com> References: <18558313.post@talk.nabble.com> Message-ID: <18562823.post@talk.nabble.com> Thank you for your quick answer! Yeah, I know that! But isn't it possible to design this window with Stetic? -- View this message in context: http://www.nabble.com/New-Window-tp18558313p18562823.html Sent from the Mono - Gtk# mailing list archive at Nabble.com. From rseshu at yahoo.com Mon Jul 21 08:18:32 2008 From: rseshu at yahoo.com (Sesh@mono) Date: Mon, 21 Jul 2008 05:18:32 -0700 (PDT) Subject: [Gtk-sharp-list] Which repository should I use for gtkcore Message-ID: <18534362.post@talk.nabble.com> I am trying to build a cs file that uses Gtk. It gives compilation errors as it could not find Gtk package. When I tried to get GTK add-in, it fails with the message that it could not resolve the dependency on GTKCore and core. Which repository should I use to get these packages? I am using MintLinux (Daryna) that uses Ubuntu repositories for all the required updates. My MonoDevelop version is 0.14 -- View this message in context: http://www.nabble.com/Which-repository-should-I-use-for-gtkcore-tp18534362p18534362.html Sent from the Mono - Gtk# mailing list archive at Nabble.com. From cdhowie at gmail.com Tue Jul 22 13:11:50 2008 From: cdhowie at gmail.com (Chris Howie) Date: Tue, 22 Jul 2008 13:11:50 -0400 Subject: [Gtk-sharp-list] Which repository should I use for gtkcore In-Reply-To: <18534362.post@talk.nabble.com> References: <18534362.post@talk.nabble.com> Message-ID: <3d2f29dc0807221011i370b6022qb8f9522462418048@mail.gmail.com> On Mon, Jul 21, 2008 at 8:18 AM, Sesh at mono wrote: > I am trying to build a cs file that uses Gtk. It gives compilation errors as > it could not find Gtk package. When I tried to get GTK add-in, it fails with > the message that it could not resolve the dependency on GTKCore and core. > Which repository should I use to get these packages? I am using MintLinux > (Daryna) that uses Ubuntu repositories for all the required updates. My > MonoDevelop version is 0.14 You probably need to install Gtk# in your package manager first. And MD 0.14 is really old, you should update to at least 1.0. -- Chris Howie http://www.chrishowie.com http://en.wikipedia.org/wiki/User:Crazycomputers From m.j.hutchinson at gmail.com Tue Jul 22 13:16:50 2008 From: m.j.hutchinson at gmail.com (Michael Hutchinson) Date: Tue, 22 Jul 2008 13:16:50 -0400 Subject: [Gtk-sharp-list] New Window In-Reply-To: <18562823.post@talk.nabble.com> References: <18558313.post@talk.nabble.com> <18562823.post@talk.nabble.com> Message-ID: On Mon, Jul 21, 2008 at 2:23 AM, baseman_2008 wrote: > > Thank you for your quick answer! > > Yeah, I know that! But isn't it possible to design this window with Stetic? Of course. Static lets you create windows derived from Gtk.Window, so if you create a Window called e.g. MySteticWindow, you can do something like MySteticWindow window = new MySteticWindow (); window.ShowAll (); -- Michael Hutchinson http://mjhutchinson.com From ajselvig at gmail.com Wed Jul 23 08:54:58 2008 From: ajselvig at gmail.com (Andy Selvig) Date: Wed, 23 Jul 2008 07:54:58 -0500 Subject: [Gtk-sharp-list] Dragging Floating windows Message-ID: Hello All- I'm having some trouble with dragging a floating, decoration-less window around the screen. I have written a small (tried to keep it under 100 lines but failed) app that demonstrates the problem. The main window simply contains a button. When the user clicks on the button, the button reparents itself to a floating window and the user can then drag the window around the screen. The problem is that, after the user clicks the button but BEFORE they let go of the mouse button, the dragging doesn't seem to behave quite right. If the mouse is moved slowly enough, it works fine, but at a certain speed the floating window will stop tracking it. The strange thing is that if the user lets go and clicks on the button again, the dragging will work perfectly, no matter what the speed. It basically just doesn't seem to be receiving the mouse events properly after the reparent. I tried looking through the C source for HandleBox, but couldn't find what makes it not behave this way. My source code is attached. Any help would be greatly appreciated. Thanks. -Andy -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: FloatDraggingTest.cs Url: http://lists.ximian.com/pipermail/gtk-sharp-list/attachments/20080723/f4f0fc08/attachment-0001.pl From mkestner at gmail.com Wed Jul 23 09:12:54 2008 From: mkestner at gmail.com (Mike Kestner) Date: Wed, 23 Jul 2008 08:12:54 -0500 Subject: [Gtk-sharp-list] Data grid comparable to the data grid control in MS/VS In-Reply-To: <4885773D.3070206@gmx.net> References: <79810.1091.qm@web50311.mail.re2.yahoo.com> <1216643896.4934.0.camel@linux-nnci.site> <4885773D.3070206@gmx.net> Message-ID: <1216818774.3755.45.camel@server.site> On Tue, 2008-07-22 at 07:59 +0200, Christian Hoff wrote: > I have written a custom TreeModel to display DataTables. With this one > it should be easy to display a DataTable in a Gtk.TreeView or any other > widget you want. Maybe it's even compatible with the Medsphere widget. > However, I had to make use of GInterface implementation which is only > supported in Gtk# 2.12 (see > http://www.mono-project.com/ImplementingGInterfaces) > > Mike, how about adding a custom tree model to display DataTables to > Gtk.DotNet? I think this could really be a useful feature since Gtk# > completly lacks support for DataTables. I would volunteer to start > working on it if you want. There have been several efforts toward a "data-bound" tree model over the years. The archives should have links to fairly recent efforts to provide databinding for the entire toolkit. I would be more interested in including such a data binding than a tree model specifically written for DataTable. Although I also think such a project could easily stand on its own, and might be easier to integrate into applications than a Gtk# 2.next dependency. Mike From brett_senior at yahoo.com.au Fri Jul 25 02:25:31 2008 From: brett_senior at yahoo.com.au (Brett Senior) Date: Thu, 24 Jul 2008 23:25:31 -0700 (PDT) Subject: [Gtk-sharp-list] Overriding default behaviour of a cellrenderertext Message-ID: <204571.35936.qm@web50302.mail.re2.yahoo.com> I have written a simple data grid using a treeview and underlying list store due to the fact that there is not one in GTK# and the Medsphere one does not allow editing (and the documentation is *very* poor). Basically I have a key press handler on the main window that allows the user to use the Insert and Del keys to insert and delete rows respectively. The ones that I am having problems with are the Return/Enter key (to move down one 'row' and to add a new row if at the last row) and Tab (to move to the next column and put the cell in edit mode). The problem is that when you Return or Tab it takes you to the correct cell etc, but the previous cell you have just processed does not fire the Edited event for the cell renderer - and thus I cannot save the processed text in the list store. I have tried other keys with the result being the same. Does anybody have an idea why it is behaving like this given that if I mouse click to a different cell then the Edited event is fired - thus allowing things to work. I understand that there is an Entry that underlies the cell renderer text - but couldn't see what I could change there (if I connected to the 'start edit' event and then used the 'args.editable' member) so that seemed to be a dead end as well. Any help in this matter would be much appreciated. Thanks, Brett Senior. Find a better answer, faster with the new Yahoo!7 Search. www.yahoo7.com.au/search -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/gtk-sharp-list/attachments/20080724/344091a2/attachment.html From christian_hoff at gmx.net Fri Jul 25 04:25:31 2008 From: christian_hoff at gmx.net (Christian Hoff) Date: Fri, 25 Jul 2008 10:25:31 +0200 Subject: [Gtk-sharp-list] Overriding default behaviour of a cellrenderertext In-Reply-To: <204571.35936.qm@web50302.mail.re2.yahoo.com> References: <204571.35936.qm@web50302.mail.re2.yahoo.com> Message-ID: <48898DFB.8000604@gmx.net> Looks like the event is not passed to the Entry. Pressing "return" in the entry should definetly fire an edited event. Although I have no idea how to handle key events in Gtk, is it possible that you have overriden some sort of OnKeyPress method in the TreeView? If you don't call base.OnKeyPress the TreeView will never get notified about the pressed key; if the Entry is a child widget if the TreeView it may not receive the event as well. But that's just pure speculation. If you really want to bring light into the dark, you should have a look into the the Gtk+ code of the entry or create your own class derived from Gtk.CellRendererText, override the OnEditingStartedMethod, call base.OnEditingStarted from this context and attach some useful signal handlers to the returned entry of the base method to see whether it gets an event when "return" is pressed. Christian > I have written a simple data grid using a treeview and underlying list > store due to the fact that there is not one in GTK# and the Medsphere > one does not allow editing (and the documentation is *very* poor). > Basically I have a key press handler on the main window that allows > the user to use the Insert and Del keys to insert and delete rows > respectively. The ones that I am having problems with are the > Return/Enter key (to move down one 'row' and to add a new row if at > the last row) and Tab (to move to the next column and put the cell in > edit mode). The problem is that when you Return or Tab it takes you > to the correct cell etc, but the previous cell you have just processed > does not fire the Edited event for the cell renderer - and thus I > cannot save the processed text in the list store. I have tried other > keys with the result being the same. Does anybody have an idea why it > is behaving like this given that if I mouse click to a different cell > then the Edited event is fired - thus allowing things to work. I > understand that there is an Entry that underlies the cell renderer > text - but couldn't see what I could change there (if I connected to > the 'start edit' event and then used the 'args.editable' member) so > that seemed to be a dead end as well. From root.operator at gmail.com Fri Jul 25 16:11:29 2008 From: root.operator at gmail.com (Chris Jackson) Date: Fri, 25 Jul 2008 15:11:29 -0500 Subject: [Gtk-sharp-list] Gtk.Combobox Message-ID: <4ba8aa210807251311g33839348v7dca9516d39874fb@mail.gmail.com> Ok - continuing on my mono / Gtk# journey: Im populating comboboxes today - i am using the sample from http://www.mono-project.com/FAQ:_Gtk - How do I fill a Gtk.ComboBox? I have the combobox populated - but the rendered popup list is trying to show all the items. Is there a property on Gtk.Combobox to limit and place a scroll inside the popup? -- Chris Jackson http://2advent.com:81/ root.operator at gmail.com From cdhowie at gmail.com Fri Jul 25 16:17:09 2008 From: cdhowie at gmail.com (Chris Howie) Date: Fri, 25 Jul 2008 16:17:09 -0400 Subject: [Gtk-sharp-list] Gtk.Combobox In-Reply-To: <4ba8aa210807251311g33839348v7dca9516d39874fb@mail.gmail.com> References: <4ba8aa210807251311g33839348v7dca9516d39874fb@mail.gmail.com> Message-ID: <3d2f29dc0807251317u389e4f40wc5402d80161a75de@mail.gmail.com> On Fri, Jul 25, 2008 at 4:11 PM, Chris Jackson wrote: > Ok - continuing on my mono / Gtk# journey: > > Im populating comboboxes today - i am using the sample from > http://www.mono-project.com/FAQ:_Gtk - How do I fill a Gtk.ComboBox? > > I have the combobox populated - but the rendered popup list is trying > to show all the items. > Is there a property on Gtk.Combobox to limit and place a scroll inside > the popup? It will scroll the list when it exceeds the height of the display. -- Chris Howie http://www.chrishowie.com http://en.wikipedia.org/wiki/User:Crazycomputers From svalbardcolaco at gmail.com Sat Jul 26 00:56:32 2008 From: svalbardcolaco at gmail.com (svalbard colaco) Date: Sat, 26 Jul 2008 10:26:32 +0530 Subject: [Gtk-sharp-list] NEED URGENT HELP:Gnome-sharp 2.16.0 build fails Message-ID: <726d283d0807252156yaaa27e3k8ca60c6a7724ab29@mail.gmail.com> Hi all; I could sucessfully build gtk-sharp-2.11.91 and was compiling gnome-sharp-2.16.0 . what are the dependencies for *gnome-sharp*? It configures properly but fails during make giving the following error. Actually the art and gnomevfs folder build correctly generated/App.cs(41,31): warning CS0108: Gnome.App.Namehides inherited member Gtk.Widget.Name . Use the new keyword if hiding was intended /usr/x11_install/lib/mono/gac/gtk-sharp/2.12.0.0__35e10195dab3c99f/gtk-sharp.dll (Location of the symbol related to previous warning) generated/ThemeFile.cs(41,40): warning CS0809: Obsolete member `Gnome.ThemeFile.ToString()' overrides non-obsolete member `object.ToString()' CanvasPathDef.custom(24,51):* error *CS1502: The best overloaded method match for `Gnome.CanvasPathDef.gnome_canvas_path_def_new_from_bpath(System.IntPtr)' has some invalid arguments generated/CanvasPathDef.cs(263,38): (Location of the symbol related to previous error) CanvasPathDef.custom(24,51):* error* CS1615: Argument `1' should not be passed with the `ref' keyword Compilation failed: 2 error(s), 2 warnings make[3]: *** [gnome-sharp.dll] Error 1 make[3]: Leaving directory `/usr/x11_install/src/gnome-sharp-2.16.0/gnome' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/usr/x11_install/src/gnome-sharp-2.16.0/gnome' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/usr/x11_install/src/gnome-sharp-2.16.0' make: *** [all] Error 2 Please any pointers in this regard will be og great help. Thanks sv. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/gtk-sharp-list/attachments/20080726/38bb07ee/attachment.html From svalbardcolaco at gmail.com Sat Jul 26 01:18:30 2008 From: svalbardcolaco at gmail.com (svalbard colaco) Date: Sat, 26 Jul 2008 10:48:30 +0530 Subject: [Gtk-sharp-list] Building GNOME SHARP using ./bootstrap-2.16.0 --prefix=/usr Message-ID: <726d283d0807252218o1c6fedeayb5664c7f69225044@mail.gmail.com> Hi all How to u compile gnome-sharp-2.16.0 using ./bootstrap command instead of ./configure? I'm getting an error saying that *./bootsrap: NO such file or directory* and from where do run this command ? As i cant see any bootstrap file/binary in the folder... Plz help.... Thanx & Regards sv. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/gtk-sharp-list/attachments/20080726/7abe90ae/attachment.html From aria.francesco at gmail.com Sat Jul 26 05:49:47 2008 From: aria.francesco at gmail.com (Panoramix) Date: Sat, 26 Jul 2008 02:49:47 -0700 (PDT) Subject: [Gtk-sharp-list] A Gtk Graph control... where? In-Reply-To: <1172086879.28760.1.camel@indi> References: <1172086879.28760.1.camel@indi> Message-ID: <18665126.post@talk.nabble.com> To?o Ruiz wrote: > > Hi, > I need a control to draw a graph for my program. > I have tried NPlot with no success. Do anyone know any graph control for > gtk+mono??? > > thanks > > regards > > _______________________________________________ > Gtk-sharp-list maillist - Gtk-sharp-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/gtk-sharp-list > > Read this post : http://www.nabble.com/forum/ViewPost.jtp?post=17696987&framed=y >From this site you can download the component. It works well and is beautiful. http://www.medsphere.org/projects/widgets ----- :working: ----------------------------------------------------------------------------- http://freeflow.awardspace.com http://freeflow.awardspace.com ----------------------------------------------------------------------------- -- View this message in context: http://www.nabble.com/A-Gtk-Graph-control...-where--tp9087737p18665126.html Sent from the Mono - Gtk# mailing list archive at Nabble.com. From fr.daniil at gmail.com Sat Jul 26 06:22:08 2008 From: fr.daniil at gmail.com (daniil00) Date: Sat, 26 Jul 2008 03:22:08 -0700 (PDT) Subject: [Gtk-sharp-list] Gtk.Combobox In-Reply-To: <4ba8aa210807251311g33839348v7dca9516d39874fb@mail.gmail.com> References: <4ba8aa210807251311g33839348v7dca9516d39874fb@mail.gmail.com> Message-ID: <18665474.post@talk.nabble.com> Take a look here http://code.google.com/p/holly-gtk-widgets/ at the HSimpleComboBox widget. It has the DropDownHeight property. dr34mc0d3r wrote: > > Ok - continuing on my mono / Gtk# journey: > > Im populating comboboxes today - i am using the sample from > http://www.mono-project.com/FAQ:_Gtk - How do I fill a Gtk.ComboBox? > > I have the combobox populated - but the rendered popup list is trying > to show all the items. > Is there a property on Gtk.Combobox to limit and place a scroll inside > the popup? > > -- > Chris Jackson > http://2advent.com:81/ > root.operator at gmail.com > _______________________________________________ > Gtk-sharp-list maillist - Gtk-sharp-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/gtk-sharp-list > > -- View this message in context: http://www.nabble.com/Gtk.Combobox-tp18658838p18665474.html Sent from the Mono - Gtk# mailing list archive at Nabble.com. From mkestner at gmail.com Sat Jul 26 11:32:24 2008 From: mkestner at gmail.com (Mike Kestner) Date: Sat, 26 Jul 2008 10:32:24 -0500 Subject: [Gtk-sharp-list] NEED URGENT HELP:Gnome-sharp 2.16.0 build fails In-Reply-To: <726d283d0807252156yaaa27e3k8ca60c6a7724ab29@mail.gmail.com> References: <726d283d0807252156yaaa27e3k8ca60c6a7724ab29@mail.gmail.com> Message-ID: <1217086344.3755.65.camel@server.site> On Sat, 2008-07-26 at 10:26 +0530, svalbard colaco wrote: > Hi all; > > I could sucessfully build gtk-sharp-2.11.91 and was compiling > gnome-sharp-2.16.0 . what are the dependencies for gnome-sharp? > It configures properly but fails during make giving the following error. Your choice of versions is a bit strange. You should use gtk-sharp-2.12.1 for gtk+ >= 2.12 systems. The corresponding gnome-sharp version for that is gnome-sharp-2.20.1. http://ftp.gnome.org/pub/gnome/sources/gtk-sharp/2.12/gtk-sharp-2.12.1.tar.gz http://ftp.gnome.org/pub/gnome/sources/gnome-sharp/2.20/gnome-sharp-2.20.1.tar.gz As far as bootstrap vs configure, use configure on a tarball. The boostrap scripts are for svn builds. Mike From plexer at gmail.com Sun Jul 27 23:28:34 2008 From: plexer at gmail.com (Plex) Date: Mon, 28 Jul 2008 13:28:34 +1000 Subject: [Gtk-sharp-list] Windows gtk-sharp 2.12 assembly Message-ID: <9272038d0807272028g308cf8b5p8d61ec3c1cdfb617@mail.gmail.com> I've run in to a problem distributing my mono app as there is (I believe) currently no 2.12 assembly for Windows. Would some kind soul be able to instruct me as to how to build my application against 2.10 instead? I'm using monodevelop on Ubuntu Hardy. I tried compiling from the Mono command line in Windows, which I expected would link it against the correct assembly, but for some reason it is still being linked against 2.12. For reference my compile command was: gmcs "/out:GtkSharpForm.exe" "-pkg:gtk-sharp-2.0" "-pkg:glib-sharp-2.0" "-pkg:glade-sharp-2.0" "/r:System.dll" "/r:Mono.Posix.dll" /noconfig /nologo /codepage:utf8 /warn:4 /debug:+ /debug:full /optimize+ /define:"DEBUG" /t:exe "/res:z:/home/plexer/src/thesis/background/gui/GtkSharpForm/GtkSharpForm/gtk-gui/gui.stetic,gui.stetic" "z:/home/plexer/src/thesis/background/gui/GtkSharpForm/GtkSharpForm/gtk-gui/generated.cs" "z:/home/plexer/src/thesis/background/gui/GtkSharpForm/GtkSharpForm/MainWindow.cs" "z:/home/plexer/src/thesis/background/gui/GtkSharpForm/GtkSharpForm/gtk-gui/MainWindow.cs" "z:/home/plexer/src/thesis/background/gui/GtkSharpForm/GtkSharpForm/Main.cs" "z:/home/plexer/src/thesis/background/gui/GtkSharpForm/GtkSharpForm/AssemblyInfo.cs" (This is just a test application with a single form and a button that prints Hello World to console). I stole the compile string from monodevelop. Additionally, is anyone aware as to when the 2.12 assembly may be making an appearance on Windows? Regards, James McGill From m.j.hutchinson at gmail.com Sun Jul 27 23:34:16 2008 From: m.j.hutchinson at gmail.com (Michael Hutchinson) Date: Sun, 27 Jul 2008 23:34:16 -0400 Subject: [Gtk-sharp-list] Windows gtk-sharp 2.12 assembly In-Reply-To: <9272038d0807272028g308cf8b5p8d61ec3c1cdfb617@mail.gmail.com> References: <9272038d0807272028g308cf8b5p8d61ec3c1cdfb617@mail.gmail.com> Message-ID: On Sun, Jul 27, 2008 at 11:28 PM, Plex wrote: > I've run in to a problem distributing my mono app as there is (I > believe) currently no 2.12 assembly for Windows. > > Would some kind soul be able to instruct me as to how to build my > application against 2.10 instead? > > I'm using monodevelop on Ubuntu Hardy. Install the GTK# 2.10 via the MD addin manager, and set the target GTK# version for each of your projects to 2.10. -- Michael Hutchinson http://mjhutchinson.com From m.j.hutchinson at gmail.com Sun Jul 27 23:35:16 2008 From: m.j.hutchinson at gmail.com (Michael Hutchinson) Date: Sun, 27 Jul 2008 23:35:16 -0400 Subject: [Gtk-sharp-list] Windows gtk-sharp 2.12 assembly In-Reply-To: References: <9272038d0807272028g308cf8b5p8d61ec3c1cdfb617@mail.gmail.com> Message-ID: On Sun, Jul 27, 2008 at 11:34 PM, Michael Hutchinson wrote: > On Sun, Jul 27, 2008 at 11:28 PM, Plex wrote: >> I've run in to a problem distributing my mono app as there is (I >> believe) currently no 2.12 assembly for Windows. >> >> Would some kind soul be able to instruct me as to how to build my >> application against 2.10 instead? >> >> I'm using monodevelop on Ubuntu Hardy. > > Install the GTK# 2.10 via the MD addin manager, and set the target Uh, make that the "GTK# 2.10 addin". I should probably be going to bed... -- Michael Hutchinson http://mjhutchinson.com From plexer at plexer.net Sun Jul 27 23:43:11 2008 From: plexer at plexer.net (Plex) Date: Mon, 28 Jul 2008 13:43:11 +1000 Subject: [Gtk-sharp-list] Windows gtk-sharp 2.12 assembly In-Reply-To: References: <9272038d0807272028g308cf8b5p8d61ec3c1cdfb617@mail.gmail.com> Message-ID: <9272038d0807272043h190a2a13o2317c71181430eba@mail.gmail.com> Thanks for the advice. Unfortunately I get an "The instillation failed" error message. I'll try and dig in to this and see what is causing it. Regards, James On Mon, Jul 28, 2008 at 1:35 PM, Michael Hutchinson wrote: > On Sun, Jul 27, 2008 at 11:34 PM, Michael Hutchinson > wrote: >> On Sun, Jul 27, 2008 at 11:28 PM, Plex wrote: >>> I've run in to a problem distributing my mono app as there is (I >>> believe) currently no 2.12 assembly for Windows. >>> >>> Would some kind soul be able to instruct me as to how to build my >>> application against 2.10 instead? >>> >>> I'm using monodevelop on Ubuntu Hardy. >> >> Install the GTK# 2.10 via the MD addin manager, and set the target > > Uh, make that the "GTK# 2.10 addin". I should probably be going to bed... > > -- > Michael Hutchinson > http://mjhutchinson.com > From svalbardcolaco at gmail.com Mon Jul 28 00:44:56 2008 From: svalbardcolaco at gmail.com (svalbard colaco) Date: Mon, 28 Jul 2008 10:14:56 +0530 Subject: [Gtk-sharp-list] NEED URGENT HELP:Gnome-sharp 2.16.0 build fails In-Reply-To: <1217086344.3755.65.camel@server.site> References: <726d283d0807252156yaaa27e3k8ca60c6a7724ab29@mail.gmail.com> <1217086344.3755.65.camel@server.site> Message-ID: <726d283d0807272144nebc45aem709950b01600b50d@mail.gmail.com> Hi Mike ; I have tried with gtk-sharp-2.12.1 and gnome-sharp-2.20.1 ... but the problem persist ; Can u tell me what are the dependencies for gnome-sharp ? I have even installed libgnome canvas... in my local prefix.... all the installation is in my local prefix... Does it need libgnomeui and some things more ? Thnx sv. On Sat, Jul 26, 2008 at 9:02 PM, Mike Kestner wrote: > > On Sat, 2008-07-26 at 10:26 +0530, svalbard colaco wrote: > > Hi all; > > > > I could sucessfully build gtk-sharp-2.11.91 and was compiling > > gnome-sharp-2.16.0 . what are the dependencies for gnome-sharp? > > It configures properly but fails during make giving the following error. > > Your choice of versions is a bit strange. You should use > gtk-sharp-2.12.1 for gtk+ >= 2.12 systems. The corresponding > gnome-sharp version for that is gnome-sharp-2.20.1. > > > http://ftp.gnome.org/pub/gnome/sources/gtk-sharp/2.12/gtk-sharp-2.12.1.tar.gz > > http://ftp.gnome.org/pub/gnome/sources/gnome-sharp/2.20/gnome-sharp-2.20.1.tar.gz > > As far as bootstrap vs configure, use configure on a tarball. The > boostrap scripts are for svn builds. > > Mike > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/gtk-sharp-list/attachments/20080728/90fa03b8/attachment.html From mkestner at gmail.com Mon Jul 28 11:30:56 2008 From: mkestner at gmail.com (Mike Kestner) Date: Mon, 28 Jul 2008 10:30:56 -0500 Subject: [Gtk-sharp-list] NEED URGENT HELP:Gnome-sharp 2.16.0 build fails In-Reply-To: <726d283d0807272144nebc45aem709950b01600b50d@mail.gmail.com> References: <726d283d0807252156yaaa27e3k8ca60c6a7724ab29@mail.gmail.com> <1217086344.3755.65.camel@server.site> <726d283d0807272144nebc45aem709950b01600b50d@mail.gmail.com> Message-ID: <1217259057.3755.105.camel@server.site> On Mon, 2008-07-28 at 10:14 +0530, svalbard colaco wrote: > Hi Mike ; > > I have tried with gtk-sharp-2.12.1 and gnome-sharp-2.20.1 ... but the > problem persist ; > Can u tell me what are the dependencies for gnome-sharp ? I have even > installed > libgnome canvas... in my local prefix.... all the installation is in > my local prefix... > Does it need libgnomeui and some things more ? The libraries required for gnome-sharp.dll are listed right at the bottom of the configure message: libgnome, libgnomeui, libgnomecanvas, libgnomeprint, libgnomeprintui, and libpanelapplet. Mike From kenw at quarter-flash.com Tue Jul 29 00:03:08 2008 From: kenw at quarter-flash.com (Kenneth D. Weinert) Date: Mon, 28 Jul 2008 22:03:08 -0600 Subject: [Gtk-sharp-list] Windows gtk-sharp 2.12 assembly In-Reply-To: References: <9272038d0807272028g308cf8b5p8d61ec3c1cdfb617@mail.gmail.com> Message-ID: <488E967C.4020000@quarter-flash.com> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I *thought* I had done that - but I don't seem to have gotten rid of the 2.12 gtk# reference. /home/kenw/Projects/GTKGladeTutorial/GTKGladeTutorial/gtk-gui/generated.cs(27,27): error CS0433: The imported type `Gtk.ActionGroup' is defined multiple times /home/kenw/.config/MonoDevelop/addins/MonoDevelop.GtkCore.GtkSharp.2.10.2.10.0.20/lib/mono/gac/gtk-sharp/2.10.0.0__35e10195dab3c99f/gtk-sharp.dll (Location of the symbol related to previous error) /usr/lib/mono/gac/gtk-sharp/2.12.0.0__35e10195dab3c99f/gtk-sharp.dll (Location of the symbol related to previous error) I edited my References and chose the 2.10 GTK# and the 2.12 is not there now. I looked at the files in the Project (fgrep is your friend :) and I did find that the .mdp file had this at the end: I edited that to say 2.10, exited and restarted MonoDevelop to no avail. Any thoughts? This project was started with GTK# 2.12 and it compiled and ran just fine. Michael Hutchinson wrote: > On Sun, Jul 27, 2008 at 11:34 PM, Michael Hutchinson > wrote: >> On Sun, Jul 27, 2008 at 11:28 PM, Plex wrote: >>> I've run in to a problem distributing my mono app as there is (I >>> believe) currently no 2.12 assembly for Windows. >>> >>> Would some kind soul be able to instruct me as to how to build my >>> application against 2.10 instead? >>> >>> I'm using monodevelop on Ubuntu Hardy. >> Install the GTK# 2.10 via the MD addin manager, and set the target > > Uh, make that the "GTK# 2.10 addin". I should probably be going to bed... > - -- Ken Weinert http://quarter-flash.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFIjpZ8H0OpnUzq8fARAvb5AJ9I0rNYCs40OPGX3ZRkUFdYmdA3KwCgi5K7 hm9nEUP7rJpIR1vr44Mixzw= =Lx4M -----END PGP SIGNATURE-----