[Mono-list] GTK# HTML viewer for UI

2016-02-19 Thread don-prog
I want to create a cross-platform GTK# application with HTML/CSS/JS user
interface. I already found  Gtk.HTML rendering widget
  , but it does not support CSS
and JS(I think that because thus it is written on this page). So what are
the options I have to accomplish this task?



--
View this message in context: 
http://mono.1490590.n4.nabble.com/GTK-HTML-viewer-for-UI-tp4667472.html
Sent from the Mono - General mailing list archive at Nabble.com.
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] GTK# installers gone

2014-09-02 Thread Petr Bena
Hi,

there used to be installer for GTK# on mono web site. It's all gone
now, only a huge installer that contains mono as well as GTK# is
there. Where can I get GTK# only so that I don't have to bundle that
huge installer with my application setup.
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] GTK#3 on Windows

2014-03-10 Thread Vasileios Anagnostopoulos
Hi,

are there any plans to release a win32 build of gtk sharp 3 on Win32? If
not is it possible to give compilation instructions preferably with msys2?

Thank you for your time.
-- 
Dr. Vasileios Anagnostopoulos (MSc,PhD)
Researcher/Developer
ICCS/NTUA 9 Heroon Polytechneiou Str., Zografou 15773 Athens,Greece
T (+30) 2107723404 M (+30) 6936935388
E va...@mail.ntua.gr www.ntua.gr<
http://www.ntua.gr/>
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] Gtk# support

2012-05-11 Thread IBBoard

On 11/05/12 13:12, José Baltasar García Perez-Schofield wrote:

To my understanding, Ubuntu does not support GTK# for .NET 2.0 based
mono runtime, which is not a bug. You are trying to run an app with
insufficient software components on an OS. If you want to use the
feature that the OS does not provide, you'll have to provide that by
yourself, like it wouldn't make sense to bug Microsoft that WP7 does not
ship with System.Data.


That is interesting. The problem is that, with Mono-2.10.8, .NET applications 
created with mono 2.10.8 and the latest MonoDevelop, that in Ubuntu work adding the 
"--runtime=v4.0 switch", do not work in Windows anymore. They just simply 
crash, showing no errors.

The only way to execute one of that applications is to install mono and 
launch them from there (showing at the same time, an ugly command line window 
for a brief moment).



Thanks for bringing that up - it wasn't something that I'd encountered, 
but it is useful to know. My apps are currently built using Jenkins on 
an Amazon cloud instance, which is running CentOS (I think - it is a 
hosted service, so I'm not sure), so I'm still compiling using an old 
library.


If that's true, is it a problem of targeting .Net v4.0 in general and 
running on other releases (including .Net), which don't properly support 
the 4.0 profile?



(Sorry if this is a dupe - my email seems to be playing up a little)
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] Gtk# support

2012-05-11 Thread IBBoard

On 11/05/12 13:12, José Baltasar García Perez-Schofield wrote:

To my understanding, Ubuntu does not support GTK# for .NET 2.0 based
mono runtime, which is not a bug. You are trying to run an app with
insufficient software components on an OS. If you want to use the
feature that the OS does not provide, you'll have to provide that by
yourself, like it wouldn't make sense to bug Microsoft that WP7 does not
ship with System.Data.


That is interesting. The problem is that, with Mono-2.10.8, .NET applications 
created with mono 2.10.8 and the latest MonoDevelop, that in Ubuntu work adding the 
"--runtime=v4.0 switch", do not work in Windows anymore. They just simply 
crash, showing no errors.

The only way to execute one of that applications is to install mono and 
launch them from there (showing at the same time, an ugly command line window 
for a brief moment).



Thanks for bringing that up - it wasn't something that I'd encountered, 
but it is useful to know. My apps are currently built using Jenkins on 
an Amazon cloud instance, which is running CentOS (I think - it is a 
hosted service, so I'm not sure), so I'm still compiling using an old 
library.


If that's true, is it a problem of targeting .Net v4.0 in general and 
running on other releases (including .Net), which don't properly support 
the 4.0 profile?

___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] Gtk# support

2012-05-11 Thread José Baltasar García Perez-Schofield


Hi !

> To my understanding, Ubuntu does not support GTK# for .NET 2.0 based 
> mono runtime, which is not a bug. You are trying to run an app with 
> insufficient software components on an OS. If you want to use the 
> feature that the OS does not provide, you'll have to provide that by 
> yourself, like it wouldn't make sense to bug Microsoft that WP7 does not 
> ship with System.Data.

That is interesting. The problem is that, with Mono-2.10.8, .NET 
applications created with mono 2.10.8 and the latest MonoDevelop, that in 
Ubuntu work adding the "--runtime=v4.0 switch", do not work in Windows anymore. 
They just simply crash, showing no errors.

The only way to execute one of that applications is to install mono and 
launch them from there (showing at the same time, an ugly command line window 
for a brief moment).

-- 
Baltasar García Perez-Schofield (jbgar...@uvigo.es)
Dpt. Informática, Universidad de Vigo, España
http://webs.uvigo.es/jbgarcia/
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] Gtk print demo fails on Windows7 for all versions of Mono/Gtk

2011-09-09 Thread Robert Jordan
On 09.09.2011 13:06, Doug Blank wrote:
> On Fri, Sep 9, 2011 at 3:34 AM, Elmar Haneke  wrote:
>>
>>
>> Am 08.09.2011 20:06, schrieb Doug Blank:
>>
>>> Wow... nothing. No activity in the bug tracker. No response here.
>>> Maybe someone can make some guesses about the issue, or why I can't
>>> get any comments:
>>
>> Perhaps you can find an solution in
>> https://bugzilla.novell.com/show_bug.cgi?id=380675
>
> Yes! Thank you, thank you, thank you!
>
> It turns out that if you want to use Gtk.PrintOperation, your Main
> function, wherever it is, must have the [STAThread] attribute.
>
> I've been using Mono and Gtk# for a year now without this (just using
> Gtk.Application.Invoke for to run in the correct thread), but Printing
> appears to require STAThread. (My application is actually written in

The printing support is invoking native Windows functions,
and some of them need a STA thread.

> IronPython, which would be problematic as there is no way to set this
> attribute, and so there appears to be no way to have a pure IronPython
> app that prints in Windows. But this is easily remedied by creating a
> little C# wrapper).

You don't need a wrapper if you translate this to IronPython:

// entry point
static void Main (string[] args)
{
// create a STA thread
Thread t = new Thread(delegate {
   RealMain(args);
});
t.SetApartmentState(ApartmentState.STA);
t.Start();
t.Join();
}

static void RealMain(string[] args)
{
// do stuff you've done in main before
}

Robert

___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] Gtk print demo fails on Windows7 for all versions of Mono/Gtk

2011-09-09 Thread Doug Blank
On Fri, Sep 9, 2011 at 3:34 AM, Elmar Haneke  wrote:
>
>
> Am 08.09.2011 20:06, schrieb Doug Blank:
>
>> Wow... nothing. No activity in the bug tracker. No response here.
>> Maybe someone can make some guesses about the issue, or why I can't
>> get any comments:
>
> Perhaps you can find an solution in
> https://bugzilla.novell.com/show_bug.cgi?id=380675

Yes! Thank you, thank you, thank you!

It turns out that if you want to use Gtk.PrintOperation, your Main
function, wherever it is, must have the [STAThread] attribute.

I've been using Mono and Gtk# for a year now without this (just using
Gtk.Application.Invoke for to run in the correct thread), but Printing
appears to require STAThread. (My application is actually written in
IronPython, which would be problematic as there is no way to set this
attribute, and so there appears to be no way to have a pure IronPython
app that prints in Windows. But this is easily remedied by creating a
little C# wrapper).

> If that does not help you should send your complaint about the missing
> support to the people you did contract for urgent support.

Well, this is an open source project, without money or contracts. So
it is up to people like us to make sure that we provide even little
hints to each other.

And so, this day shall be know as "Elmar Day" :) Your hint means a lot
to a lot of users. Thanks!

-Doug

> Elmar
>
> ___
> Mono-list maillist  -  Mono-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
>
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] Gtk print demo fails on Windows7 for all versions of Mono/Gtk

2011-09-09 Thread Elmar Haneke


Am 08.09.2011 20:06, schrieb Doug Blank:

> Wow... nothing. No activity in the bug tracker. No response here.
> Maybe someone can make some guesses about the issue, or why I can't
> get any comments:

Perhaps you can find an solution in
https://bugzilla.novell.com/show_bug.cgi?id=380675

If that does not help you should send your complaint about the missing
support to the people you did contract for urgent support.

Elmar

___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] Gtk print demo fails on Windows7 for all versions of Mono/Gtk

2011-09-08 Thread Doug Blank
On Fri, Aug 26, 2011 at 6:13 AM, Doug Blank  wrote:
> Has anyone tried to print using Mono on Windows7?
>
> I have some sample code (basically the demo print program) on:
>
> http://bugzilla.xamarin.com/show_bug.cgi?id=218
>
> that doesn't run on any version of Mono that I have tried on Windows7?
>
> Surely this is a serious issue, or something that no one else is seeing?
>
> If someone could try the code, and report back:
>
> gmcs DemoPrinting.cs /pkg:gtk-sharp-2.0 -r:Mono.Cairo
>
> Run with:
>
> mono DemoPrinting.exe
>
> Thanks for *any* feedback,

Wow... nothing. No activity in the bug tracker. No response here.
Maybe someone can make some guesses about the issue, or why I can't
get any comments:

[ ] - we're too busy to do anything related to Gtk under Mono
[ ] - we don't support Mono/Gtk/Windows7 any more
[ ] - I don't see the problem
[ ] - Use a different method to print when using Mono on Windows (like what?)

As far as I can tell, there is no way to print from Windows7. Am I wrong?

-Doug

> -Doug
>
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] Gtk print demo fails on Windows7 for all versions of Mono/Gtk

2011-08-26 Thread Doug Blank
Has anyone tried to print using Mono on Windows7?

I have some sample code (basically the demo print program) on:

http://bugzilla.xamarin.com/show_bug.cgi?id=218

that doesn't run on any version of Mono that I have tried on Windows7?

Surely this is a serious issue, or something that no one else is seeing?

If someone could try the code, and report back:

gmcs DemoPrinting.cs /pkg:gtk-sharp-2.0 -r:Mono.Cairo

Run with:

mono DemoPrinting.exe

Thanks for *any* feedback,

-Doug
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] gtk-sharp.dll on Windows

2011-08-17 Thread Alex
Hi,

> That is what I'm missing. Older installers did copy an gtk-sharp.dll
> into target directory.

No idea then. Maybe Alex Corrado might have a clue? I think he manages
the Windows packaging now.

> This ist for use with DotNet not Mono.

You said GTK# on Windows. This is an installer for Windows, and it
works fine under .NET as well as Mono.

Regards,
Alex

On Wed, Aug 17, 2011 at 12:21 PM, Elmar Haneke  wrote:
>> Mono ships with a "private" GTK#.
>
> That is what I'm missing. Older installers did copy an gtk-sharp.dll
> into target directory.
>
>> You'll need to install GTK# separately.
>>
>> http://download.mono-project.com/gtk-sharp/gtk-sharp-2.12.10.win32.msi
>
> This ist for use with DotNet not Mono.
>
> Elmar
> ___
> Mono-list maillist  -  Mono-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
>
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] gtk-sharp.dll on Windows

2011-08-17 Thread Elmar Haneke
> Mono ships with a "private" GTK#. 

That is what I'm missing. Older installers did copy an gtk-sharp.dll
into target directory.

> You'll need to install GTK# separately.
> 
> http://download.mono-project.com/gtk-sharp/gtk-sharp-2.12.10.win32.msi

This ist for use with DotNet not Mono.

Elmar
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] gtk-sharp.dll on Windows

2011-08-17 Thread Alex
Hi,

Mono ships with a "private" GTK#. You'll need to install GTK# separately.

http://download.mono-project.com/gtk-sharp/gtk-sharp-2.12.10.win32.msi

Regards,
Alex

On Wed, Aug 17, 2011 at 10:49 AM, Elmar Haneke  wrote:
> I did install mono-2.10.4-gtksharp-2.12.11-win32-0.exe but there seems
> to be no gtk-sharp.dll to be installed.
>
> Where has it gone?
>
> Elmar
>
> ___
> Mono-list maillist  -  Mono-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
>
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] gtk-sharp.dll on Windows

2011-08-17 Thread Elmar Haneke
I did install mono-2.10.4-gtksharp-2.12.11-win32-0.exe but there seems
to be no gtk-sharp.dll to be installed.

Where has it gone?

Elmar

___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] [Gtk-sharp-list] Where Did The Gtk# API Documentation Go?

2011-08-05 Thread Miguel de Icaza
Hello,

Where has the Gtk# API documentation gone. It is no longer available at
> http://www.go-mono.com/docs/. In fact the whole gnome# tree has
> disappeared.


We have been migrating the servers to their new home, and there have been a
few kinks to sort out during this process.

The APIs are now back online.

Miguel
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] Gtk# component for buttons like The Gimp toolbox???

2010-11-22 Thread Francisco M. Marzoa
Hello,

For those whose does not known The GiMP yet, it's an image mainpulation
program and has a toolbox in its main window plenty of icon buttons in
the form of a grid. These buttons are fixed in size, so when you resize
the window, the number of icons per row is changed to fill the available
space.

You can see the toolbox on the left of this image:

http://www.gimp.org/screenshots/windows_crop_thumb.jpg

So, my question: is there a GTK# component -or compatible- to create a
grid of buttons like that one that automatically adapts to available
space???

Thanks in advance,


___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] GTK# max widget size

2010-03-10 Thread Dimitar Dobrev

Did you try AttachOptions.Shrink?
-- 
View this message in context: 
http://n4.nabble.com/GTK-max-widget-size-tp1586578p1587238.html
Sent from the Mono - General mailing list archive at Nabble.com.
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] GTK# max widget size

2010-03-09 Thread Christopher Svanefalk
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hello all,

