[Gtk-sharp-list] Gtk-sharp-list Digest, Vol 34, Issue 8

Darwin Reynoso monouser at gmail.com
Mon Feb 18 06:08:23 EST 2008


On 2/17/08, gtk-sharp-list-request at lists.ximian.com
<gtk-sharp-list-request at lists.ximian.com> wrote:
> Send Gtk-sharp-list mailing list submissions to
>        gtk-sharp-list at lists.ximian.com
>
> To subscribe or unsubscribe via the World Wide Web, visit
>        http://lists.ximian.com/mailman/listinfo/gtk-sharp-list
> or, via email, send a message with subject or body 'help' to
>        gtk-sharp-list-request at lists.ximian.com
>
> You can reach the person managing the list at
>        gtk-sharp-list-owner at lists.ximian.com
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Gtk-sharp-list digest..."
>
>
> Today's Topics:
>
>   1. Announcing Gtk# release 2.8.5 (Mike Kestner)
>   2. Announcing Gtk# release 2.10.3 and Gnome# release 2.16.1
>      (Mike Kestner)
>   3. Re: [Mono-dev] Announcing Gtk# release 2.10.3 and Gnome#
>      release   2.16.1 (Mike Kestner)
>   4. How to Get Row Values from a TreeView (Marc Glenn)
>   5. Re: How to Get Row Values from a TreeView (Philip Van Hoof)
>   6. How to update the version of cairo used by        gtk-sharp on
>      Window (David Cantin)
>   7. Re: How to Get Row Values from a TreeView (Marc Glenn)
>   8. Menubar item (Darwin Reynoso)
>   9. Re: Menubar item (Chris Howie)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Wed, 13 Feb 2008 12:10:20 -0600
> From: Mike Kestner <mkestner at novell.com>
> Subject: [Gtk-sharp-list] Announcing Gtk# release 2.8.5
> To: gtk-sharp-list <gtk-sharp-list at lists.ximian.com>,   mono-devel-list
>        <mono-devel-list at lists.ximian.com>
> Message-ID: <1202926220.4093.30.camel at t61p.site>
> Content-Type: text/plain; charset=UTF-8
>
> We are pleased to announce release 2.8.5 of Gtk#.  Packages are
> available for supported platforms at:
>
> http://mono-project.com/Downloads
>
> Source tarball has been uploaded to ftp.gnome.org.
>
> This is a bugfix release with limited new API additions.  Users of the
> impending mono 1.9 release should upgrade their 2.8 installs to this
> release to avoid a potential problem in glade-sharp resulting from
> recent System.Reflection changes.
>
> What is Gtk#:
> Gtk# is a set of .Net/mono language bindings to assorted Gtk+ and GNOME
> libraries.  Supported libraries include pango, atk, gtk+, libglade,
> libgnome, libgnomeui, libgnomecanvas, libgnomeprint, libgnomeprintui,
> libpanelapplet, librsvg, libvte, libgtkhtml, and gconf.
>
> What's new in version 2.8.5:
> - Performance, memory management, and object finalization improvements.
> - GLib.ExceptionManager to support exception handling in signal
> callbacks.
> - Numerous bugfixes
>
> Thanks to the contributors to this release: Wade Berrier, Eskil Bylund,
> Sebastian Dr?ge, Michael Hutchinson, Lluis Sanchez Gaul, and myself.
>
> Discussion of Gtk# occurs on gtk-sharp-list at lists.ximian.com and defects
> can be reported to bugzilla.novell.com, module gtk#.
>
> --
> Mike Kestner <mkestner at novell.com>
>
>
>
> ------------------------------
>
> Message: 2
> Date: Wed, 13 Feb 2008 12:10:27 -0600
> From: Mike Kestner <mkestner at novell.com>
> Subject: [Gtk-sharp-list] Announcing Gtk# release 2.10.3 and Gnome#
>        release 2.16.1
> To: gtk-sharp-list <gtk-sharp-list at lists.ximian.com>,
>        mono-devel-list at lists.ximian.com
> Message-ID: <1202926227.4093.31.camel at t61p.site>
> Content-Type: text/plain; charset=UTF-8
>
> We are pleased to announce version 2.10.3 of Gtk# and version 2.16.1 of
> Gnome# .  Packages are available for supported platforms at:
>
> http://mono-project.com/Downloads
>
> Source tarballs have been uploaded to ftp.gnome.org.
>
> I'm also happy to announce a coordinated release of Gtk# for the MS
> runtime produced by the folks at Medsphere.  It is available for
> download at:
>
> http://sourceforge.net/project/showfiles.php?group_id=74626&package_id=223067
>
> This is a bugfix release with limited new API additions.  Users of the
> impending mono 1.9 release should upgrade their 2.10/2.16 installs to
> this release to avoid a potential problem in glade-sharp resulting from
> recent System.Reflection changes.
>
> What is Gtk#:
> Gtk# and Gnome# are a set of .Net/mono language bindings to assorted Gtk
> + and GNOME libraries.  Supported libraries include pango, atk, gtk+,
> libglade, libgnome, libgnomeui, libgnomecanvas, libgnomeprint,
> libgnomeprintui, libpanelapplet, librsvg, libvte, libgtkhtml, and gconf.
>
> What's new in version 2.10.3:
> - Performance, memory management, and object finalization improvements.
> - GLib.ExceptionManager to support exception handling in signal
> callbacks.
> - GLib.IOChannel and GLib.Spawn classes for process spawning.
> - Numerous bugfixes
>
> Thanks to the contributors to this release: Wade Berrier, Eskil Bylund,
> Sebastian Dr?ge, Michael Hutchinson, Peter Johanson, Lluis Sanchez Gaul,
> and myself.
>
> Discussion of Gtk# occurs on gtk-sharp-list at lists.ximian.com and defects
> can be reported to bugzilla.novell.com, module gtk#.
>
> --
> Mike Kestner <mkestner at novell.com>
>
>
>
> ------------------------------
>
> Message: 3
> Date: Wed, 13 Feb 2008 14:51:10 -0600
> From: Mike Kestner <mkestner at novell.com>
> Subject: Re: [Gtk-sharp-list] [Mono-dev] Announcing Gtk# release
>        2.10.3 and      Gnome# release  2.16.1
> To: Vladimir Dimitrov <vlad.dimitrov at gmail.com>
> Cc: 'gtk-sharp-list' <gtk-sharp-list at lists.ximian.com>,
>        mono-devel-list at lists.ximian.com
> Message-ID: <1202935870.4093.50.camel at t61p.site>
> Content-Type: text/plain
>
>
> On Wed, 2008-02-13 at 22:17 +0200, Vladimir Dimitrov wrote:
> > Hello,
> > Sorry about the stupid question but why would I use Gtk# 2.8.5 when
> > there is Gtk# 2.10.3??? Is there any other reason than that I cannot
> > reference and build apps against older versions of Gtk# if I don't
> > have them installed (policies didn't work for me with VS 2005)
> >
> It was released for support of older platforms which are built on gtk+
> version 2.8 and therefore cannot provide Gtk# 2.10.x.
>
> If all the platforms you want to support ship gtk+-2.10.0 or later
> versions, Gtk# 2.10.3 is probably what you want.   Our windows
> installers both provide 2.10.x currently.
>
> --
> Mike Kestner <mkestner at novell.com>
>
>
>
> ------------------------------
>
> Message: 4
> Date: Thu, 14 Feb 2008 15:27:40 +0800
> From: Marc Glenn <mjamon at ntsp.nec.co.jp>
> Subject: [Gtk-sharp-list] How to Get Row Values from a TreeView
> To: gtk-sharp-list at lists.ximian.com
> Message-ID: <47B3ED6C.8060908 at mnl.ntsp.nec.co.jp>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> Hello everyone,
>
>     Does anyone know how to retrieve values currently displayed on a
> TreeView widget?
>
>     Suppose a row entry from the TreeView was clicked, how can the the
> data in the row be retrieved?
>
>     I checked the Mono Documentation but I can't find a method to do this.
>
>     Thanks for the help
>
> Regards,
> Marc Glenn
>
>
>
>
>
> ------------------------------
>
> Message: 5
> Date: Thu, 14 Feb 2008 13:10:16 +0100
> From: Philip Van Hoof <spam at pvanhoof.be>
> Subject: Re: [Gtk-sharp-list] How to Get Row Values from a TreeView
> To: Marc Glenn <mjamon at ntsp.nec.co.jp>
> Cc: gtk-sharp-list at lists.ximian.com
> Message-ID: <1202991016.7110.30.camel at schtrumpf>
> Content-Type: text/plain
>
>
> On Thu, 2008-02-14 at 15:27 +0800, Marc Glenn wrote:
> > Hello everyone,
> >
> >      Does anyone know how to retrieve values currently displayed on a
> > TreeView widget?
> >
> >      Suppose a row entry from the TreeView was clicked, how can the the
> > data in the row be retrieved?
> >
> >      I checked the Mono Documentation but I can't find a method to do this.
>
> There are a few ways, but this is one possibility:
>
> treeview.Selection.Changed += OnSelectionChanged;
>
> private void OnSelectionChanged; (object o, EventArgs args)
> {
>        Gtk.TreeSelection selection = o as Gtk.TreeSelection;
>        YourColumn'sType data;
>        Gtk.TreeModel model;
>        Gtk.TreeIter iter;
>
>        if (selection.GetSelected (out model, out iter)) {
>                int column = YourColumnNumber;
>                GLib.Value val = GLib.Value.Empty;
>                model.GetValue (iter, column, ref val);
>                data = (YourColumn'sType) val.Val;
>                val.Dispose ();
>        }
> }
>
> Advise: check out the Model View Controller pattern in detail.
>
> Change "YourColumn'sType" into "string" in case the data is a string.
>
>
> --
> Philip Van Hoof, freelance software developer
> home: me at pvanhoof dot be
> gnome: pvanhoof at gnome dot org
> http://pvanhoof.be/blog
> http://codeminded.be
>
>
>
> ------------------------------
>
> Message: 6
> Date: Thu, 14 Feb 2008 14:10:25 -0500
> From: David Cantin <david_cantin at videotron.ca>
> Subject: [Gtk-sharp-list] How to update the version of cairo used by
>        gtk-sharp on Window
> To: gtk-sharp-list <gtk-sharp-list at lists.ximian.com>
> Message-ID: <1203016225.7002.28.camel at ubuntu-tower>
> Content-Type: text/plain; CHARSET=US-ASCII
>
> Hi
>
> I use gtk-sharp, cairo and friends for rendering pdf file's and it's
> work great.
>
> But i got a problem..., When I run my application under Windows, the
> pdf's are lower in quality as if I run my application under linux.
>
> On Linux, I use mono 1.2.6, gtk-sharp 2.10 and cairo 1.4.10
>
> On Windows, I use
>  - mono 1.2.6, gtk-sharp 2.10 and cairo 1.2.6
>  or
>  - .net1.1 with Medsphere gtk-sharp runtime
>
> I guest that the quality difference is due to the difference of cairo
> version.
>
> For some time now, I try without any success to upgrade the version of
> Cairo used by gtk-sharp on windows, and I start to run out a idea...
>
> For now, i have tried to recompile gtk-sharp with the instruction
> provided here[1]. Also, I fetch the last version of Cairo from their web
> site and updated libcairo2.dll from the Medsphere runtime directory. I
> have also updated libpng and zlib. I have also replaced Mono.Cairo.dll
> from a verion that come from my linux setup...
>
> I must admit that I do not understand everything involved here... so, I
> ask for help ;)
>
> David
>
>
> [1] http://live.gnome.org/GTK%2B/Win32/Apps
>
>
>
> ------------------------------
>
> Message: 7
> Date: Fri, 15 Feb 2008 08:56:06 +0800
> From: Marc Glenn <mjamon at ntsp.nec.co.jp>
> Subject: Re: [Gtk-sharp-list] How to Get Row Values from a TreeView
> To: Philip Van Hoof <spam at pvanhoof.be>
> Cc: gtk-sharp-list at lists.ximian.com
> Message-ID: <47B4E326.8000202 at mnl.ntsp.nec.co.jp>
> Content-Type: text/plain; charset="iso-8859-1"
>
> I think this would help.
> Thank you very much.
>
> Philip Van Hoof wrote:
> > On Thu, 2008-02-14 at 15:27 +0800, Marc Glenn wrote:
> >
> >> Hello everyone,
> >>
> >>      Does anyone know how to retrieve values currently displayed on a
> >> TreeView widget?
> >>
> >>      Suppose a row entry from the TreeView was clicked, how can the the
> >> data in the row be retrieved?
> >>
> >>      I checked the Mono Documentation but I can't find a method to do this.
> >>
> >
> > There are a few ways, but this is one possibility:
> >
> > treeview.Selection.Changed += OnSelectionChanged;
> >
> > private void OnSelectionChanged; (object o, EventArgs args)
> > {
> >       Gtk.TreeSelection selection = o as Gtk.TreeSelection;
> >       YourColumn'sType data;
> >       Gtk.TreeModel model;
> >       Gtk.TreeIter iter;
> >
> >       if (selection.GetSelected (out model, out iter)) {
> >               int column = YourColumnNumber;
> >               GLib.Value val = GLib.Value.Empty;
> >               model.GetValue (iter, column, ref val);
> >               data = (YourColumn'sType) val.Val;
> >               val.Dispose ();
> >       }
> > }
> >
> > Advise: check out the Model View Controller pattern in detail.
> >
> > Change "YourColumn'sType" into "string" in case the data is a string.
> >
> >
> >
>
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: http://lists.ximian.com/pipermail/gtk-sharp-list/attachments/20080215/7e7fa997/attachment-0001.html
>
> ------------------------------
>
> Message: 8
> Date: Sun, 17 Feb 2008 20:08:01 -0500
> From: "Darwin Reynoso" <monouser at gmail.com>
> Subject: [Gtk-sharp-list] Menubar item
> To: gtk-sharp-list at lists.ximian.com
> Message-ID:
>        <fdf2899f0802171708i6d7faa9x665652a6423625bb at mail.gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1
>
> Hi,
> how do disable a menubar item for ejample: File
>                                                                New
>                                                                Open
>                                                                Save
>                                                                Quit
> i'm writing a small text editor and i need to be able to disable the
> save item when there's no data i'm using monodevelop rc1
>
> thanks for any help
>
>
> ------------------------------
>
> Message: 9
> Date: Sun, 17 Feb 2008 21:21:54 -0500
> From: "Chris Howie" <cdhowie at gmail.com>
> Subject: Re: [Gtk-sharp-list] Menubar item
> To: gtk-sharp-list at lists.ximian.com
> Message-ID:
>        <3d2f29dc0802171821k2fee3123r7d0b851ad73610a0 at mail.gmail.com>
> Content-Type: text/plain; charset=UTF-8
>
> On Feb 17, 2008 8:08 PM, Darwin Reynoso <monouser at gmail.com> wrote:
> > Hi,
> > how do disable a menubar item for ejample: File
> >                                                                 New
> >                                                                 Open
> >                                                                 Save
> >                                                                 Quit
> > i'm writing a small text editor and i need to be able to disable the
> > save item when there's no data i'm using monodevelop rc1
>
> When you click Save in the designer, you can set the action name in
> the properties window.  You can then refer to this name in code.  So
> if you set it to SaveAction then just set:
>
> this.SaveAction.Sensitive = false;
>
> Using your own logic for determining this state, of course.
>
> --
> Chris Howie
> http://www.chrishowie.com
> http://en.wikipedia.org/wiki/User:Crazycomputers
>
>
Chris, once again thanks a lot :-)
> ------------------------------
>
> _______________________________________________
> Gtk-sharp-list mailing list
> Gtk-sharp-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/gtk-sharp-list
>
>
> End of Gtk-sharp-list Digest, Vol 34, Issue 8
> *********************************************
>


More information about the Gtk-sharp-list mailing list