retrieving GdkColor from a GtkColorButton
- From: Leslie Harlley Watter <leslie watter org>
- To: gtk-app-devel-list gnome org
- Subject: retrieving GdkColor from a GtkColorButton
- Date: Tue, 3 Aug 2004 22:55:40 -0300
Hi all,
I'm trying to retrieve the color selected when I click at the colorbutton.
Somebody can help me?
above its a snip of my code.
-----
GdkColor fundo;
GdkColor eixos_xy;
GdkColor legenda_x;
GdkColor legenda_y;
GdkColor nome_mapa;
GdkColor outros_simbolos;
gtk_color_button_get_color(GTK_COLOR_BUTTON(lookup_widget(GTK_WIDGET(button),
"colorbutton_hist_fundo")), &fundo);
gtk_color_button_get_color(GTK_COLOR_BUTTON(lookup_widget(GTK_WIDGET(button),
"colorbutton_hist_eixos_xy")),&eixos_xy);
gtk_color_button_get_color(GTK_COLOR_BUTTON(lookup_widget(GTK_WIDGET(button),
"colorbutton_hist_leg_x")),&legenda_x);
gtk_color_button_get_color(GTK_COLOR_BUTTON(lookup_widget(GTK_WIDGET(button),
"colorbutton_hist_leg_y")),&legenda_y);
gtk_color_button_get_color(GTK_COLOR_BUTTON(lookup_widget(GTK_WIDGET(button),
"colorbutton_hist_nome_mapa")),&nome_mapa);
gtk_color_button_get_color(GTK_COLOR_BUTTON(lookup_widget(GTK_WIDGET(button),
"colorbutton_hist_outros_simbolos")),&outros_si
mbolos);
---------------
Where can I found an example of use?
Does I need to alocate or do something special with GdkColor?
Thanks in advance
LEslie
--
Home Page ------------ http://www.lezz.org/
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]