please, can somebody just give me a heads up (no detailed
explanation requested) on how to force GTK# widgets __not__ to draw
beyond some programmer specified dimensions?

I am currently writing a project where I have a set of buttons
representing a keyboard, and resizing the application window causes
them to grow along with it. I need them to init at a specific size
and remain that size regardless of how any parent widgets may
change.

Thanks in advance!

Blessings,

Christopher Svanefalk
-BEGIN PGP SIGNATURE-
Charset: UTF8
Version: Hush 3.0
Note: This signature can be verified at https://www.hushtools.com/verify

wpwEAQMCAAYFAkuWtT8ACgkQQJM2U8zwlkaHSAP/ZuS2eiC604G+xdrVX0jLuiicDsbz
/NF5RzDP+t0NfxPxjYzkrVDN73WAlwXd5Royd5Anq9YJQaOxtWCHNAq3g77YROMnw140
L2n1xuNbbcTzlzEUG/l+23N1YwQ8XX6l1AESnaecX1dp/z+8p38aI7s/RbyL9Oj30twD
AQhfZGM=
=t02v
-END PGP SIGNATURE-

___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] gtk color parsing problem

2009-10-28 Thread Chris Howie
On Wed, Oct 28, 2009 at 8:26 AM, Sharique uddin Ahmed Farooqui
 wrote:
> I have a color buttons on my application, I want to pass web color
> codes ("#fffccc" or just "fffccc") to button. I tried Gdk.Color.parse
> but it does not support it.

It should not be too hard to manually parse this format.  A simple
regular expression would do it.

-- 
Chris Howie
http://www.chrishowie.com
http://en.wikipedia.org/wiki/User:Crazycomputers
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] gtk color parsing problem

2009-10-28 Thread Sharique uddin Ahmed Farooqui
I have a color buttons on my application, I want to pass web color
codes ("#fffccc" or just "fffccc") to button. I tried Gdk.Color.parse
but it does not support it.
-- 
Sharique uddin Ahmed Farooqui
(C++/C# Developer, IT Consultant)
http://safknw.blogspot.com/
"Peace" is the Ultimate thing we want.
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] GTK-Sharp: Cannot implicitly convert type `Cairo.Context' to `Cairo.Context'

2009-07-14 Thread Alan McGovern
If it was all working before, I'm unsure why it would just stop working
after updating from SVN. The best I can offer is that you should check to
see if you changed anything on your system or installed new packages which
might result in this conflict.

Finally, you should follow the guide on setting up a completely clean prefix
so you don't get conflicts like this. It might help.

Alan.

On Mon, Jul 13, 2009 at 8:46 PM, cornholio wrote:

>
> Hi Alan,
>
> thank you for your response.
>
> no, i didn't follow the guideline, but i removed my old mono installation a
> few weeks ago (via ubuntu apt-get remove), so i thought i have a clean svn
> installation of mono-svn. it works fine for many days and i did rebuilt the
> sources every day (on 2 systems both are broken now, it's a fault of my
> build-script for sure)
>
> i am downloading the sources from: anonsvn.mono-project.com and i wrote a
> script for checking out /update svn repository and running autogen.sh or
> configure.sh scripts (prefix=/usr/local/).
>
> can you help me how to get rid of the old installation?
>
> thank you
>
>
> Alan McGovern-2 wrote:
> >
> > Hey,
> >
> >
> /usr/local/lib/mono/gac/Mono.Cairo/1.0.5000.0__0738eb9f132ed756/Mono.Cairo.dll
> > (Location of the symbol related to previous error)
> >
> /usr/local/lib/mono/gac/Mono.Cairo/2.0.0.0__0738eb9f132ed756/Mono.Cairo.dll
> >
> > You appear to be loading both the 1.0 and 2.0 Mono.Cairo assemblies at
> the
> > same time, this shouldn't happen and is what is causing the issues. My
> > guess
> > is that you have a broken mono install, as I've been happily compiling
> > monodevelop on a daily basis for the last few months.
> >
> > What commands/arguments did you use to compile mono, gtk and/or
> > monodevelop.
> > Where did you get the source to compile whatever it is you're compiling,
> > what versions of those things are you compiling. Did you follow the
> > guidelines here on how to install a parallel mono without breaking your
> > system: http://www.mono-project.com/Parallel_Mono_Environments.
> >
> > Alan.
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/GTK-Sharp%3A-Cannot-implicitly-convert-type-%60Cairo.Context%27-to-%60Cairo.Context%27-tp24467303p24468067.html
> Sent from the Mono - General mailing list archive at Nabble.com.
>
> ___
> Mono-list maillist  -  Mono-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
>
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] GTK-Sharp: Cannot implicitly convert type `Cairo.Context' to `Cairo.Context'

2009-07-13 Thread cornholio

Hi Alan,

thank you for your response.

no, i didn't follow the guideline, but i removed my old mono installation a
few weeks ago (via ubuntu apt-get remove), so i thought i have a clean svn
installation of mono-svn. it works fine for many days and i did rebuilt the
sources every day (on 2 systems both are broken now, it's a fault of my
build-script for sure)

i am downloading the sources from: anonsvn.mono-project.com and i wrote a
script for checking out /update svn repository and running autogen.sh or
configure.sh scripts (prefix=/usr/local/). 

can you help me how to get rid of the old installation? 

thank you


Alan McGovern-2 wrote:
> 
> Hey,
> 
> /usr/local/lib/mono/gac/Mono.Cairo/1.0.5000.0__0738eb9f132ed756/Mono.Cairo.dll
> (Location of the symbol related to previous error)
> /usr/local/lib/mono/gac/Mono.Cairo/2.0.0.0__0738eb9f132ed756/Mono.Cairo.dll
> 
> You appear to be loading both the 1.0 and 2.0 Mono.Cairo assemblies at the
> same time, this shouldn't happen and is what is causing the issues. My
> guess
> is that you have a broken mono install, as I've been happily compiling
> monodevelop on a daily basis for the last few months.
> 
> What commands/arguments did you use to compile mono, gtk and/or
> monodevelop.
> Where did you get the source to compile whatever it is you're compiling,
> what versions of those things are you compiling. Did you follow the
> guidelines here on how to install a parallel mono without breaking your
> system: http://www.mono-project.com/Parallel_Mono_Environments.
> 
> Alan.
> 
> 

-- 
View this message in context: 
http://www.nabble.com/GTK-Sharp%3A-Cannot-implicitly-convert-type-%60Cairo.Context%27-to-%60Cairo.Context%27-tp24467303p24468067.html
Sent from the Mono - General mailing list archive at Nabble.com.

___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] GTK-Sharp: Cannot implicitly convert type `Cairo.Context' to `Cairo.Context'

2009-07-13 Thread Alan McGovern
Hey,

/usr/local/lib/mono/gac/Mono.Cairo/1.0.5000.0__0738eb9f132ed756/Mono.Cairo.dll
(Location of the symbol related to previous error)
/usr/local/lib/mono/gac/Mono.Cairo/2.0.0.0__0738eb9f132ed756/Mono.Cairo.dll

You appear to be loading both the 1.0 and 2.0 Mono.Cairo assemblies at the
same time, this shouldn't happen and is what is causing the issues. My guess
is that you have a broken mono install, as I've been happily compiling
monodevelop on a daily basis for the last few months.

What commands/arguments did you use to compile mono, gtk and/or monodevelop.
Where did you get the source to compile whatever it is you're compiling,
what versions of those things are you compiling. Did you follow the
guidelines here on how to install a parallel mono without breaking your
system: http://www.mono-project.com/Parallel_Mono_Environments.

Alan.

On Mon, Jul 13, 2009 at 7:54 PM, cornholio wrote:

>
> hi,
>
> i couldn't compile mono (mono-develop) from svn since last week:
>
> ./DemoColorSelection.cs(45,30): warning CS0612:
> `Gtk.Box.PackStart(Gtk.Widget)' is obsolete
> ./DemoImages.cs(173,42): warning CS0618: `Gtk.Image.FromPixbuf' is
> obsolete:
> `Use the Pixbuf property instead'
> ./DemoPrinting.cs(79,39): error CS0029: Cannot implicitly convert type
> `Cairo.Context' to `Cairo.Context'
> ./DemoPrinting.cs(104,43): error CS1502: The best overloaded method match
> for `Pango.CairoHelper.ShowLayout(Cairo.Context, Pango.Layout)' has some
> invalid arguments
> /home/cho/tmp/mono_svn/source/gtk_sharp/pango/pango-sharp.dll (Location of
> the symbol related to previous error)
> ./DemoPrinting.cs(104,43): error CS1503: Argument `#1' cannot convert
> `Cairo.Context' expression to type `Cairo.Context'
> ./DemoPrinting.cs(104,43): (equally named types possibly from different
> assemblies in previous error)
>
> /usr/local/lib/mono/gac/Mono.Cairo/1.0.5000.0__0738eb9f132ed756/Mono.Cairo.dll
> (Location of the symbol related to previous error)
> /usr/local/lib/mono/gac/Mono.Cairo/2.0.0.0__0738eb9f132ed756/Mono.Cairo.dll
> (Location of the symbol related to previous error)
> ./DemoPrinting.cs(111,43): error CS1502: The best overloaded method match
> for `Pango.CairoHelper.ShowLayout(Cairo.Context, Pango.Layout)' has some
> invalid arguments
> /home/cho/tmp/mono_svn/source/gtk_sharp/pango/pango-sharp.dll (Location of
> the symbol related to previous error)
> ./DemoPrinting.cs(111,43): error CS1503: Argument `#1' cannot convert
> `Cairo.Context' expression to type `Cairo.Context'
> ./DemoPrinting.cs(111,43): (equally named types possibly from different
> assemblies in previous error)
>
> /usr/local/lib/mono/gac/Mono.Cairo/1.0.5000.0__0738eb9f132ed756/Mono.Cairo.dll
> (Location of the symbol related to previous error)
> /usr/local/lib/mono/gac/Mono.Cairo/2.0.0.0__0738eb9f132ed756/Mono.Cairo.dll
> (Location of the symbol related to previous error)
> ./DemoPrinting.cs(125,51): error CS1502: The best overloaded method match
> for `Pango.CairoHelper.ShowLayout(Cairo.Context, Pango.Layout)' has some
> invalid arguments
> /home/cho/tmp/mono_svn/source/gtk_sharp/pango/pango-sharp.dll (Location of
> the symbol related to previous error)
> ./DemoPrinting.cs(125,51): error CS1503: Argument `#1' cannot convert
> `Cairo.Context' expression to type `Cairo.Context'
> ./DemoPrinting.cs(125,51): (equally named types possibly from different
> assemblies in previous error)
>
> /usr/local/lib/mono/gac/Mono.Cairo/1.0.5000.0__0738eb9f132ed756/Mono.Cairo.dll
> (Location of the symbol related to previous error)
> /usr/local/lib/mono/gac/Mono.Cairo/2.0.0.0__0738eb9f132ed756/Mono.Cairo.dll
> (Location of the symbol related to previous error)
> Compilation failed: 7 error(s), 2 warnings
> make[3]: *** [GtkDemo.exe] Error 1
> make[3]: Leaving directory
> `/home/cho/tmp/mono_svn/source/gtk_sharp/sample/GtkDemo'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory `/home/cho/tmp/mono_svn/source/gtk_sharp/sample'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/home/cho/tmp/mono_svn/source/gtk_sharp'
> make: *** [all] Error 2
> [FATAL].: failed to make GTK-Sharp!
>
>
> can you please help me to get mono compiled again?
>
> thx
>
> christian
> --
> View this message in context:
> http://www.nabble.com/GTK-Sharp%3A-Cannot-implicitly-convert-type-%60Cairo.Context%27-to-%60Cairo.Context%27-tp24467303p24467303.html
> Sent from the Mono - General mailing list archive at Nabble.com.
>
> ___
> Mono-list maillist  -  Mono-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
>
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] GTK-Sharp: Cannot implicitly convert type `Cairo.Context' to `Cairo.Context'

2009-07-13 Thread cornholio

hi,

i couldn't compile mono (mono-develop) from svn since last week:

