[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-gnubg] gtkcolour.c
From: |
Nardy Pillards |
Subject: |
Re: [Bug-gnubg] gtkcolour.c |
Date: |
Tue, 24 Dec 2002 13:35:44 +0100 |
----- Original Message -----
From: "Joern Thyssen" <address@hidden>
To: "Øystein Johansen" <address@hidden>
Cc: <address@hidden>; "bug-gnubg" <address@hidden>
Sent: Tuesday, December 24, 2002 12:55 PM
Subject: Re: [Bug-gnubg] gtkcolour.c
> On Tue, Dec 24, 2002 at 12:50:29AM +0100, Øystein Johansen wrote
> > Hey.....!
> >
> > The new file gtkcolour.c does not work with gtk 1.2(3), and Win32
> >
> > My compiler gcc-3.2 and my gtk does not like:
> > `gtk_color_selection_get_opacity'
>
> Try this:
>
> if ( ! (GTK_COLOR_SELECTION ( pcp ))->use_opacity )
> ar[ 3 ] = 1.0;
>
> Jørn
>
Line 165 e.a. in gtkcolour.c
static void gtk_colour_picker_init( GtkColourPicker *pcp ) {
pcp->ppm = NULL;
pcp->pwColourSel = gtk_color_selection_dialog_new( _("Choose a
colour") );
pcp->pwDraw = gtk_drawing_area_new();
gtk_drawing_area_size( GTK_DRAWING_AREA( pcp->pwDraw ), 32, 16 );
g_signal_connect( pcp->pwDraw, "realize", G_CALLBACK( realize ), pcp );
g_signal_connect( COLOUR_SEL( pcp ), "color-changed",
G_CALLBACK( colour_changed ), pcp );
g_signal_connect( COLOUR_SEL_DIA( pcp ), "delete-event",
G_CALLBACK( delete_event ), pcp );
g_signal_connect( COLOUR_SEL_DIA( pcp )->ok_button, "clicked",
G_CALLBACK( ok ), pcp );
g_signal_connect( COLOUR_SEL_DIA( pcp )->cancel_button, "clicked",
G_CALLBACK( cancel ), pcp );
gtk_container_add( GTK_CONTAINER( pcp ), pcp->pwDraw );
gtk_widget_show( pcp->pwDraw );
}
While linking:
gtkcolour.o(.text+0x102):gtkcolour.c: undefined reference to
`gtk_color_selection_get_opacity'
gtkcolour.o(.text+0x6bc):gtkcolour.c: undefined reference to `G_CALLBACK'
gtkcolour.o(.text+0x6cd):gtkcolour.c: undefined reference to
`g_signal_connect'
gtkcolour.o(.text+0x6de):gtkcolour.c: undefined reference to `G_CALLBACK'
gtkcolour.o(.text+0x715):gtkcolour.c: undefined reference to
`g_signal_connect'
gtkcolour.o(.text+0x723):gtkcolour.c: undefined reference to `G_CALLBACK'
gtkcolour.o(.text+0x746):gtkcolour.c: undefined reference to
`g_signal_connect'
gtkcolour.o(.text+0x757):gtkcolour.c: undefined reference to `G_CALLBACK'
gtkcolour.o(.text+0x77c):gtkcolour.c: undefined reference to
`g_signal_connect'
gtkcolour.o(.text+0x78a):gtkcolour.c: undefined reference to `G_CALLBACK'
gtkcolour.o(.text+0x7af):gtkcolour.c: undefined reference to
`g_signal_connect'
Nardy
(
I did not yet change the code with
if ( ! (GTK_COLOR_SELECTION ( pcp ))->use_opacity )
ar[ 3 ] = 1.0;
)