g_signal_connect_swapped make mistake !



let it go !

// the big program

...

entrada01 = gtk_entry_new ();
g_signal_connect_swapped (G_OBJECT (entrada01),
                          "activate",
                          G_CALLBACK (gtk_widget_grab_focus),
                          G_OBJECT(combo_entry3));
...

the result is :"Gtk-CRITICAL **: file gtkwidget.c :line 3400
(gtk_widget_grab_focus): assertion 'GTK_IS_WIDGET (widget)' failed


but in the another hand, when :

...
bot3=gtk_button_new_with_label("just go !");
g_signal_connect_swapped (G_OBJECT (bot3),
                          "activate",
                          G_CALLBACK (gtk_widget_grab_focus),
                          G_OBJECT(combo_entry3));
...

the result is: it's all write ,no problem.

And now the big question:"what is happing here ?"






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