./DemoColorSelection.cs(45,30): warning CS0612:
`Gtk.Box.PackStart(Gtk.Widget)' is obsolete
./DemoImages.cs(173,42): warning CS0618: `Gtk.Image.FromPixbuf' is obsolete:
`Use the Pixbuf property instead'
./DemoPrinting.cs(79,39): error CS0029: Cannot implicitly convert type
`Cairo.Context' to `Cairo.Context'
./DemoPrinting.cs(104,43): error CS1502: The best overloaded method match
for `Pango.CairoHelper.ShowLayout(Cairo.Context, Pango.Layout)' has some
invalid arguments
/home/cho/tmp/mono_svn/source/gtk_sharp/pango/pango-sharp.dll (Location of
the symbol related to previous error)
./DemoPrinting.cs(104,43): error CS1503: Argument `#1' cannot convert
`Cairo.Context' expression to type `Cairo.Context'
./DemoPrinting.cs(104,43): (equally named types possibly from different
assemblies in previous error)
/usr/local/lib/mono/gac/Mono.Cairo/1.0.5000.0__0738eb9f132ed756/Mono.Cairo.dll
(Location of the symbol related to previous error)
/usr/local/lib/mono/gac/Mono.Cairo/2.0.0.0__0738eb9f132ed756/Mono.Cairo.dll
(Location of the symbol related to previous error)
./DemoPrinting.cs(111,43): error CS1502: The best overloaded method match
for `Pango.CairoHelper.ShowLayout(Cairo.Context, Pango.Layout)' has some
invalid arguments
/home/cho/tmp/mono_svn/source/gtk_sharp/pango/pango-sharp.dll (Location of
the symbol related to previous error)
./DemoPrinting.cs(111,43): error CS1503: Argument `#1' cannot convert
`Cairo.Context' expression to type `Cairo.Context'
./DemoPrinting.cs(111,43): (equally named types possibly from different
assemblies in previous error)
/usr/local/lib/mono/gac/Mono.Cairo/1.0.5000.0__0738eb9f132ed756/Mono.Cairo.dll
(Location of the symbol related to previous error)
/usr/local/lib/mono/gac/Mono.Cairo/2.0.0.0__0738eb9f132ed756/Mono.Cairo.dll
(Location of the symbol related to previous error)
./DemoPrinting.cs(125,51): error CS1502: The best overloaded method match
for `Pango.CairoHelper.ShowLayout(Cairo.Context, Pango.Layout)' has some
invalid arguments
/home/cho/tmp/mono_svn/source/gtk_sharp/pango/pango-sharp.dll (Location of
the symbol related to previous error)
./DemoPrinting.cs(125,51): error CS1503: Argument `#1' cannot convert
`Cairo.Context' expression to type `Cairo.Context'
./DemoPrinting.cs(125,51): (equally named types possibly from different
assemblies in previous error)
/usr/local/lib/mono/gac/Mono.Cairo/1.0.5000.0__0738eb9f132ed756/Mono.Cairo.dll
(Location of the symbol related to previous error)
/usr/local/lib/mono/gac/Mono.Cairo/2.0.0.0__0738eb9f132ed756/Mono.Cairo.dll
(Location of the symbol related to previous error)
Compilation failed: 7 error(s), 2 warnings
make[3]: *** [GtkDemo.exe] Error 1
make[3]: Leaving directory
`/home/cho/tmp/mono_svn/source/gtk_sharp/sample/GtkDemo'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/cho/tmp/mono_svn/source/gtk_sharp/sample'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/cho/tmp/mono_svn/source/gtk_sharp'
make: *** [all] Error 2
[FATAL].: failed to make GTK-Sharp!


can you please help me to get mono compiled again?

thx

christian
-- 
View this message in context: 
http://www.nabble.com/GTK-Sharp%3A-Cannot-implicitly-convert-type-%60Cairo.Context%27-to-%60Cairo.Context%27-tp24467303p24467303.html
Sent from the Mono - General mailing list archive at Nabble.com.

___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] GTK-Sharp Problems

2009-03-09 Thread Sandy Armstrong
If you're going to install from source, you need to read and follow this:

http://www.mono-project.com/Parallel_Mono_Environments

Chances are that before, you installed your custom mono into a non-/usr 
prefix, and Banshee was looking for gtk-sharp and friends in the older 
/usr-installed Mono.

But the best thing, as Alan suggests, is to use a recent distro with 
recent Mono packages.  On openSUSE, for example, you can subscribe to a 
repository that gets you preview versions of Mono if you need them.

Sandy

On 03/08/2009 12:54 PM, b0wter wrote:
> Hi,
>
> thats what i tryed before i posted here. Sorry that i missed to mention
> that.
> But i dont know what to do for an all new clean installation. I guessed i
> have missed some steps the last time i tried (I just used my packet manger
> to remove all packages that i found searching for mono and having to do
> something with the framework).
>
> Johannes
>
>
> Alan McGovern-2 wrote:
>> Hi,
>>
>> Your best bet would be to undo everything you've done to install
>> mono/monodevelop/gtk-sharp and then install the versions supplied in your
>> package manager instead. You have a broken install and I couldn't even
>> begin
>> to offer any sort of hints on how to fix it unless i knew exactly what was
>> on your system before and exactly what you did to 'download and install
>> mono
>> manually'.
>>
>> Alan.
>>
>

___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] GTK-Sharp Problems

2009-03-08 Thread b0wter

Hi,

thats what i tryed before i posted here. Sorry that i missed to mention
that.
But i dont know what to do for an all new clean installation. I guessed i
have missed some steps the last time i tried (I just used my packet manger
to remove all packages that i found searching for mono and having to do
something with the framework).

Johannes


Alan McGovern-2 wrote:
> 
> Hi,
> 
> Your best bet would be to undo everything you've done to install
> mono/monodevelop/gtk-sharp and then install the versions supplied in your
> package manager instead. You have a broken install and I couldn't even
> begin
> to offer any sort of hints on how to fix it unless i knew exactly what was
> on your system before and exactly what you did to 'download and install
> mono
> manually'.
> 
> Alan.
> 

-- 
View this message in context: 
http://www.nabble.com/GTK-Sharp-Problems-tp22381859p22402201.html
Sent from the Mono - General mailing list archive at Nabble.com.

___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] GTK-Sharp Problems

2009-03-08 Thread Alan McGovern
Hi,

Your best bet would be to undo everything you've done to install
mono/monodevelop/gtk-sharp and then install the versions supplied in your
package manager instead. You have a broken install and I couldn't even begin
to offer any sort of hints on how to fix it unless i knew exactly what was
on your system before and exactly what you did to 'download and install mono
manually'.

Alan.

On Fri, Mar 6, 2009 at 10:45 PM, b0wter  wrote:

>
> I've played around a little with monodevelop and tried downloading and
> installing the mono 2.2 which worked fine.
> But then i noticed that i couldnt start
> [url=http://banshee-project.org/]Banshee[/url],
> a mono based multi media
> player, any more.
> I get lots of text in a terminal but the most interesting part seems to be:
>
> ---
> ** (/usr/lib/banshee-1/Banshee.exe:5162): WARNING **: The following
> assembly
> referenced from /usr/lib/banshee-1/Banshee.Services.dll could not be
> loaded:
> Assembly:   glib-sharp(assemblyref_index=9)
> Version:2.12.0.0
> Public Key: 35e10195dab3c99f
> The assembly was not found in the Global Assembly Cache, a path listed in
> the MONO_PATH environment variable, or in the location of the executing
> assembly (/usr/lib/banshee-1/).
> 
>
> I tried to create a new monodevelop Gtk+ app. Building it works fine but
> whenever i try to start it i get the following error:
> ---
> Assembly:   glib-sharp(assemblyref_index=0)
> Version:2.12.0.0
> Public Key: 35e10195dab3c99f
> The assembly was not found in the Global Assembly Cache, a path listed in
> the MONO_PATH environment variable, or in the location of the executing
> assembly
> (/home/b0wter/Documents/Projects/bCountdown/bCountdown/bin/Debug/).
> ---
>
> I tried to install Gtk Sharp 2.12 manually, which seemed to work fine, i
> didnt get any errors (but i missed the optional dependancies cairo mono &
> and another one i dont remember).
> So i tried to figure out if glib-sharp is installed correctly:
>
> b0w...@bowterpad:~$ gacutil -l | grep glib
> glib-sharp, Version=2.12.0.0, Culture=neutral,
> PublicKeyToken=35e10195dab3c99f
> policy.2.10.glib-sharp, Version=0.0.0.0, Culture=neutral,
> PublicKeyToken=35e10195dab3c99f
> policy.2.4.glib-sharp, Version=0.0.0.0, Culture=neutral,
> PublicKeyToken=35e10195dab3c99f
> policy.2.6.glib-sharp, Version=0.0.0.0, Culture=neutral,
> PublicKeyToken=35e10195dab3c99f
> policy.2.8.glib-sharp, Version=0.0.0.0, Culture=neutral,
> PublicKeyToken=35e10195dab3c99f
>
> that looks like it should work!?
> Now i dont know what to do to get this working again :(
> Any ideas?
> --
> View this message in context:
> http://www.nabble.com/GTK-Sharp-Problems-tp22381859p22381859.html
> Sent from the Mono - General mailing list archive at Nabble.com.
>
> ___
> Mono-list maillist  -  Mono-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
>
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] GTK-Sharp Problems

2009-03-08 Thread b0wter

I've played around a little with monodevelop and tried downloading and
installing the mono 2.2 which worked fine.
But then i noticed that i couldnt start
[url=http://banshee-project.org/]Banshee[/url], a mono based multi media
player, any more.
I get lots of text in a terminal but the most interesting part seems to be:

---
** (/usr/lib/banshee-1/Banshee.exe:5162): WARNING **: The following assembly
referenced from /usr/lib/banshee-1/Banshee.Services.dll could not be loaded:
 Assembly:   glib-sharp(assemblyref_index=9)
 Version:2.12.0.0
 Public Key: 35e10195dab3c99f
The assembly was not found in the Global Assembly Cache, a path listed in
the MONO_PATH environment variable, or in the location of the executing
assembly (/usr/lib/banshee-1/).


I tried to create a new monodevelop Gtk+ app. Building it works fine but
whenever i try to start it i get the following error:
---
 Assembly:   glib-sharp(assemblyref_index=0)
 Version:2.12.0.0
 Public Key: 35e10195dab3c99f
The assembly was not found in the Global Assembly Cache, a path listed in
the MONO_PATH environment variable, or in the location of the executing
assembly (/home/b0wter/Documents/Projects/bCountdown/bCountdown/bin/Debug/).
---

I tried to install Gtk Sharp 2.12 manually, which seemed to work fine, i
didnt get any errors (but i missed the optional dependancies cairo mono &
and another one i dont remember).
So i tried to figure out if glib-sharp is installed correctly:

b0w...@bowterpad:~$ gacutil -l | grep glib
glib-sharp, Version=2.12.0.0, Culture=neutral,
PublicKeyToken=35e10195dab3c99f
policy.2.10.glib-sharp, Version=0.0.0.0, Culture=neutral,
PublicKeyToken=35e10195dab3c99f
policy.2.4.glib-sharp, Version=0.0.0.0, Culture=neutral,
PublicKeyToken=35e10195dab3c99f
policy.2.6.glib-sharp, Version=0.0.0.0, Culture=neutral,
PublicKeyToken=35e10195dab3c99f
policy.2.8.glib-sharp, Version=0.0.0.0, Culture=neutral,
PublicKeyToken=35e10195dab3c99f

that looks like it should work!?
Now i dont know what to do to get this working again :(
Any ideas?
-- 
View this message in context: 
http://www.nabble.com/GTK-Sharp-Problems-tp22381859p22381859.html
Sent from the Mono - General mailing list archive at Nabble.com.

___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] GTK# icon in a Winforms project

2008-12-26 Thread Petit Eric
Hi
i would like to know if i have the right and can use  the GTK# stock
icons aviable in a MD GTK# project.
If yes, there is a way to directly use for wich dll/assembly and how
to put it in an embeded ressource, to be portable under windows too?

thank's
-- 

Cordially.

Small Eric Quotations of the days:
---
If one day one reproaches you that your work is not a work of
professional, say you that:
Amateurs built the arch of Noah, and professionals the Titanic.
---

Few people are done for independence, it is the privilege of the powerful ones.
---

No key was wounded during the drafting of this message.
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] Gtk Fixed Z-order

2008-12-16 Thread Chris Howie
On Tue, Dec 16, 2008 at 4:30 PM,   wrote:
>> Hmm.. what happens if you use an EventBox instead of a Viewport?
>
> Working as well.
> Thanks for hint!

I believe what's going on here is that some widgets, like labels,
don't require their own Gdk.Window so they just draw on their parent.
The problem is that these widgets will *always* appear under widgets
that have their own Gdk.Window.  EventBox is a widget that draws
nothing but intentionally creates a Gdk.Window for itself.  It's
intended to be used to capture events to things like labels -- since
there is no window to capture the click, you can't tell which widget
received the click except that you know the nearest parent got a
click.  But it also works in situations like this, to give labels and
other such widgets a Window above other widgets to draw on.

-- 
Chris Howie
http://www.chrishowie.com
http://en.wikipedia.org/wiki/User:Crazycomputers
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] Gtk Fixed Z-order

2008-12-16 Thread nickstaves
> On Tue, Dec 16, 2008 at 9:24 AM, nickstaves  wrote:
>> Finally I've found solution.
>>
>> I used Viewport widget as parent container for popup widget and it's
>> working
>> fine, except I still don't understand why it's working ... :)
>
> Hmm.. what happens if you use an EventBox instead of a Viewport?

Working as well.
Thanks for hint!

___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] Gtk Fixed Z-order

2008-12-16 Thread Chris Howie
On Tue, Dec 16, 2008 at 9:24 AM, nickstaves  wrote:
> Finally I've found solution.
>
> I used Viewport widget as parent container for popup widget and it's working
> fine, except I still don't understand why it's working ... :)

Hmm.. what happens if you use an EventBox instead of a Viewport?

-- 
Chris Howie
http://www.chrishowie.com
http://en.wikipedia.org/wiki/User:Crazycomputers
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] Gtk Fixed Z-order

2008-12-16 Thread nickstaves

Finally I've found solution.

I used Viewport widget as parent container for popup widget and it's working
fine, except I still don't understand why it's working ... :)
-- 
View this message in context: 
http://www.nabble.com/Gtk-Fixed-Z-order-tp20972606p21033971.html
Sent from the Mono - General mailing list archive at Nabble.com.

___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] Gtk Fixed Z-order

2008-12-12 Thread nickstaves
Thanks. But unfortunately this property does not working in WinXP
(mono-2.0 gtksharp-2.10.4) but - I agree it's working in Linux, at least I
have tried in mono 2.0.1

Anyway - I think Dialog is not that way. Because, if I'll manage to do
smth with Fixed container (or smth else) I could create "slide pannel"
that could smoothly slide from right edge of the main window. Thats next
feature that planned to be inside my app.

So... maybe somebody know how to resolve the problem?

BR
nickstaves

> Without a frame I'm not sure, but if you set the Dialog's TransientFor
> property to the parent Window you want it to cover, clicking the
> parent will instead raise both the parent and the Dialog, in that
> order.  (In other words, it will never allow the parent, disabled
> Window from being raised above the Dialog.)
>
> --
> Chris Howie
> http://www.chrishowie.com
> http://en.wikipedia.org/wiki/User:Crazycomputers
>


___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] Gtk Fixed Z-order

2008-12-12 Thread Chris Howie
On Fri, Dec 12, 2008 at 5:32 AM,   wrote:
> Yes. Exists. But for my case I need dialog without frame, that cannot be
> moved and main window should not have an ability to be activated while
> dialog is shown. Now when I show modal dialog I could click on the main
> window under and it will cover popup.
>
> Perhaps someone know how to attribute the dialog with mentioned behaviour?

Without a frame I'm not sure, but if you set the Dialog's TransientFor
property to the parent Window you want it to cover, clicking the
parent will instead raise both the parent and the Dialog, in that
order.  (In other words, it will never allow the parent, disabled
Window from being raised above the Dialog.)

-- 
Chris Howie
http://www.chrishowie.com
http://en.wikipedia.org/wiki/User:Crazycomputers
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] Gtk Fixed Z-order

2008-12-12 Thread nickstaves
> On Fri, Dec 12, 2008 at 4:44 AM,   wrote:
>> I'm trying to show custom popup widget over the main window (for example
>> in the case of error). I have used Fixed widget and placed there hidden
>> popup VBox and main VBox which is contain all the main win widgets.
>
> The Gtk.Dialog class exists for a reason...
>
> --
> Chris Howie
> http://www.chrishowie.com
> http://en.wikipedia.org/wiki/User:Crazycomputers
>

Yes. Exists. But for my case I need dialog without frame, that cannot be
moved and main window should not have an ability to be activated while
dialog is shown. Now when I show modal dialog I could click on the main
window under and it will cover popup.

Perhaps someone know how to attribute the dialog with mentioned behaviour?

BR
nickstaves


___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] Gtk Fixed Z-order

2008-12-12 Thread Chris Howie
On Fri, Dec 12, 2008 at 4:44 AM,   wrote:
> I'm trying to show custom popup widget over the main window (for example
> in the case of error). I have used Fixed widget and placed there hidden
> popup VBox and main VBox which is contain all the main win widgets.

The Gtk.Dialog class exists for a reason...

-- 
Chris Howie
http://www.chrishowie.com
http://en.wikipedia.org/wiki/User:Crazycomputers
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] Gtk Fixed Z-order

2008-12-12 Thread nickstaves
Dear All

I have a problem with z-order of widgets in Gtk.

I'm trying to show custom popup widget over the main window (for example
in the case of error). I have used Fixed widget and placed there hidden
popup VBox and main VBox which is contain all the main win widgets. When I
want to imitate popup I just show "popup VBox" and reset Sensitive
property of the "main VBox". As result I see popup over main win and main
"win is disabled" until I response to the popup.
That's working fine except there is a problem with several widgets.
First I faced TreeView widget that is appearing on the top every time,
although it's laying in the "main VBox" which should be UNDER "popup
VBox". And for example Button widget appear under "popup VBox" as expected
actually...
Googling I have found another description of the same problem

http://www.ruby-forum.com/topic/164534

And there are even more widgets "Gtk::Entry and Gtk::ProgressBar" with the
same behaviour

Could somebody help me (and not only me :)) with this?

BR
nickstaves



___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] Gtk# "agenda" widget

2008-11-20 Thread Adam Tauno Williams
> > > I'm writing a software I will use in my future (I'm gonna be a dentist in
> > > 2-3 years, and I want to use Debian at work :) ).
> > > I was looking for a GTK# "agenda" widget: for those of you who might not
> > > understand, something like a grid with Days as columns, and Hours as rows
> > > (or Halfs of hours, or [..]).
> > 
> Yes, exactly! :)
> > > Someone pointed me to the "Work week" view in Evolution, and yes, that's
> > > what I want to achieve.
> > > Is there any Gtk# binding to it? AFAICS from Evolution's code, it's not
> > > even a "plain" Gtk+ widget -- but a custom widget itself.
> > None, that I'm aware of.
> Uhm, ok.

Was referring specifically to a Gtk# binding for the evolution widgets.
Poorly placed in the response.

> > > Is there anyone who has ever worked on something similar?
> > Yes, me.  I've created a DayView that draws itself with Cairo.  It needs
> > polish but it renders and can plot events (with a few bugs).
> >
> Great!
> I hope I can help a bit with this project, then!

Any help is welcome.  If you end up hacking on it I've got no issue with
moving the Calendar widgetry out into it's own project.  Gtk# really
could use more high-level widgets (agenda, calendar, etc...)

> Thanks for your help, I'm going to checkout the repository and take a look at
> the code...

I'm not a "real developer" so it might be scary!


___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] Gtk# "agenda" widget

2008-11-20 Thread David Paleino
On Thu, 20 Nov 2008 16:27:37 -0500, Adam Tauno Williams wrote:

> > I'm writing a software I will use in my future (I'm gonna be a dentist in
> > 2-3 years, and I want to use Debian at work :) ).
> > I was looking for a GTK# "agenda" widget: for those of you who might not
> > understand, something like a grid with Days as columns, and Hours as rows
> > (or Halfs of hours, or [..]).
> 
> 

Yes, exactly! :)

> > Someone pointed me to the "Work week" view in Evolution, and yes, that's
> > what I want to achieve.
> > Is there any Gtk# binding to it? AFAICS from Evolution's code, it's not
> > even a "plain" Gtk+ widget -- but a custom widget itself.
> 
> None, that I'm aware of.

Uhm, ok.

> > Is there anyone who has ever worked on something similar?
> 
> Yes, me.  I've created a DayView that draws itself with Cairo.  It needs
> polish but it renders and can plot events (with a few bugs).
> 
> 

Great!
I hope I can help a bit with this project, then!

Thanks for your help, I'm going to checkout the repository and take a look at
the code...

Thanks again,
David

-- 
 . ''`.  Debian maintainer | http://wiki.debian.org/DavidPaleino
 : :'  : Linuxer #334216 --|-- http://www.hanskalabs.net/
 `. `'`  GPG: 1392B174 | http://snipr.com/qa_page
   `-   2BAB C625 4E66 E7B8 450A C3E1 E6AA 9017 1392 B174


signature.asc
Description: PGP signature
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] Gtk# "agenda" widget

2008-11-20 Thread Adam Tauno Williams
> I'm writing a software I will use in my future (I'm gonna be a dentist in 2-3
> years, and I want to use Debian at work :) ).
> I was looking for a GTK# "agenda" widget: for those of you who might not
> understand, something like a grid with Days as columns, and Hours as rows (or
> Halfs of hours, or [..]).



> Someone pointed me to the "Work week" view in Evolution, and yes, that's what 
> I
> want to achieve.
> Is there any Gtk# binding to it? AFAICS from Evolution's code, it's not even a
> "plain" Gtk+ widget -- but a custom widget itself.

None, that I'm aware of.

> Is there anyone who has ever worked on something similar?

Yes, me.  I've created a DayView that draws itself with Cairo.  It needs
polish but it renders and can plot events (with a few bugs).



> I know I might ned to wrap that widget by myself -- any
> guide/tutorial/help/manual/hint on how to do that? I've only done some
> DllImport() in my C# life ;)


___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] Gtk# "agenda" widget

2008-11-20 Thread David Paleino
Hello *,
I'm writing a software I will use in my future (I'm gonna be a dentist in 2-3
years, and I want to use Debian at work :) ).
I was looking for a GTK# "agenda" widget: for those of you who might not
understand, something like a grid with Days as columns, and Hours as rows (or
Halfs of hours, or [..]).

Someone pointed me to the "Work week" view in Evolution, and yes, that's what I
want to achieve.
Is there any Gtk# binding to it? AFAICS from Evolution's code, it's not even a
"plain" Gtk+ widget -- but a custom widget itself.

Is there anyone who has ever worked on something similar?

I know I might need to wrap that widget by myself -- any
guide/tutorial/help/manual/hint on how to do that? I've only done some
DllImport() in my C# life ;)

Kindly,
David

-- 
 . ''`.  Debian maintainer | http://wiki.debian.org/DavidPaleino
 : :'  : Linuxer #334216 --|-- http://www.hanskalabs.net/
 `. `'`  GPG: 1392B174 | http://snipr.com/qa_page
   `-   2BAB C625 4E66 E7B8 450A C3E1 E6AA 9017 1392 B174


signature.asc
Description: PGP signature
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] [Gtk-sharp-list] pinvoke and benchmarks

2008-09-17 Thread Martin (OPENGeoMap)
Hi:
> On Fri, Sep 12, 2008 at 11:22 AM, Martin (OpenGeoMap)
> <[EMAIL PROTECTED]> wrote:
>   
>> is it better used a library only created with C or the pinvoke is fast???
>> In my imagination i see the pinvoke system trying to find a funtion
>> every time and if i have 10 million of lidar data perhaps this is really
>> slowly
>> 
>
> I doubt that Mono is so dumb that it doesn't remember function entry
> points.  More likely, it's taking some time to marshal data over the
> managed boundary.
>   
I would like know like MONO and .NET do this job.
> Without seeing any code it's going to be difficult to diagnose
> anything.  Note that things like Gtk# make heavy use of p/invoke and
> seem fairly fast, so I don't think the use of p/invoke alone is the
> problem.
>   
Here is the CAPI in csharp:
http://liblas.org/browser/trunk/csharp/dotnetLibLAS/LibLASCAPI.cs

Here a module in c# creating the classes:
http://liblas.org/browser/trunk/csharp/dotnetLibLAS/LASPoint.cs

Here the C API:

http://liblas.org/browser/trunk/src/las_c_api.cpp

This library was created in C++ with exceptions, namespaces, overloads, 
etc, etc...
The C API broke this C++ API in a C API.
> (Also, this question would be better directed to the main Mono mailing
> list, as it has nothing to do with Gtk#.)
>
>   
Yes. thank you for redirect the mono list.


Regards.


___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] [Gtk-sharp-list] pinvoke and benchmarks

2008-09-16 Thread Chris Howie
On Fri, Sep 12, 2008 at 11:22 AM, Martin (OpenGeoMap)
<[EMAIL PROTECTED]> wrote:
> is it better used a library only created with C or the pinvoke is fast???
> In my imagination i see the pinvoke system trying to find a funtion
> every time and if i have 10 million of lidar data perhaps this is really
> slowly

I doubt that Mono is so dumb that it doesn't remember function entry
points.  More likely, it's taking some time to marshal data over the
managed boundary.

Without seeing any code it's going to be difficult to diagnose
anything.  Note that things like Gtk# make heavy use of p/invoke and
seem fairly fast, so I don't think the use of p/invoke alone is the
problem.

(Also, this question would be better directed to the main Mono mailing
list, as it has nothing to do with Gtk#.)

-- 
Chris Howie
http://www.chrishowie.com
http://en.wikipedia.org/wiki/User:Crazycomputers
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] Gtk MessageDialog message length

2008-03-26 Thread Steve Harp
Hi All,

 

I'm writing an exception handler which displays exceptions (via ToString()
to get the most detail) with MessageDialog.  I've noticed that with some
exceptions, the dialog box displays very small and with no message content.
I found that if I Substring() the text to shorten the message, the dialog
will display correctly.  I'm assuming there is a limitation on message
length but I can't find any documentation that tells me what that limitation
might be.  Does anyone know if there is such a limitation and, if so, what
it is?

 

Thanks,

Steve 

 

___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] [Gtk-sharp-list] Need help in compilation

2008-02-26 Thread Mike Kestner

On Mon, 2008-02-25 at 16:25 +0800, Marc Glenn wrote:
> Hello folks,
> 
>  I installed the mono-1.2.5.1 installer for windows xp. It has
> gtk-sharp 2.10 and gnome 2.16 included.
>  
>  I also found PrintSample.cs in the samples directory. This
> PrintSample.cs uses the Gnome namespace to print.

You should use the Gtk printing capability.  Gnome.Print is deprecated
now and relies on libgnomeprintui which is probably not available for
win32.

There is a sample of how to use Gtk.Print in the GtkDemo application
located in gtk-sharp/samples.


-- 
Mike Kestner <[EMAIL PROTECTED]>

___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] [Gtk-sharp-list] Need help in compilation

2008-02-25 Thread Marc Glenn

Thanks for the reply. :)

Actually, I tried using the example in the GtkDemo first. But when I try 
to use the PrintOperationAction.PrintDialog property, I can't seem to 
find a way to make the dialog modal with the parent because I don't have 
a reference to the actual dialog widget.


I also can't find documentations for the PrintContext or PrintOperation 
class. Do you know any documentation for these classes?


Mike Kestner wrote:

On Mon, 2008-02-25 at 16:25 +0800, Marc Glenn wrote:
  

Hello folks,

 I installed the mono-1.2.5.1 installer for windows xp. It has
gtk-sharp 2.10 and gnome 2.16 included.
 
 I also found PrintSample.cs in the samples directory. This

PrintSample.cs uses the Gnome namespace to print.



You should use the Gtk printing capability.  Gnome.Print is deprecated
now and relies on libgnomeprintui which is probably not available for
win32.

There is a sample of how to use Gtk.Print in the GtkDemo application
located in gtk-sharp/samples.


  
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] [Gtk-sharp-list] Check Process state in an GUI app

2008-01-21 Thread Chris Howie
On Jan 21, 2008 11:58 AM, hellboy195 <[EMAIL PROTECTED]> wrote:
> hi,
> I'm currently trying to write a very very simple front-end for ffmpeg with
> gtk#.
> My Code looks like this:
>
> First I check if a file already exits with File.Exits(path)
> MessageDialog -> Overwrite YesNO.
>
> Then the I start ffmpeg with Process.Start().
> Then I want show a MessageDialog if the process finished so I did it like :
>
> while(!proc.HasExited) {}
> MessageDialog -> "Encoding finished";
>
> This is working good but this causes some bugs. E.g: If I do Overwrite it
> "yes". The MessageDialog isn't destroyed until the process finished. If I
> delete this while {} it's working correct but the Message appears
> immediately and not after the process hast Finished. Using if is also not
> that good I suppose :/
>
> Any solution? Thx in advance :)

The problem is that you are waiting for the operation to complete on
the GUI thread.  You have destroyed the dialog, but Gtk cannot
actually remove the dialog from the screen until you give control back
to the main GUI loop.

What you want to do is either add an idle handler or spin off another
thread to take care of it.  An idle handler would probably be easiest
for your purpose:

// Message dialog code
Process proc = ...;
GLib.Idle.Add(delegate {
if (proc.HasExited) {
// Show dialog.
return false; // Remove this delegate from the idle list.
}

return true; // Run this delegate again when idle.
});

Note that this approach can burn quite a bit of CPU running the idle
delegate.  You may want to try attaching an event handler to
Process.Exited instead:

proc.EnableRaisingEvents = true;
proc.Exited += delegate {
Application.Invoke(delegate {
// Show dialog.
});
};

Note that you must call Application.Invoke because the Exited event
handler will not be running on the GUI thread, and you should not
touch the GUI from other threads.  Application.Invoke puts a delegate
in a queue to be executed on the GUI thread the next time the main
loop is entered.

-- 
Chris Howie
http://www.chrishowie.com
http://en.wikipedia.org/wiki/User:Crazycomputers
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] Gtk# Treeview RulesHint in windows

2007-12-30 Thread Iggy
In linux RulesHint in a treeview works, but it does't show up in
windows. Can anybody tell me how to get the RulesHint in windows
please? Thanks!
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] GTK# on Windows since Mono 1.2...

2007-12-06 Thread David Cantin
Hi, I have a similar problem than you with my gtk# applications on Windows. 
But, I was able to solve your test case by using the gtk-sharp-2.10 assembly 
instead of gtk-sharp.

So use 
mcs -pkg:gtk-sharp-2.10 test2.cs 
instead of 
mcs -pkg:gtk-sharp test2.cs

But, that didn't solve mine. I'm trying to create a simple test case. But my 
bug is difficult to reproduce in a simple application... anyway.. maybe more on 
that later.

David

Le mercredi 28 novembre 2007 à 12:17 -0500, Philip Covington a écrit :
> Hello,
> 
> I am using GTK# with Mono on Windows.  The following test program
> works on Mono versions 1.2 and older.  On Mono versions 1.2.1 and
> later (all the way to 1.2.5.2) when I click the button widget, I get
> an error (see below).  I have included the test app (test2.cs) and the
> command line arguments used to compile it below.  I have the exact
> same problem with Glade#.  The test program is copied off of the GTK#
> tutorial page.
> 
> This seems to be a problem since 1.2.1, but I was surprised not to
> have found any information about this problem in searching around.
> Should I be using GTK# on Windows or is no one actually using it on
> Windows (hence no bug report)?
> 
> Thanks,
> Phil Covington
> http://www.philcovington.com
> 
> -
> test2.cs:
> -
> using Gtk;
> using System;
> 
> public class ButtonApp  {
> 
>  public static int Main (string[] args)
>  {
>   Application.Init ();
>   Window win = new Window ("Button Tester");
>   win.SetDefaultSize (200, 150);
>   win.DeleteEvent += new DeleteEventHandler (Window_Delete);
>   Button btn = new Button ("Click Me");
>   btn.Clicked += new EventHandler (btn_click);
>   win.Add (btn);
>   win.ShowAll ();
>   Application.Run ();
>   return 0;
>  }
> 
>  static void btn_click (object obj, EventArgs args)
>  {
>   Console.WriteLine ("Button Clicked");
>  }
> 
>  static void Window_Delete (object obj, DeleteEventArgs args)
>  {
>   Application.Quit ();
>   args.RetVal = true;
>  }
> }
> -
> 
> test2.cs compiled with:
> 
> >mcs -pkg:gtk-sharp test2.cs
> 
> run:
> 
> >mono test2.exe
> 
> 
> Mono 1.2:
> 
> C:\Data\project>mono test2.exe
> Button Clicked
> Button Clicked
> Button Clicked
> Button Clicked
> 
> C:\Data\project>
> 
> -
> Mono 1.2.1:
> 
> C:\Data\project>>mono test2.exe
> Button Clicked
> 
> =
> Got a SIGSEGV while executing native code. This usually indicates
> a fatal error in the mono runtime or one of the native libraries
> used by your application.
> =
> 
> Stacktrace:
> 
>   at (wrapper managed-to-native) Gtk.Application.gtk_main () <0x4>
>   at (wrapper managed-to-native) Gtk.Application.gtk_main () <0x>
>   at Gtk.Application.Run () <0x7>
>   at ButtonApp.Main (string[]) <0x000f2>
>   at (wrapper runtime-invoke) System.Object.runtime_invoke_int_string[] 
> (object,
> intptr,intptr,intptr) <0x>
> 
> This application has requested the Runtime to terminate it in an unusual way.
> Please contact the application's support team for more information.
> 
> C:\Data\project>
> ---
> 
> Mono 1.2.5.2:
> 
> 
> C:\Data\project>mono test2.exe
> Button Clicked
> Stacktrace:
> 
>   at (wrapper managed-to-native) Gtk.Application.gtk_main () <0x4>
>   at (wrapper managed-to-native) Gtk.Application.gtk_main () <0x>
>   at Gtk.Application.Run () <0x7>
>   at ButtonApp.Main (string[]) <0x000ee>
>   at (wrapper runtime-invoke) ButtonApp.runtime_invoke_int_string[] 
> (object,intp
> tr,intptr,intptr) <0x>
> 
> This application has requested the Runtime to terminate it in an unusual way.
> Please contact the application's support team for more information.
> 
> C:\Data\project>
> ---
> ___
> Mono-list maillist  -  Mono-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list

___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] GTK# on Windows since Mono 1.2...

2007-11-28 Thread Philip Covington
Hello,

I am using GTK# with Mono on Windows.  The following test program
works on Mono versions 1.2 and older.  On Mono versions 1.2.1 and
later (all the way to 1.2.5.2) when I click the button widget, I get
an error (see below).  I have included the test app (test2.cs) and the
command line arguments used to compile it below.  I have the exact
same problem with Glade#.  The test program is copied off of the GTK#
tutorial page.

This seems to be a problem since 1.2.1, but I was surprised not to
have found any information about this problem in searching around.
Should I be using GTK# on Windows or is no one actually using it on
Windows (hence no bug report)?

Thanks,
Phil Covington
http://www.philcovington.com

-
test2.cs:
-
using Gtk;
using System;

public class ButtonApp  {

 public static int Main (string[] args)
 {
  Application.Init ();
  Window win = new Window ("Button Tester");
  win.SetDefaultSize (200, 150);
  win.DeleteEvent += new DeleteEventHandler (Window_Delete);
  Button btn = new Button ("Click Me");
  btn.Clicked += new EventHandler (btn_click);
  win.Add (btn);
  win.ShowAll ();
  Application.Run ();
  return 0;
 }

 static void btn_click (object obj, EventArgs args)
 {
  Console.WriteLine ("Button Clicked");
 }

 static void Window_Delete (object obj, DeleteEventArgs args)
 {
  Application.Quit ();
  args.RetVal = true;
 }
}
-

test2.cs compiled with:

>mcs -pkg:gtk-sharp test2.cs

run:

>mono test2.exe


Mono 1.2:

C:\Data\project>mono test2.exe
Button Clicked
Button Clicked
Button Clicked
Button Clicked

C:\Data\project>

-
Mono 1.2.1:

C:\Data\project>>mono test2.exe
Button Clicked

=
Got a SIGSEGV while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries
used by your application.
=

Stacktrace:

  at (wrapper managed-to-native) Gtk.Application.gtk_main () <0x4>
  at (wrapper managed-to-native) Gtk.Application.gtk_main () <0x>
  at Gtk.Application.Run () <0x7>
  at ButtonApp.Main (string[]) <0x000f2>
  at (wrapper runtime-invoke) System.Object.runtime_invoke_int_string[] (object,
intptr,intptr,intptr) <0x>

This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.

C:\Data\project>
---

Mono 1.2.5.2:


C:\Data\project>mono test2.exe
Button Clicked
Stacktrace:

  at (wrapper managed-to-native) Gtk.Application.gtk_main () <0x4>
  at (wrapper managed-to-native) Gtk.Application.gtk_main () <0x>
  at Gtk.Application.Run () <0x7>
  at ButtonApp.Main (string[]) <0x000ee>
  at (wrapper runtime-invoke) ButtonApp.runtime_invoke_int_string[] (object,intp
tr,intptr,intptr) <0x>

This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.

C:\Data\project>
---
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] Gtk#

2007-10-17 Thread cichlasoma

thanx! (as for the first question, adding the path to the dll to the system
PATH helped for me.)
c.



Brenton Partridge wrote:
> 
> Hi,
> 
> On Oct 14, 2007, at 1:27 AM, <[EMAIL PROTECTED]>  
> <[EMAIL PROTECTED]> wrote:
> 
>>  hi. when i create a gtk# application in sharpdevelop and i try to  
>> run it, it compiles, yet i get "Exception  
>> System.DllNotFoundException was thrown in debuggee: cannot load the  
>> DLL library (glibsharpglue)." (the part after the semicolon baeing  
>> in my language.) i'm on windows xp, have mono 1.2.5.1 installed,  
>> the named dll is in the mono\bin directory. any ideas what could be  
>> the problem, please?
> 
> Just warning you, I'm a little bit of a noob at this, so there's no  
> guarantee, but you could try either of these:
> 
> a) Put the dll in the mono\lib directory and recompile.
> 
> b) If that doesn't work, put the dll somewhere else, navigate to the  
> directory where the dll is, and run:
> $ gacutil -i glibsharpglue.dll
> See http://www.mono-project.com/Assemblies_and_the_GAC
> 
>>
>> and a question more - how do i set a .NET application to run on  
>> mono istead of .NET if i have the both istalled. (if possible.)
> 
> Try running it it using the mono command from the command line, i.e.
> $ mono my_app.exe
> instead of double clicking it or running
> $ my_app.exe
> 
> HTH,
> Brenton
> 
> ___
> Mono-list maillist  -  Mono-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Gtk--tf4620698.html#a13266308
Sent from the Mono - General mailing list archive at Nabble.com.

___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] Gtk#

2007-10-14 Thread Brenton Partridge
Hi,

On Oct 14, 2007, at 1:27 AM, <[EMAIL PROTECTED]>  
<[EMAIL PROTECTED]> wrote:

>  hi. when i create a gtk# application in sharpdevelop and i try to  
> run it, it compiles, yet i get "Exception  
> System.DllNotFoundException was thrown in debuggee: cannot load the  
> DLL library (glibsharpglue)." (the part after the semicolon baeing  
> in my language.) i'm on windows xp, have mono 1.2.5.1 installed,  
> the named dll is in the mono\bin directory. any ideas what could be  
> the problem, please?

Just warning you, I'm a little bit of a noob at this, so there's no  
guarantee, but you could try either of these:

a) Put the dll in the mono\lib directory and recompile.

b) If that doesn't work, put the dll somewhere else, navigate to the  
directory where the dll is, and run:
$ gacutil -i glibsharpglue.dll
See http://www.mono-project.com/Assemblies_and_the_GAC

>
> and a question more - how do i set a .NET application to run on  
> mono istead of .NET if i have the both istalled. (if possible.)

Try running it it using the mono command from the command line, i.e.
$ mono my_app.exe
instead of double clicking it or running
$ my_app.exe

HTH,
Brenton

___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] Gtk#

2007-10-13 Thread cichlasoma
 hi. when i create a gtk# application in sharpdevelop and i try to run it, it 
compiles, yet i get "Exception System.DllNotFoundException was thrown in 
debuggee: cannot load the DLL library (glibsharpglue)." (the part after the 
semicolon baeing in my language.) i'm on windows xp, have mono 1.2.5.1 
installed, the named dll is in the mono\bin directory. any ideas what could be 
the problem, please?

and a question more - how do i set a .NET application to run on mono istead of 
.NET if i have the both istalled. (if possible.)

TIA

___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] gtk-sharp packages available for openmoko phone

2007-10-05 Thread Cliff Brake
Henryk Plötz has finished the gtk-sharp package and it is now
available in the mono feed:

add the following to a /etc/ipkg/*-feed.conf file:
src/gz mono-armv4t http://dev.bec-systems.com/feed/openmoko/mono

ipkg update
ipkg install libgtk2.0-cil

I have tested a simple mono gtk single window application.

The following components are dependencies of libgtk2.0-cil and are
installed automatically:

libglib2.0-cil
libgtk2.0-cil
libmono-cairo1.0-cil
libmono-corlib1.0-cil
libmono-system1.0-cil
mono
mono-common
mono-jit

The above components only require 3.9MB of space -- that seems pretty
decent for mono gtk support.

The gtk-sharp OE recipe should also be a useful reference for how to
add mono packages to OE.

Cliff

-- 
===
Cliff Brake
http://bec-systems.com
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] Gtk# Problems

2007-09-26 Thread Eskil Bylund
2007/9/23, Brandon Perry <[EMAIL PROTECTED]>:
> After a conversation about Qyoto/Kimono vs Gtk on the Mono-Dev list, I
> decided to try out Glade3. I made a simple test GUI and it compiles
> fine, but when I run it, I get the following error:
>
> [EMAIL PROTECTED]:~$ mono main.exe
>
> (GladeTest:27865): libglade-CRITICAL **: glade_xml_build_interface:
> assertion `wid != NULL' failed
>
> Unhandled Exception: System.NullReferenceException: A null value was
> found where an object instance was required.
>   at GladeApp..ctor (System.String[] args) [0x0]
>   at GladeApp.Main (System.String[] args) [0x0]
> [EMAIL PROTECTED]:~$
>
> The code is attached, thanks.
>
Hi Brandon,

