[Glade-users] remove and create new objects (events)...



On Tue, 2003-01-28 at 13:07, duarte wrote:

    gtk_fixed_put (GTK_FIXED (fixed1), alarm, 20, 40);

    gtk_widget_set_uposition (alarm, 20, 40);

    gtk_widget_set_usize (alarm, 10, 10);

    z = 1;

    gtk_object_set_user_data (GTK_OBJECT (alarm), (void *) z);

 

    gtk_widget_set_events (alarm, GDK_BUTTON_PRESS_MASK | GDK_ENTER_NOTIFY_MASK | GDK_LEAVE_NOTIFY_MASK);

You need to call gtk_widget_set_events() before the gtk_fixed_put().

Damon





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