Re: C99 complex types in Glib

2010-12-10 Thread CaStarCo
Hello :)

2010/12/11 Emmanuele Bassi eba...@gmail.com


 hi;

 glib development is discussed on the gtk-devel mailing list, but I can
 directly answer to you right now.

 On Sat, 2010-12-11 at 00:19 +0100, CaStarCo wrote:

  I write here because i have many doubts and because i want to
  contribute with my code to the Glib library ^^ .

 cool, contributions are much welcome...

  The first doubt is : The Glib project is using the C99 spec or the C89
  spec?

 for portability reasons, GLib follows the C89 spec. the C99 spec is not
 fully implemented by all compilers on all platforms we're tracking, so
 it cannot be used.

  If it's the second case... there is any way to contribute to Glib
  adding support to the complex floating point types that C99 introduced
  in the year 2000 ?

 honestly, I doubt this is a compelling enough use case to introduce new
 types; applications that require complex floating point types will also
 require other ad hoc facilities that GLib does not provide.


I don't think so :p , one usage example: extending the Vala language, in any
case, the complex.h header provides simple functions to work with complex
numbers.

Another usage example: simplify the code of, for example, gcalctool.

In any case, if the reasons of not extending Glib are related with
compatibility, that's a stronger reason :) .



 nevertheless, if new types have been introduced and if they can be
 checked at configure-time, then they may be supported by wrapping them,
 in to provide a graceful degradation path.


I have a doubt about that. To introduce a type following the way you
described... I must create another mini library inside the Glib?


 code contributions for GLib go through Bugzilla:

  http://bugzilla.gnome.org/enter_bug.cgi?product=glib

 ciao,
  Emmanuele.



Thanks for your atention!

-- 
- Per la llibertat del coneixement -
- Per la llibertat de la ment...   -
___
gtk-devel-list mailing list
gtk-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-devel-list


Icons box?

2010-07-14 Thread CaStarCo
Hello ,

anyone knows if there is a widget to put inside of it an icons collection?
(the icons with fixed size, and the widget with non fixed size, so, the
widget should redraw de icons position when resizing)

Thanks in advance :) , I'm sorry for only asking and not helping... I'm a
newbie yet with Gtk :p .

-- 
- Per la llibertat del coneixement -
- Per la llibertat de la ment...   -
___
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list


Doubts about creating a new widget

2010-07-12 Thread CaStarCo
Hello, my name is Andreu and i'm new in this list.

I have a doubt about if I should create a new widget or if there is a widget
that could supply my needs.

I'll describe what I need: I want to make a left column in the window with
flat toggle buttons (with the 100% of the column width) that, when I press
one of the buttons then the buttons that are below than it should go down to
give space to a icon list with a vertical scroll bar.

I need it to sort the elements in a diagram editor that i'm programming.

Thanks in advance :) .

-- 
- Per la llibertat del coneixement -
- Per la llibertat de la ment...   -
___
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list


Re: Doubts about creating a new widget

2010-07-12 Thread CaStarCo
Thanks Nicola :D ,

i haven't found any screenshot of GtkExpander widget, there is any
screenshot in any place?

2010/7/12 Nicola Fontana n...@entidi.it

 Il giorno Mon, 12 Jul 2010 14:19:12 +0200
 CaStarCo casta...@gmail.com ha scritto:

  Hello, my name is Andreu and i'm new in this list.
 
  I have a doubt about if I should create a new widget or if there is a
 widget
  that could supply my needs.
 
  I'll describe what I need: I want to make a left column in the window
 with
  flat toggle buttons (with the 100% of the column width) that, when I
 press
  one of the buttons then the buttons that are below than it should go down
 to
  give space to a icon list with a vertical scroll bar.
 
  I need it to sort the elements in a diagram editor that i'm programming.

 From what I understood, I'd use GtkExpander.

 --
 Nicola




-- 
- Per la llibertat del coneixement -
- Per la llibertat de la ment...   -
___
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list


Re: Doubts about creating a new widget

2010-07-12 Thread CaStarCo
U_U Thanks, i made a bad search before.