Could you attach the glade file as well? My first guess would be that
it's the same problem as mentioned on http://www.ogmaciel.com/?p=225

Eskil
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] Gtk# Problems

2007-09-24 Thread Brandon Perry
After a conversation about Qyoto/Kimono vs Gtk on the Mono-Dev list, I
decided to try out Glade3. I made a simple test GUI and it compiles
fine, but when I run it, I get the following error:

[EMAIL PROTECTED]:~$ mono main.exe 

(GladeTest:27865): libglade-CRITICAL **: glade_xml_build_interface:
assertion `wid != NULL' failed

Unhandled Exception: System.NullReferenceException: A null value was
found where an object instance was required.
  at GladeApp..ctor (System.String[] args) [0x0] 
  at GladeApp.Main (System.String[] args) [0x0] 
[EMAIL PROTECTED]:~$ 

The code is attached, thanks.
using System;
using Gtk;
using Gdk;
using Glade;
using Gnome;

public class GladeApp
{
	[Widget] Gtk.Button btnOK;
	[Widget] Gtk.Button btnExit;
	[Widget] Gnome.AppBar appbar1;
	
	private static string[] authors = {"Brandon Perry"};
	private static string progname = "GladeTest";
	private static string progver = "1.0";
	
	public static void Main(string[] args)
	{
		new GladeApp(args);
	}
	
	public GladeApp(string[] args)
	{
		Program program = new Program(progname, progver, Modules.UI, args);
		
		Glade.XML gxml = new Glade.XML(null, "test2.glade", "test2", null);
		
		gxml.Autoconnect(this);
		
		appbar1.Push("Ready");
		
		program.Run();
	}
}
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] GTK TreeView + Scrolling

2007-08-24 Thread Adam Tauno Williams
On Fri, 2007-08-24 at 00:04 -0600, John Anderson wrote:
> Hey, I've been going through the tutorial for
> http://www.mono-project.com/GtkSharp_TreeView_Tutorial since this is
> my first time using gtk and the treeview.   I have it all working but
> as I fill the grid it autosizes and I can't shrink the window its in.
> I would like to define a size for the treeview and get scrollbars
> after the data gets past that size, how can I do this? 

Put the TreeView inside a ScrolledWindow.


signature.asc
Description: This is a digitally signed message part
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] GTK TreeView + Scrolling

2007-08-23 Thread John Anderson
Hey, I've been going through the tutorial for
http://www.mono-project.com/GtkSharp_TreeView_Tutorial since this is my
first time using gtk and the treeview.   I have it all working but as I fill
the grid it autosizes and I can't shrink the window its in.  I would like to
define a size for the treeview and get scrollbars after the data gets past
that size, how can I do this?
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] gtk-sharp with directfb backend

2007-08-22 Thread Paolo Molaro
On 08/22/07 Spencer, Matthew wrote:
> I am trying to get gtk-sharp working without X support (ie by using the
> directfb version of gtk).  The demo app gtk-demo works fine.
>  
> To achieve this, I have changed the dll mapping in gtk-sharp.dll.config
> to:
>target="libgtk-directfb-2.0.so.0"/>
>  
> I have created a simple class that inherits from DrawingArea
>  
> class TestClass : DrawingArea {
> }
>  
> When I create an instance of TestClass, the runtime bombs out:
>  
> (!) [ 4220:0.000] --> Caught signal 24 (unknown origin) <--
>  
> Any ideas what the problem might be?  I am running on an arm based
> platform.

Did you also recompile gtk-sharp with the directfb-targeted gtk?
Gtk# uses a few helper shared libs that would be linked against the x11
version and changing the config file wouldn't be enough (also gdk names
need changing).
As for signal 24: how are you getting that? It's likely one of the
signals used by the GC: if you get an error, post that, the above is not
printed by mono.

lupus

-- 
-
[EMAIL PROTECTED] debian/rules
[EMAIL PROTECTED] Monkeys do it better
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] gtk-sharp with directfb backend

2007-08-22 Thread Spencer, Matthew
Hi All
 
I am trying to get gtk-sharp working without X support (ie by using the
directfb version of gtk).  The demo app gtk-demo works fine.
 
To achieve this, I have changed the dll mapping in gtk-sharp.dll.config
to:
  
 
I have created a simple class that inherits from DrawingArea
 
class TestClass : DrawingArea {
}
 
When I create an instance of TestClass, the runtime bombs out:
 
(!) [ 4220:0.000] --> Caught signal 24 (unknown origin) <--
 
Any ideas what the problem might be?  I am running on an arm based
platform.
 
Cheers
 
Matt
*
This e-mail is confidential, the property of NDS Ltd and intended for the 
addressee only.  Any dissemination, copying or distribution of this message or 
any attachments by anyone other than the intended recipient is strictly 
prohibited.  If you have received this message in error, please immediately 
notify the [EMAIL PROTECTED] and destroy the original message.  Messages sent 
to and from NDS may be monitored.  NDS cannot guarantee any message delivery 
method is secure or error-free.  Information could be intercepted, corrupted, 
lost, destroyed, arrive late or incomplete, or contain viruses.  We do not 
accept responsibility for any errors or omissions in this message and/or 
attachment that arise as a result of transmission.  You should carry out your 
own virus checks before opening any attachment.  Any views or opinions 
presented are solely those of the author and do not necessarily represent those 
of NDS.

To protect the environment please do not print this e-mail unless necessary.

NDS Limited Registered office: One Heathrow Boulevard, 286 Bath Road, West 
Drayton, Middlesex, UB7 0DQ, United Kingdom. A company registered in England 
and Wales  Registered no. 3080780   VAT no. GB 603 8808 40-00
**

___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] GTK+ on Mono Windows Installer 1.2.4

2007-05-16 Thread Daniel Morgan
Since menus were not showing properlY, I took the gtk+
runtime from Pidgeon (used to be called Gaim) and put
it in my mono installation prefix.  Now, the menus
show up properly.  This is on windows vista.
According to pidgeon, the gtk+ runtime is 2.10.11.
I tested this via SQL# GTK.


   
Get
 the free Yahoo! toolbar and rest assured with the added security of spyware 
protection.
http://new.toolbar.yahoo.com/toolbar/features/norton/index.php
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] GTK#

2007-05-14 Thread Adam Tauno Williams
On Mon, 2007-05-14 at 17:59 -0300, Fabrício wrote:
> "Gtk-sharp installer for Windows"(gtksharp-2.8.3-win32-0.0.exe) and
> "Gtk-sharp runtime for Windows"(gtksharp-runtime-2.8.3-win32-0.0.exe)
> are different?
> What are these differences?

One is the SDK and the other is the runtime?


signature.asc
Description: This is a digitally signed message part
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] GTK#

2007-05-14 Thread Fabrício
"Gtk-sharp installer for Windows"(gtksharp-2.8.3-win32-0.0.exe) and "Gtk-sharp 
runtime for Windows"(gtksharp-runtime-2.8.3-win32-0.0.exe) are different?
What are these differences?___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] GTK# for .NET 2.0

2007-04-26 Thread Tom Opgenorth
Hello,

I'm just getting started with GTK#, and I was curious if there is a
Win32 installer specifically for .NET 2.0?  I found the Win32
installer for .NET 1.1 - should I just use that?

Thx.
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] Gtk# Datagrid? Reporting?

2007-04-10 Thread Luciano _
The best place to ask this is gtksharp-list
http://lists.ximian.com/mailman/listinfo/gtk-sharp-list
but,
You could use a custom control to replace a datagrid (which is more 
powerfull), you can use as example this link:
http://www.koders.com/csharp/fid35B0BB6652E5E3DC79DA1B7EA402F777E1912A84.aspx?s=datagrid+Gtk
It use a Gtk.VBox to make the datagrid.

Bye
Luciano


>From: "Austin Winstanley" <[EMAIL PROTECTED]>
>To: Mono-list@lists.ximian.com
>Subject: [Mono-list] Gtk# Datagrid? Reporting?
>Date: Tue, 10 Apr 2007 15:08:44 -0500
>MIME-Version: 1.0
>Received: from lists.ximian.com ([130.57.169.22]) by 
>bay0-mc1-f16.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.2668); Tue, 
>10 Apr 2007 13:08:55 -0700
>Received: from galactus.ximian.com (localhost.localdomain [127.0.0.1])by 
>lists.ximian.com (Postfix) with ESMTP id 3F2771CFBA8;Tue, 10 Apr 2007 
>17:58:04 -0400 (EDT)
>Received: from herald.ximian.com (frontgate.ximian.com [130.57.169.19])by 
>lists.ximian.com (Postfix) with ESMTP id E0AC71CFB94for 
>; Tue, 10 Apr 2007 17:58:02 -0400 (EDT)
>Received: by herald.ximian.com (Postfix, from userid 2601)id 2FE6F700B3; 
>Tue, 10 Apr 2007 16:08:47 -0400 (EDT)
>Received: from nz-out-0506.google.com (nz-out-0506.google.com 
>[64.233.162.233])by herald.ximian.com (Postfix) with ESMTP id 5EC36700B8for 
>; Tue, 10 Apr 2007 16:08:45 -0400 (EDT)
>Received: by nz-out-0506.google.com with SMTP id f1so1316875nzcfor 
>; Tue, 10 Apr 2007 13:08:44 -0700 (PDT)
>Received: by 10.114.79.1 with SMTP id c1mr2939651wab.1176235724283;Tue, 10 
>Apr 2007 13:08:44 -0700 (PDT)
>Received: by 10.114.144.15 with HTTP; Tue, 10 Apr 2007 13:08:44 -0700 (PDT)
>X-Message-Info: 
>txF49lGdW42fmXRoBuf3XqulTQ1J3oGJmtHw2c282BJuNQtWLvmDvaOLKwWkPdcC
>X-Original-To: Mono-list@lists.ximian.com
>Delivered-To: Mono-list@lists.ximian.com
>X-Google-Sender-Auth: ae825a8c10238547
>X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on 
>frontgate.ximian.com
>X-Spam-Level: X-Spam-Status: No, score=0.2 required=5.0 
>tests=HTML_00_10,HTML_MESSAGE,RCVD_BY_IP,SPF_HELO_PASS,SPF_PASS 
>version=3.0.3
>X-BeenThere: mono-list@lists.ximian.com
>X-Mailman-Version: 2.1.8
>Precedence: list
>List-Id: Mono Developer Discussion List 
>List-Unsubscribe: 
><http://lists.ximian.com/mailman/listinfo/mono-list>,<mailto:[EMAIL PROTECTED]>
>List-Archive: <http://lists.ximian.com/pipermail/mono-list>
>List-Post: <mailto:mono-list@lists.ximian.com>
>List-Help: <mailto:[EMAIL PROTECTED]>
>List-Subscribe: 
><http://lists.ximian.com/mailman/listinfo/mono-list>,<mailto:[EMAIL PROTECTED]>
>Errors-To: [EMAIL PROTECTED]
>Return-Path: [EMAIL PROTECTED]
>X-OriginalArrivalTime: 10 Apr 2007 20:08:55.0175 (UTC) 
>FILETIME=[10EA9970:01C77BAC]
>
>Is there a good Gtk# Datagrid available? And what about Gtk# Reporting? I 
>am
>trying to create a business application and I would like to use Gtk# to do
>it, but a good Datagrid and Reporting are imperative to the project...
>
>--
>Thanks,
>Austin Winstanley
>Tradelogic Software Group


>___
>Mono-list maillist  -  Mono-list@lists.ximian.com
>http://lists.ximian.com/mailman/listinfo/mono-list

_
Visita MSN Latino Entretenimiento: ¡música, cine, chismes, TV y más...! 
http://latino.msn.com/entretenimiento/

___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] Gtk# Datagrid? Reporting?

2007-04-10 Thread Austin Winstanley

Is there a good Gtk# Datagrid available? And what about Gtk# Reporting? I am
trying to create a business application and I would like to use Gtk# to do
it, but a good Datagrid and Reporting are imperative to the project...

--
Thanks,
Austin Winstanley
Tradelogic Software Group
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] [Gtk-sharp-list] Thread-safe GUI update

2007-03-22 Thread Chris Seaton
You want to use a semaphore. After AppendAvalues you signal. In place  
of Thread.Sleep you wait on that signal. Something vaguely like

Semaphore semaphore = new Semaphore(0, 1);

while (Messages.Count > 0) {
msg = (Message) Messages.Dequeue();
send(msg);

  Gtk.Application.Invoke(delegate {
treeStore.AppendAvalues(msg.To, msg.Text);
semaphore.Release(1);
});

semaphore.WaitOne();
}

Chris Seaton

On 22 Mar 2007, at 20:31, Leon Stringer wrote:

> Hi,
>
> I'm updating a list (TreeView with TreeStore) from a thread when
> processing some items, something like:
>
> while (Messages.Count > 0) {
>   msg = (Message) Messages.Dequeue();
>   send(msg);
>
>  Gtk.Application.Invoke(delegate {
>   treeStore.AppendAvalues(msg.To, msg.Text);
>   });
>
>   Thread.Sleep(0);
> }
>
> There's another thread adding messages to the message queue.
>
> The problem is that sometimes the Gtk.Application.Invoke() is executed
> after I've dequeued the next message so the wrong item is added to the
> list. I could stick a greater value in Thread.Sleep() but this  
> would be
> a kludge. Is there any thread-safe way to do this?
>
> (Mono 1.1.13.8 for Windows)
>
> Thanks in advance,
>
> Leon...
> ___
> Gtk-sharp-list maillist  -  Gtk-sharp-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/gtk-sharp-list

___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] GTK# Treeview/Dataset example

2007-03-06 Thread tom potts
Is there an example anywhere of using a Treeview
widget and a DataSet in a similar way to the DataGrid
in windows forms?
It seems to be requested on the forums frequently but
I've never found one.
Or tips on how to do it and I'll try and put one
together.
Tom




___ 
What kind of emailer are you? Find out today - get a free analysis of your 
email personality. Take the quiz at the Yahoo! Mail Championship. 
http://uk.rd.yahoo.com/evt=44106/*http://mail.yahoo.net/uk 
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] Gtk-sharp-2.10.0.0 for MS Windows

2007-03-03 Thread David Anes

Well,
that discussion was actually in the gtk# mailing list, I've forgot to
mention this.

David Anes.

2007/3/3, David Anes <[EMAIL PROTECTED]>:


Hi Adam.

As far as I know, Gtk# 2.10 for Windows has some bugs and so there is no
current version available. Recently has been a discussion about that in the
list.
I C&P the explanation that gave Cody recently:

Hi Matteo,

I'm also from Medsphere, and I just want to point out that this is
actually gtk# 2.8, but it's GTK+ 2.10.7 underneath that.  There seems to
be a bug currently in gtk# 2.10 that is preventing us from using it:
http://bugzilla.ximian.com/show_bug.cgi?id=79993

/ Cody

We are all awaiting the release of gtk# 2.10 for Win :(

David Anes.

2007/3/3, Adam Wood < [EMAIL PROTECTED] >:
>
> Hi,
>
> Can anyone please tell me where I can download the gtk-sharp runtime for
>
> windows version 2.10.0.0.
>
> I can only find 2.8.3 and I've looked everywhere I can think of.
>
> Thanks in advance for any help.
>
> Adam Wood
> ___
> Mono-list maillist  -  Mono-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
>


___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] Gtk-sharp-2.10.0.0 for MS Windows

2007-03-03 Thread David Anes

Hi Adam.

As far as I know, Gtk# 2.10 for Windows has some bugs and so there is no
current version available. Recently has been a discussion about that in the
list.
I C&P the explanation that gave Cody recently:

Hi Matteo,

I'm also from Medsphere, and I just want to point out that this is
actually gtk# 2.8, but it's GTK+ 2.10.7 underneath that.  There seems to
be a bug currently in gtk# 2.10 that is preventing us from using it:
   http://bugzilla.ximian.com/show_bug.cgi?id=79993

/ Cody

We are all awaiting the release of gtk# 2.10 for Win :(

David Anes.

2007/3/3, Adam Wood <[EMAIL PROTECTED] >:


Hi,

Can anyone please tell me where I can download the gtk-sharp runtime for
windows version 2.10.0.0.

I can only find 2.8.3 and I've looked everywhere I can think of.

Thanks in advance for any help.

Adam Wood
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list

___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] Gtk-sharp-2.10.0.0 for MS Windows

2007-03-03 Thread Adam Wood
Hi,

Can anyone please tell me where I can download the gtk-sharp runtime for 
windows version 2.10.0.0.

I can only find 2.8.3 and I've looked everywhere I can think of.

Thanks in advance for any help.

Adam Wood
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] Gtk# Recommendation

2007-01-04 Thread rolandpish

Adam and Maciej, thanks a lot for your replies.
I made a little test using Glade and Monodevelop.
As Adam said, Monodevelop seems a little bit easier to use than Glade,
Monodevelop doesn't have an installer for Windows yet and I know I will
need someday to develop under Windows.
In the meantime I can start those projects under Linux.

Thanks a lot and any other suggestion is appreciated.

Best Regards

Roland
-- 
View this message in context: 
http://www.nabble.com/Gtk--Recommendation-tf2916068.html#a8160159
Sent from the Mono - General mailing list archive at Nabble.com.

___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] Gtk# Recommendation

2007-01-04 Thread Adam Tauno Williams
> Recently I installed mono 1.2.2.1 under openSuSE 10.2 and started to use
> monodevelop.
> With monodevelop I'm able to start a new Gtk# project and it has a GUI
> designer for Gtk# projects.
> Although, I've been testing GLADE too.
> Both Monodevelop's Gtk# GUI and GLADE seem great to me.
> I want to start some projects under mono but I would like suggestions on
> which GUI to use: Gtk# or GLADE.
> I'm newbie in this, I've been programming in C# under .NET Framework and I
> want to start using mono
> and leave .NET Framework.

I use Stetic (the GUI design tool in Monodevelop).  I find it slightly
easier to use than Glade and easier to design your UI in bits and pieces
- making your own composite widgets, etc...

But previously I used Glade, it worked too.

___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] Gtk# Recommendation

2007-01-03 Thread Maciej Piechotka
On Wed, 03 Jan 2007 13:22:16 -0800, rolandpish wrote:

> Hi there.
> Recently I installed mono 1.2.2.1 under openSuSE 10.2 and started to use
> monodevelop.
> With monodevelop I'm able to start a new Gtk# project and it has a GUI
> designer for Gtk# projects.
> Although, I've been testing GLADE too.
> Both Monodevelop's Gtk# GUI and GLADE seem great to me.
> I want to start some projects under mono but I would like suggestions on
> which GUI to use: Gtk# or GLADE.
> I'm newbie in this, I've been programming in C# under .NET Framework and I
> want to start using mono
> and leave .NET Framework.
> 
> Thanks in advance
> 
> Regards

Glade is build on top of Gtk+. I think you should learn Gtk+/Gtk# first to
fully use Glade/Glade#.

Regards
PS. Monodevelop use stetic. which is compatible with glade.
-- 
I've probably left my head... somewhere. Please wait untill I find it.
Homepage (pl_PL): http://uzytkownik.jogger.pl/
(GNU/)Linux User: #425935 (see http://counter.li.org/)

___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] Gtk# Recommendation

2007-01-03 Thread rolandpish

Hi there.
Recently I installed mono 1.2.2.1 under openSuSE 10.2 and started to use
monodevelop.
With monodevelop I'm able to start a new Gtk# project and it has a GUI
designer for Gtk# projects.
Although, I've been testing GLADE too.
Both Monodevelop's Gtk# GUI and GLADE seem great to me.
I want to start some projects under mono but I would like suggestions on
which GUI to use: Gtk# or GLADE.
I'm newbie in this, I've been programming in C# under .NET Framework and I
want to start using mono
and leave .NET Framework.

Thanks in advance

Regards
-- 
View this message in context: 
http://www.nabble.com/Gtk--Recommendation-tf2916068.html#a8148962
Sent from the Mono - General mailing list archive at Nabble.com.

___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] gtk-sharp was not found

2006-12-13 Thread Maciej Piechotka
On Wed, 13 Dec 2006 05:14:06 -0800, kamel wrote:

> Hi,,
> 
> 
> Linux jihbedunix.openunix.local 2.6.18-1.2798.fc6 #1
> SMP Mon Oct 16 14:39:22 EDT 2006 x86_64 x86_64 x86_64
> GNU/Linux
> 
> $ mcs test.cs -pkg:gtk-sharp
> Package gtk-sharp was not found in the pkg-config
> search path.
> Perhaps you should add the directory containing
> `gtk-sharp.pc'
> to the PKG_CONFIG_PATH environment variable
> No package 'gtk-sharp' found
> error CS8027: Error running pkg-config. Check the
> above output.
> 
> How to solve this problem ??
> 

