gtk_widget_grab_default and gtk+-2.0



Hello.

Can anyone tell me if there is a way to make

 gtk_widget_grab_default(button);

work with gtk+-2.0. At least it does not work with this code
that worked with gtk+-1.2:

  button = gtk_button_new_with_label(BUTTON_CLOSE);
  GTK_WIDGET_SET_FLAGS(button, GTK_CAN_DEFAULT);
  gtk_widget_grab_default(button);
  gtk_widget_show(button);

It also does not work in the examples directory in gtk+-2.0

Bye
Oliver



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