Re: retrieving GdkColor from a GtkColorButton

Hi Jan,

I'm doing this. I've tried both on signal color-set handler and on other
signal (Button Ok clicked) but I'm having a Segfault here when I acessing
the structure.

What I need to do with the GdkColor variable before getting the color?

Does I need to alocate the variable first, or Initialize some functions?

Searching within google don't help me so much (using GtkColorButton and
Gdk Color words)



Em Wed, Aug 04, 2004 at 10:50:55AM +0200, Jan-Marek Glogowski escreveu o seguinte:
) >From the docs:
) The "color-set" signal
) void user_function (GtkColorButton *widget, gpointer user_data);
) The ::color-set signal is emitted when the user selects a color.
) In your handler simply do:
) gtk_color_button_get_color( widget, &fundo );
) Jan-Marek
) :-- final da mensagem Re: retrieving GdkColor from a GtkColorButton de Jan-Marek Glogowski <glogow fbihome 
de> --:

Página Pessoal ------------
Outside of a dog, a book is a man's best friend.
Inside a dog it's too dark to read.
Groucho Marx

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]