Do you have gtk-sharp installed?

Regards

-- 
I've probably left my head... somewhere. Please wait untill I find it.
Homepage (pl_PL): http://uzytkownik.jogger.pl/
(GNU/)Linux User: #425935 (see http://counter.li.org/)

___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] gtk-sharp was not found

2006-12-13 Thread kamel
Hi,,


Linux jihbedunix.openunix.local 2.6.18-1.2798.fc6 #1
SMP Mon Oct 16 14:39:22 EDT 2006 x86_64 x86_64 x86_64
GNU/Linux

$ mcs test.cs -pkg:gtk-sharp
Package gtk-sharp was not found in the pkg-config
search path.
Perhaps you should add the directory containing
`gtk-sharp.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gtk-sharp' found
error CS8027: Error running pkg-config. Check the
above output.

How to solve this problem ??

Thank you 

kamel 


NetBSD is very JIHBED, MONO RUN in NetBSD


 

Have a burning question?  
Go to www.Answers.yahoo.com and get answers from real people who know.
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] Gtk# With Webservices

2006-12-11 Thread Adam Tauno Williams
> Is what one can write combined GTK # with the
> webservices?

Sure, we use web services from Gtk# apps all the time.  The two don't
really have anything to do with each other.

___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] Gtk# With Webservices

2006-12-11 Thread kamel
Hi,,


Is what one can write combined GTK # with the
webservices?

Thank you 

Kamel 

NetBSD is very JIHBED, MONO RUN in NetBSD


 

Do you Yahoo!?
Everyone is raving about the all-new Yahoo! Mail beta.
http://new.mail.yahoo.com
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] GTK# DataGrid sample

2006-10-29 Thread Andrus
Daniel,

thank you.
I found the following disadvantages of this code compared to SWF:

1. As you wrote, this is only one-way binding.
2. Requires lot of manually written code.
3. Unfinished, not documented and tested.

In case of WinForms I need to write manually only 3 lines for two-way data 
binding:

Command1.CommandText = "select * FROM mytable";
DataAdapter1.Fill(dataSet1);
DataSource = dataSet1.Tables[0];

Other code is generated by free Visual C# Express 2005  automatically and 
works in MONO.

I have no experience to develop this in GTK#
So I think I will try use WinForms data binding.

Thank you very much for this sample. Now I understand that this can be 
implemented in GTK# also

Andrus.

- Original Message - 

>I have something I have worked on for awhile.
>
> Here are the source files I included:
> DataGrid.cs - creates a DataGrid for Gtk# with data
> binding support.
> TestDataGrid.cs - tests the gtk# data grid
>
> Basically, you can take a pre-loaded DataTable, and
> then "data bind" it to the DataGrid.  It may not be
> true data binding like SWF or webforms, but its an
> attempt.
>
> A change to the data in the DataGrid will update the
> data in the DataTable.
> If you add a row or delete a row in the DataGrid, it
> will be reflected in the DataTable.  If you modify a
> cell in the DataGrid, the row and column in the
> DataTable will be updated.  However, modifying
> something in the DataTable does not update the
> DataGrid.
>
> In the test, there are four menu items:
> 1. Add Row - adds a row
> 2. Dump Table - dumps to the console what's in the
> DataTable
> 3. Editable - sets the DataGrid editable or not
> 4. Delete Selected Row - deletes the highlighted row
>
> The DataGrid is implemented using a Gtk# TreeView
> using the ListStore tree model.
>
>> I need to edit DataTable returned by Npgsql in grid.
>> I'm studying GTK# and WinForms DataGrid  for this.
>> It would be nice if sqlsharpgtk allows edit tables
>> in grid.
>> I was looking for a sample GTK# code which allows to
>> edit DataTable in grid
>> but have'nt found any.
>> So I think I will use WinForms.






> // DataGrid.cs
> namespace Mono.Data.GtkSharp
> {
> // notice System.Data is not references here
>
> using System;
> using System.Collections;
> using System.ComponentModel;
> using System.Reflection;
> using System.Runtime.InteropServices;
> using System.Text;
>
> using GLib;
> using Gtk;
>
> public class DataGridColumn
> {
> private string columnName = "";
> private TreeViewColumn treeViewColumn = null;
> public CellRendererText Renderer = null; // should be internal
>
> public string ColumnName {
> get {
> return columnName;
> }
> set {
> columnName = value;
> }
> }
>
> public TreeViewColumn TreeViewColumn {
> get {
> return treeViewColumn;
> }
> set {
> treeViewColumn = value;
> }
> }
> }
>
> public class DataGrid : VBox {
> private ListStore store;
> private TreeView treeView;
>
> public ArrayList gridColumns; // TODO: make Columns a collection
>
> public DataGrid () : base(false, 4) {
> ScrolledWindow sw = new ScrolledWindow ();
> this.PackStart (sw, true, true, 0);
>
> treeView = new TreeView (store);
> treeView.HeadersVisible = true;
> //treeView.ModifyFont (Pango.FontDescription.FromString ("courier new"));
>
> gridColumns = new ArrayList(0);
>
> sw.Add (treeView);
>
> store = new ListStore (GLib.GType.String);
>
> treeView.EnableSearch = true;
> treeView.HeadersClickable = true;
> dataMember = "";
> dataSource = null;
>
>
> }
>
> ArrayList bindrows = null;
> object resolvedDataSource = null;
>
> private bool editable = true;
>
> private object dataSource;
>
> private string dataMember;
>
> public int SelectedRow {
> get {
> TreeIter iter;
> TreeModel model;
> TreeSelection selection = treeView.Selection;
> if (selection.GetSelected (out model, out iter)) {
> TreePath[] path = selection.GetSelectedRows (out model);
> return path[0].Indices[0]; // return selected row
> }
> else
> return -1; // not selected
> }
> }
>
> public TreeIter SelectedIter {
> get {
> TreeIter iter;
> TreeModel model;
> TreeSelection selection = treeView.Selection;
> if (selection.GetSelected (out model, out iter))
> return iter; // return seelcted iter
> else
> return TreeIter.Zero; // not selected
> }
>
> }
>
> public TreeView View
> {
> get
> {
> return treeView;
> }
> }
>
> public object DataSource
> {
> get
> {
> return dataSource;
> }
> set
> {
> dataSource = value;
> }
> }
>
> public string DataMember
> {
> get
> {
> return dataMember;
> }
> set
> {
> dataMember = value;
> }
> }
>
> public ListStore Store
> {
> get
> {
> return store;
> }
> }
>
> public ArrayList Columns
> {
> get
> {
> return gridColumns;
> }
> }
>
> public bool Editable {
> get {
> return editable; // not a good way to see if its editable or not
> // because various columns could be editable and others non-editable
> }
>
> set {
> editable = value;
> if (value == true) {
> for(int c

[Mono-list] [GTK#] Debian stable problem

2006-10-27 Thread Generic 2006
Hi all

Is there anybody using Mono on Debian stable (Sarge)?

I'm experiencing a tough problem trying GTK# 1.0: it requires
"libpangocairo", but Debian stable DOESN'T ship with it (it's available
on testing and unstable only)!

How did you solved such an issue?

Many thanks (I'm desperate...)

___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] GTK# problem

2006-09-23 Thread chris
Hi all,

I have a problem with an gtk# app. As soon as I define a signal, at this
stage it  is , in the glade.xml
file, the following Exception is raised:

Object reference not set to an instance of an object.

ConnectFunc()
Autoconnect()
Autoconnect()
.ctor()
Main()

My code looks like this:
---
using Gtk;
using Glade;
using System;

namespace Sharp
{
/// 
/// Description of MainWindow.
/// 
public class MainWindow
{
public MainWindow()
{
Glade.XML gxml = new Glade.XML(null, "Sharp.glade.xml", 
"mainGUI", null);
gxml.Autoconnect(this);
}

[STAThread]
public static void Main(string[] arg)
{
Application.Init();
new MainWindow();
Application.Run();
}

void on_mainGUI_delete_event(object o, DeleteEventArgs args)
{
Application.Quit();
args.RetVal = true;
}
}
}
---

All ideas appreciated.
Chris
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] gtk installer

2006-07-14 Thread Joe Audette
ftp seems to be down at Novell Forge, every project I've checked has an error 
that says "Failed to retrieve a file listing."

Joe
 
 
joe_audette [at] yahoo dotcom 
http://www.joeaudette.com 
http://www.mojoportal.com

- Original Message 
From: Bryan Buchanan <[EMAIL PROTECTED]>
To: mono-list@lists.ximian.com
Sent: Friday, July 14, 2006 8:18:18 AM
Subject: [Mono-list] gtk installer

Hi,

There appear to be no files here

http://forge.novell.com/modules/xfmod/project/?gtks-inst4win

Have they moved or is this no longer available.

Thanks,

Bryan

___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list




___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] gtk installer

2006-07-14 Thread Bryan Buchanan
Hi,

There appear to be no files here

http://forge.novell.com/modules/xfmod/project/?gtks-inst4win

Have they moved or is this no longer available.

Thanks,

Bryan

___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] GTK# ComboBox

2006-05-27 Thread mono-list . 1 . tracyanne
How can I make the combobox that is part of the widget set on monodevelop
function in the manner it's icon implies it can function? That is a list
that drops down like the combobox entry does and is a fixed height, with a
vertical scroll bar when there are more entries than can be displayed.

Or alternately, how can I make the combobox entry not editable?

I really dislike the look and feel of the default combobox, especially the
way in which the popup is displayed.

regards

Tracy Barlow




Dodo - an
Official Sponsor of the
2006 FORMULA 1 (tm)
Foster's Australian Grand Prix

___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] gtk-dotnet

2006-04-05 Thread Jonathan S. Chambers








I noticed that (at least) on the latest windows installers (1.1.13.4
and 1.1.14), the gtk-dotnet-2.0.pc file is there, but the actual dll is not. Is
this a mistake?

 

Thanks,

Jonathan
S. Chambers

Software
Development Engineer

ANSYS,
Inc.

Phone:
724.514.3682

Fax:
724.514.3114

E-mail:
[EMAIL PROTECTED]

 

___

The
information transmitted is intended only for the person or entity to which it
is addressed and may contain confidential and/or privileged material. Any
review, retransmission, dissemination or other use of, or taking of any action
in reliance upon, this information by persons or entities other than the
intended recipient is prohibited. If you received this in error, please contact
the sender and delete the material from any computer.

 






___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] Gtk objects

2006-04-01 Thread Tomas Olofsson

Hi
Thanks for the help, I tried to use

Gtk.Application.Invoke (delegate {
   statusbar.Push(1, "Done");
});

just to see if it worked in a method not called by the gui-thread, but I 
get an exception:
Unhandled Exception: System.NullReferenceException: Object reference not 
set to an instance of an object

in <0x00083> ClientGUI:ShowSearchResults ()
.
.
Is there something else I must do to make Invoke work more than the 2 
lines above?



On Fri, 31 Mar 2006, Mario Carrión wrote:


On 3/31/06, Tomas Olofsson <[EMAIL PROTECTED]> wrote:
Hi

Hello


I'm writing a client/server application and have divided the client in two
classes. I have a gui-class and a functional-class.
I have a big problem that I can't access and change the gtk object properties
from the functional class, the program just "hangs" on the codeline and
doesn't do anything. I can change "regular" variables
like strings, int, double and so on but gtk objects don't respond.
I have tried to set the gtk objects to public and also fetch them with
set- and get-methods.

Does anyone have an idea of what I have done wrong?

If you are changing from another Thread different than main see the
Responsive Applications article[1] for getting a solution.

[1] http://www.mono-project.com/Responsive_Applications

Cheers
-
Mario Carrión <[EMAIL PROTECTED]>

--

Thomas Olofsson
[EMAIL PROTECTED]

www.blienvinnare.com

___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] Gtk objects

2006-03-31 Thread Mario Carrión
On 3/31/06, Tomas Olofsson <[EMAIL PROTECTED]> wrote:
> Hi
Hello

> I'm writing a client/server application and have divided the client in two
> classes. I have a gui-class and a functional-class.
> I have a big problem that I can't access and change the gtk object properties
> from the functional class, the program just "hangs" on the codeline and
> doesn't do anything. I can change "regular" variables
> like strings, int, double and so on but gtk objects don't respond.
> I have tried to set the gtk objects to public and also fetch them with
> set- and get-methods.
>
> Does anyone have an idea of what I have done wrong?
If you are changing from another Thread different than main see the
Responsive Applications article[1] for getting a solution.

[1] http://www.mono-project.com/Responsive_Applications

Cheers
-
Mario Carrión <[EMAIL PROTECTED]>
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] Gtk objects

2006-03-31 Thread Carlos Ble
El vie, 31-03-2006 a las 17:52 +0200, Tomas Olofsson escribió:
> Hi
> 
> I'm writing a client/server application and have divided the client in two 
> classes. I have a gui-class and a functional-class.
> I have a big problem that I can't access and change the gtk object properties
> from the functional class, the program just "hangs" on the codeline and
> doesn't do anything. I can change "regular" variables 
> like strings, int, double and so on but gtk objects don't respond.
> I have tried to set the gtk objects to public and also fetch them with 
> set- and get-methods.
> 
> Does anyone have an idea of what I have done wrong?
> 

Hi,
Check that you are calling Gtk.Application.Init();
Post your source code here.




> / Thomas
> ___
> Mono-list maillist  -  Mono-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list

___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] Gtk objects

2006-03-31 Thread Tomas Olofsson

Hi

I'm writing a client/server application and have divided the client in two 
classes. I have a gui-class and a functional-class.

I have a big problem that I can't access and change the gtk object properties
from the functional class, the program just "hangs" on the codeline and
doesn't do anything. I can change "regular" variables 
like strings, int, double and so on but gtk objects don't respond.
I have tried to set the gtk objects to public and also fetch them with 
set- and get-methods.


Does anyone have an idea of what I have done wrong?

/ Thomas
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] Gtk# unstable tarball

2005-12-02 Thread Carlos Ble
Hi!
There is no link at http://go-mono.com/sources to download unstable
Gtk#: http://go-mono.com/sources/gtk-sharp-2.0/gtk-sharp-2.7.1.tar.gz
I think that could be interesting to put a link to the tarball like in
older releases. 


___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] GTK# compile problem

2005-12-01 Thread Stanislav Nedelchev
Hi to all
I have one very simple question.
What i must change to get it working errors are listed bellow
i;m using mono  1.1.8.3 under linux
But it is almost the same in windows
can anybody give me some advice is it there something speacial to do to
get it working with sharpdeveloper under windows
and using GTK#

Thanks
I'm trying to compile one of the GTK example and i'm geting errors like this


test.cs(4) error CS0234: The type or namespace name `Drawing' could not
be found in namespace `System'
test.cs(15) error CS0246: Cannot find type 'DeleteEventArgs'
test.cs(1) error CS0246: The namespace `Gtk' can not be found (missing
assembly reference?)
Try using -pkg:gtk-sharp
test.cs(2) error CS0246: The namespace `GtkSharp' can not be found
(missing assembly reference?)
Try using -pkg:gtk-sharp
test.cs(4) error CS0234: The type or namespace name `Drawing' could not
be found in namespace `System'
test.cs(4) error CS0246: The namespace `System.Drawing' can not be found
(missing assembly reference?)
Try using -r:System.Drawing
Compilation failed: 6 error(s), 0 warning


