]> Pileus Git - ~andy/gtk/blobdiff - examples/tictactoe/tictactoe.c
- Replace all uses of deprecated functions. - Replace menufactory example
[~andy/gtk] / examples / tictactoe / tictactoe.c
index 93b1633ad0a29f49564a1a6d3d28e48e864eca11..530d72e3d616a0f86f06d472b5dfba476706eceb 100644 (file)
@@ -115,7 +115,7 @@ tictactoe_clear (Tictactoe *ttt)
     for (j=0;j<3;j++)
       {
        gtk_signal_handler_block_by_data (GTK_OBJECT(ttt->buttons[i][j]), ttt);
-       gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (ttt->buttons[i][j]),
+       gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (ttt->buttons[i][j]),
                                     FALSE);
        gtk_signal_handler_unblock_by_data (GTK_OBJECT(ttt->buttons[i][j]), ttt);
       }