deactivate "enter" signal on GtkButton



Hi , 
which one to use if I wants my button should not glow on hovering mouse pointer over the button 
 
1. g_signal_handler_block()                     
2. g_signal_handler_disconnect()        
3. g_signal_stop_emmission()
4. g_signal_override_class_closure()
5. g_signal_override_class_handler()
6. gtk_widget_set_events()                        // tried with no success
 
Also (unsuccessfully) tried : 
 
void enter_button1(GtkWidget *widget, gpointer data)
{
    GtkStyle *style;
    style = gtk_widget_get_style(button1);
    style->bg[GTK_STATE_PRELIGHT] = style->bg[GTK_STATE_NORMAL];
    gtk_widget_set_style(button1, style);
} 


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