Code of example


___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] GTK# project template for visual studio

2005-11-17 Thread Adolfo J. Peña
When I install GTK# for windows I get a project template for Visual 
Sudio. When I install Mono, wich includes GTK# itself, I cannot find the 
project template.


Where can I find or the template in MONO?
Can I download it without having to download the GTK# installer for 
windows separatelly?
Is there a GTK# project template for SharpDevelop? Will there be a 
template fo the new visual studio?


Thanks,

Adolfo
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] Gtk# and FileChooserDialog

2005-10-29 Thread Raitskin Alexandr
Once I used it the FileChoserDialog in PyGTK and there all I did after 
loading it from glade  (with Glade.XML) was to run it with the run() 
method and retrieve the filename chosen.
When I do it in mono, the dialog either stops reacting to events ( can't 
click on anything after the first click on the open/cancel button) or 
doesn't do anything at all. What's important is that it wouldn't close 
itself.
Do I have to add manually events in Glade? (seams not reasonable) or is 
it yet in stages of early development? In the Monodoc I see a note near 
several of it's methods that say [not implemented] but it doesn't yield 
any errors during the compilation.

___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] GTK and Gnome Widgets

2005-07-23 Thread mono-list . 1 . tracyanne
I've been using the Gnome.Entry combobox widget in an application I'm
working on. But I notice that according to the C Sharp compiler this
widget is obsolete.