2010/7/12 Jeff Hallock jhall...@wbanda.com

  Hmmm…. I able to find one immediately by googling “gtk expander
 screenshot”. Who’d a thought…



 You can also always give it a try yourself…





 *From:* gtk-list-boun...@gnome.org [mailto:gtk-list-boun...@gnome.org] *On
 Behalf Of *CaStarCo
 *Sent:* Monday, July 12, 2010 2:46 PM
 *To:* gtk-list@gnome.org
 *Subject:* Re: Doubts about creating a new widget



 Thanks Nicola :D ,



 i haven't found any screenshot of GtkExpander widget, there is any
 screenshot in any place?



 2010/7/12 Nicola Fontana n...@entidi.it

 Il giorno Mon, 12 Jul 2010 14:19:12 +0200
 CaStarCo casta...@gmail.com ha scritto:


  Hello, my name is Andreu and i'm new in this list.
 
  I have a doubt about if I should create a new widget or if there is a
 widget
  that could supply my needs.
 
  I'll describe what I need: I want to make a left column in the window
 with
  flat toggle buttons (with the 100% of the column width) that, when I
 press
  one of the buttons then the buttons that are below than it should go down
 to
  give space to a icon list with a vertical scroll bar.
 
  I need it to sort the elements in a diagram editor that i'm programming.

 From what I understood, I'd use GtkExpander.

 --
 Nicola




 --
 - Per la llibertat del coneixement -
 - Per la llibertat de la ment...   -




-- 
- Per la llibertat del coneixement -
- Per la llibertat de la ment...   -
___
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list


Re: RE: Doubts about creating a new widget

2010-07-12 Thread CaStarCo
Yes, it's the web i've found too, it's interesting :) .

Now I have question about GtkExpander, I've searched in the documentation
page: http://library.gnome.org/devel/gtk/stable/GtkExpander.html

http://library.gnome.org/devel/gtk/stable/GtkExpander.htmlHow can I remove
or hide the left icon (a triangle, or, in my case, a little square with a
cross inside) that are in all the GtkExpander widgets?

I can't find it here :p. (I want to put my own label widget with an icon
instead of a simple text label, i know how can i do this, but if i do it
then the square it's unneeded and looks ugly)

Thanks in advance! :)

2010/7/12 american.communist.pa...@gmail.com

 On Jul 12, 2010 11:51am, Jeff Hallock jhall...@wbanda.com wrote:
  Hmmm…. I able to find one immediately by googling “gtk expander
  screenshot”. Who’d a thought…

 I monitor this list because I know I'll eventually learn something new, I
 am far from complete in my knowledge of stuff. For giggles I decided to
 take Jeff's advice and google exactly that; gtk expander screen shot,
 since I wasn't exactly sure what an expander was, and found this:

 http://www.laas02.org/?page_id=16

 Its apparently some intelligent guy's blog, and the page in question is a
 nice little treatise on gtk widgets. Its a little better than the canonical
 documentation, it gives a little more background on each gtk widget, some
 context with code (Mono, but who cares?) and some more detail on each
 option, given that the information isn't already presented earlier on and
 not redundant. Its very brief, but did contain some info new to me. This
 could actually help me picture what I need to do and what I need out of a
 gtk widget in the future. If you need to put a particular scenario in
 context with regard to gtk and the rather dry documentation canon doesn't
 really help, you might give this guy's blog a perusal.
 ___
 gtk-list mailing list
 gtk-list@gnome.org
 http://mail.gnome.org/mailman/listinfo/gtk-list




-- 
- Per la llibertat del coneixement -
- Per la llibertat de la ment...   -
___
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list


Re: RE: Doubts about creating a new widget

2010-07-12 Thread CaStarCo
I'm programming in Vala, and I've wrote this (for testing the class):

  menu_entry2.add_with_properties (new ToggleButton.with_label (JAJAJA),
expander-size, 0);

because (in theory, the expander-size property is the size of the left
triangle..), but in the practice the code is equivalent to:

  menu_entry2.add (new ToggleButton.with_label (JAJAJA));

and the squere is still appearing.

The documentation says that this property is read-only... but.. then, why is
needed, i understant that exists the possibility of set it, anyone knows
how?

Thanks in advance :) .

2010/7/12 CaStarCo casta...@gmail.com

 Yes, it's the web i've found too, it's interesting :) .

 Now I have question about GtkExpander, I've searched in the documentation
 page: http://library.gnome.org/devel/gtk/stable/GtkExpander.html

 http://library.gnome.org/devel/gtk/stable/GtkExpander.htmlHow can I
 remove or hide the left icon (a triangle, or, in my case, a little square
 with a cross inside) that are in all the GtkExpander widgets?

 I can't find it here :p. (I want to put my own label widget with an icon
 instead of a simple text label, i know how can i do this, but if i do it
 then the square it's unneeded and looks ugly)

 Thanks in advance! :)


-- 
- Per la llibertat del coneixement -
- Per la llibertat de la ment...   -
___
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list