Inconsistency(gtk_object_set_data)?
- From: George Deprez <deprez seas smu edu>
- To: GTK <gtk-list redhat com>
- Subject: Inconsistency(gtk_object_set_data)?
- Date: Fri, 03 Mar 2000 22:43:00 -0600
Hello all,
Below I have two gtk_object_set_datas.
I can't figure out why the first works and not the second.
void
on_PE_NewProtocol_button_clicked (GtkButton *button,
gpointer user_data)
{
GtkWidget* Canvas;
gint State_Count = 0;
gfloat Zoom = 1.0;
Canvas = lookup_widget ( GTK_WIDGET ( button ) , "PE_PView_canvas" );
gtk_object_set_data ( GTK_OBJECT ( Canvas ) , "state_count" , ( gint*
) ( gint ) State_Count );
gtk_object_set_data ( GTK_OBJECT ( Canvas ) , "zoom" , ( gfloat*
)(gfloat) Zoom );
. . .
}
What am I missing?
Thanks,
George.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]