Quite apart from the fact, that in my opinion it is a much better
combobox widget to work with than the GTK.combobox and the
GTK.Comboboxentry widgets, I notice that the Glade GUI builder that
comes with MonoDevelop 0.7 also uses the Gnome.Entry Combobox widget.

Can someone explain to me what is going on here.


Regards

Tracy Barlow
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] gtk

2005-06-16 Thread Shawn Vose
I have been trying to install the latest mono-* including gtk,monodoc 
etc on my fedora3 box. I know this is not the list to post it to so I am 
hoping someone will point me in the direction I need to go or better yet 
tell me what the problem is. Mono has installed fine. The problem is 
with gtk+. I am getting the following error:


In file included from ../../gdk/gdk.h:43,
from gdkasync.h:25,
from gdkasync.c:51:
../../gdk/gdkpango.h:69: error: syntax error before "PangoRenderer"
../../gdk/gdkpango.h:69: warning: no semicolon at end of struct or union
../../gdk/gdkpango.h:72: error: syntax error before '}' token
../../gdk/gdkpango.h:84: error: syntax error before "PangoRendererClass"
../../gdk/gdkpango.h:84: warning: no semicolon at end of struct or union
../../gdk/gdkpango.h:89: error: syntax error before '*' token


etc...

Any input would help out significantly.

Kindest Regards,
Shawn Vose

___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] GTK# Stock Icon

2005-04-26 Thread Milen Dzhumerov
Ben Motmans wrote:
On 4/22/05, Milen Dzhumerov <[EMAIL PROTECTED]> wrote:
 

Hi all,
I've been reading Mono: A Developer's Notebook and I couldn't find a way
of creating an icon with a stock image. I looked at
www.go-mono.com/docs/ for Icon related classes but couldn't figure out
how to do it. My other question is, is it possible to show a menu if the
user clicked on the icon?
Regards,
gamehack
   

You don't need to use the Icon class, but the Image class
Image img = new Image("gtk-save", IconSize.Menu);
It is also possible to show a menu if a user clicks on the image, but
you need to add the Image to an EventBox, since an Image cannot fire
events
EventBox eb = new EventBox();
EventBox.Add(new Image("gtk-save", IconSize.Menu);
EventBox.ButtonPressEvent += new ButtonPressEventHandler (OnImageClick);
private void OnImageClick (object o, ButtonPressEventArgs args)
{
  if (args.Event.Button == 3) { //right click
 Menu popupMenu = new Menu();
 MenuItem menuPopup1 = new MenuItem ("Popup item 1");
 popupMenu.Add (menuPopup1);
 popupMenu.Popup (null, null, null, IntPtr.Zero,
args.Event.Button, args.Event.Time);
 popupMenu.ShowAll ();
  }
}
But are you sure you really want a stock image with a menu popping up
if the user clicks the image? there are nice ways of doing someting
similar, like a Toolbar with a Gtk.MenuToolButton (some sort of combo
box) or ...
-- Ben
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list

 

Well,
I want to use this for a tray icon. Here's the sample code - 
http://www.1nsp1r3d.co.uk/tmp/mono/TrayIcon.cs. I want to replace this line:

icon.Add (new Label ("Testing"));
with your code, but I'm not sure whether it will work out. And as a side 
not, I couldn't find the method documented anywhere.

Regards,
gamehack
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] GTK# Stock Icon

2005-04-22 Thread Ben Motmans
On 4/22/05, Milen Dzhumerov <[EMAIL PROTECTED]> wrote:
> Hi all,
> 
> I've been reading Mono: A Developer's Notebook and I couldn't find a way
> of creating an icon with a stock image. I looked at
> www.go-mono.com/docs/ for Icon related classes but couldn't figure out
> how to do it. My other question is, is it possible to show a menu if the
> user clicked on the icon?
> 
> Regards,
> gamehack

You don't need to use the Icon class, but the Image class
Image img = new Image("gtk-save", IconSize.Menu);

It is also possible to show a menu if a user clicks on the image, but
you need to add the Image to an EventBox, since an Image cannot fire
events

EventBox eb = new EventBox();
EventBox.Add(new Image("gtk-save", IconSize.Menu);
EventBox.ButtonPressEvent += new ButtonPressEventHandler (OnImageClick);

private void OnImageClick (object o, ButtonPressEventArgs args)
{
   if (args.Event.Button == 3) { //right click
  Menu popupMenu = new Menu();
  MenuItem menuPopup1 = new MenuItem ("Popup item 1");
  popupMenu.Add (menuPopup1);
  popupMenu.Popup (null, null, null, IntPtr.Zero,
args.Event.Button, args.Event.Time);

  popupMenu.ShowAll ();
   }
}

But are you sure you really want a stock image with a menu popping up
if the user clicks the image? there are nice ways of doing someting
similar, like a Toolbar with a Gtk.MenuToolButton (some sort of combo
box) or ...

-- Ben
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


  1   2   3   >